/* ============================================================
   Hannover 96 – Busanfrage Formular-Styling
   ============================================================ */

:root {
    --h96-red:    #c0272d;
    --h96-dark:   #1a1a1a;
    --h96-gray:   #f4f4f4;
    --h96-border: #dde1e7;
    --h96-focus:  #c0272d;
    --h96-radius: 10px;
    --h96-shadow: 0 2px 16px rgba(0,0,0,.08);
}

/* ─── Wrapper ────────────────────────────────────────────── */
.h96-form-wrap {
    max-width: 680px;
    margin: 0 auto 3rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ─── Header ─────────────────────────────────────────────── */
.h96-form-header {
    text-align: center;
    margin-bottom: 2rem;
}
.h96-form-icon {
    font-size: 3rem;
    margin-bottom: .5rem;
}
.h96-form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--h96-dark);
    margin: 0 0 .4rem;
}
.h96-form-header p {
    color: #666;
    font-size: .95rem;
    margin: 0;
}

/* ─── CF7 Form-Element ───────────────────────────────────── */
.h96-form-wrap .wpcf7 {
    background: #fff;
    border-radius: var(--h96-radius);
    box-shadow: var(--h96-shadow);
    padding: 2rem 2.5rem;
    border-top: 4px solid var(--h96-red);
}

/* ─── Labels ─────────────────────────────────────────────── */
.h96-form-wrap .wpcf7 label {
    display: block;
    font-weight: 600;
    font-size: .88rem;
    color: #444;
    margin-bottom: .35rem;
    letter-spacing: .01em;
}

/* ─── Inputs, Textareas, Selects ─────────────────────────── */
.h96-form-wrap .wpcf7 input[type="text"],
.h96-form-wrap .wpcf7 input[type="email"],
.h96-form-wrap .wpcf7 input[type="tel"],
.h96-form-wrap .wpcf7 input[type="date"],
.h96-form-wrap .wpcf7 textarea,
.h96-form-wrap .wpcf7 select {
    width: 100%;
    padding: .7rem 1rem;
    border: 1.5px solid var(--h96-border);
    border-radius: 7px;
    font-size: .95rem;
    font-family: inherit;
    color: var(--h96-dark);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.h96-form-wrap .wpcf7 input:focus,
.h96-form-wrap .wpcf7 textarea:focus,
.h96-form-wrap .wpcf7 select:focus {
    outline: none;
    border-color: var(--h96-focus);
    box-shadow: 0 0 0 3px rgba(192,39,45,.12);
}

.h96-form-wrap .wpcf7 textarea {
    resize: vertical;
    min-height: 80px;
}

/* ─── Select Pfeil ───────────────────────────────────────── */
.h96-form-wrap .wpcf7 select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ─── Zwei-Spalten Layout für Datum/Zeit ─────────────────── */
.h96-form-wrap .wpcf7 .h96-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ─── Formular-Gruppen ───────────────────────────────────── */
.h96-form-wrap .wpcf7 label {
    margin-bottom: 1.1rem;
}

/* ─── Divider ────────────────────────────────────────────── */
.h96-form-wrap .wpcf7 .h96-divider {
    border: none;
    border-top: 1px solid var(--h96-border);
    margin: 1.5rem 0;
}

/* ─── Submit-Button ──────────────────────────────────────── */
.h96-form-wrap .wpcf7 input[type="submit"] {
    width: 100%;
    padding: .9rem 2rem;
    background: var(--h96-red);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s, transform .1s;
    margin-top: .5rem;
    letter-spacing: .02em;
}
.h96-form-wrap .wpcf7 input[type="submit"]:hover {
    background: #a01f24;
    transform: translateY(-1px);
}
.h96-form-wrap .wpcf7 input[type="submit"]:active {
    transform: translateY(0);
}

/* ─── Validierung ────────────────────────────────────────── */
.h96-form-wrap .wpcf7-not-valid {
    border-color: #dc3545 !important;
}
.h96-form-wrap .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: .8rem;
    margin-top: .25rem;
    display: block;
}
.h96-form-wrap .wpcf7-response-output {
    margin-top: 1rem;
    padding: .8rem 1rem;
    border-radius: 7px;
    font-size: .9rem;
    border: none !important;
}
.h96-form-wrap .wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
}
.h96-form-wrap .wpcf7-mail-sent-ng,
.h96-form-wrap .wpcf7-spam-blocked {
    background: #f8d7da;
    color: #721c24;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .h96-form-wrap .wpcf7 {
        padding: 1.5rem 1.2rem;
    }
    .h96-form-wrap .wpcf7 .h96-row {
        grid-template-columns: 1fr;
    }
}

/* ─── Section Labels ──────────────────────────────────────── */
.h96-form-wrap .wpcf7 .h96-section-label,
.wpcf7-form .h96-section-label {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--h96-red, #c0272d);
    margin: 1.5rem 0 .75rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid #f0f0f0;
}
.wpcf7-form .h96-section-label:first-child {
    margin-top: 0;
}
.wpcf7-form hr.h96-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 1.2rem 0 0;
}
