/*
 * gutschein-form.css – Eigene Styles für das Gutschein-Formular
 *
 * Diese Datei wird nur auf der Seite mit dem Shortcode [gutschein_formular] geladen.
 * Hier können alle formular-spezifischen Anpassungen vorgenommen werden.
 */

/* Formular auf maximal 600px begrenzen */
#gutschein-formular {
    max-width: 600px;
}

/* Zwischenüberschriften im Formular */
#gutschein-formular h2 {
    margin-bottom: 0.8em;
}

/* Gutschein-Code-Feld */
#gf-code {
    display: block;
    width: 340px;
    height: 56px;
    padding: 6px 12px 6px 20px;
    font-size: 36px !important;
    font-family: inherit;
    font: inherit;
    line-height: 1.42857143;
    color: gray;
    background-color: rgb(235, 235, 235);
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    margin: 20px 0 10px 0;
    box-sizing: border-box;
}

/* Gutschein-Info-Text unterhalb des Code-Feldes */
.gutschein-info {
    margin-top: 4px;
    font-size: 0.875em;
}

/* -----------------------------------------------------------------------
   Bestätigungsseite
   ----------------------------------------------------------------------- */

/* Zusammenfassungs-Tabelle */
.gf-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 28px 0;
}

.gf-summary-table th,
.gf-summary-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    vertical-align: top;
    text-align: left;
}

.gf-summary-table th {
    width: 38%;
    background-color: #f5f5f5;
    font-weight: 600;
    white-space: nowrap;
}

/* Mail-Vorschau */
.gf-mail-preview {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 16px 20px;
    margin-top: 8px;
}

.gf-mail-preview pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 0.9em;
    margin: 12px 0 0 0;
    line-height: 1.6;
}

/* -----------------------------------------------------------------------
   Fehlerbox (Pflichtfelder nicht ausgefüllt)
   ----------------------------------------------------------------------- */

#gutschein-formular .alert-danger {
    background-color: #fdf2f2;
    border: 1px solid #e8b4b4;
    border-left: 4px solid #c0392b;
    border-radius: 4px;
    padding: 14px 18px;
    margin-bottom: 24px;
    color: #7b241c;
}

#gutschein-formular .alert-danger strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95em;
}

#gutschein-formular .alert-danger ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#gutschein-formular .alert-danger ul li {
    padding: 3px 0 3px 18px;
    position: relative;
    font-size: 0.9em;
}

#gutschein-formular .alert-danger ul li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: #c0392b;
}
