/* ========================================
   TERMINFORMULAR DR. SEIDEL
======================================== */

@media (min-width: 600px) {
   min-width: 750px;
}

.seidel-terminformular {
    max-width: 820px;
    margin: 35px auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #444;
    line-height: 1.55;
	overflow: auto;
}


/* Intro */

.terminformular-intro {
    margin-bottom: 32px;
}

.terminformular-intro h2 {
    margin: 0 0 12px;
    font-size: 27px;
    line-height: 1.25;
    font-weight: 400;
    color: #555;
}

.terminformular-intro p {
    margin: 0;
    font-size: 16px;
    color: #666;
}


/* Formularabschnitte */

.form-section {
    margin: 0 0 28px;
    padding: 25px;
    border: 1px solid #ddd;
    background: #fff;
}

.form-section legend {
    padding: 0 10px;
    font-size: 19px;
    font-weight: 600;
    color: #555;
}


/* Allgemeine Felder */

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group > label,
.field-title {
    display: block;
    margin-bottom: 7px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
}

.required {
    color: #a32626;
}

.optional {
    font-size: 13px;
    font-weight: 400;
    color: #888;
}


/* Inputs */

.seidel-terminformular input[type="text"],
.seidel-terminformular input[type="email"],
.seidel-terminformular input[type="tel"],
.seidel-terminformular input[type="date"],
.seidel-terminformular select,
.seidel-terminformular textarea {

    width: 100%;
    box-sizing: border-box;

    padding: 12px 13px;

    border: 1px solid #ccc;
    border-radius: 2px;

    background: #fff;

    color: #444;
    font-family: inherit;
    font-size: 15px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.seidel-terminformular textarea {
    resize: vertical;
    min-height: 130px;
}

.seidel-terminformular input:focus,
.seidel-terminformular select:focus,
.seidel-terminformular textarea:focus {
    outline: none;
    border-color: #8c8c8c;
    box-shadow: 0 0 0 2px rgba(0,0,0,.05);
}


/* 2 Spalten */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


/* Anliegen-Karten */

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.choice-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;

    box-sizing: border-box;
    min-height: 90px;

    padding: 14px;

    border: 1px solid #ddd;
    border-radius: 3px;

    background: #fafafa;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.choice-card:hover {
    background: #f5f5f5;
    border-color: #aaa;
}

.choice-card input {
    margin-top: 4px;
    flex: 0 0 auto;
}

.choice-card strong {
    display: block;
    margin-bottom: 3px;
    font-size: 15px;
    font-weight: 600;
}

.choice-card small {
    display: block;
    line-height: 1.4;
    font-size: 13px;
    color: #777;
}


/* aktiv ausgewählte Karte */

.choice-card.selected {
    border-color: #777;
    background: #f2f2f2;
    box-shadow: inset 3px 0 0 #777;
}


/* Kontaktart */

.contact-choice {
    display: flex;
    gap: 12px;
}

.contact-choice label {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 10px 18px;

    border: 1px solid #ccc;
    border-radius: 2px;

    background: #fafafa;

    cursor: pointer;
}


/* Checkboxen */

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    font-size: 14px;
    cursor: pointer;
}


.check-row-spam {
    gap: 10px;
    margin: 10px 0;
    font-size: 14px;
    cursor: pointer;
} 

.check-row input {
    margin-top: 4px;
    flex: 0 0 auto;
}


/* Angstpatienten-Bereich */

.conditional-section {
    display: none;
}

.conditional-section.is-visible {
    display: block;
}

.angst-box {
    margin: -5px 0 28px;
    padding: 22px 25px;

    border-left: 4px solid #999;
    background: #f5f5f5;
}

.angst-box h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #555;
}

.angst-box p {
    margin-top: 0;
}


/* Flexibler Termin */

.flexible-row {
    margin-top: 5px;
    padding: 13px 15px;
    background: #f5f5f5;
}


/* Datenschutz */

.privacy-section {
    margin: 20px 0;
    padding: 15px 18px;
    background: #f7f7f7;
    border: 1px solid #e3e3e3;
}

.privacy-section a {
    color: inherit;
    text-decoration: underline;
}


/* Button */

.submit-area {
    margin-top: 25px;
}

.termin-submit {
    display: inline-block;

    padding: 14px 24px;

    border: 0;
    border-radius: 2px;

    background: #666;

    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition: background .2s ease;
}

.termin-submit:hover {
    background: #444;
}

.termin-submit:focus {
    outline: 2px solid #333;
    outline-offset: 3px;
}

.submit-info {
    max-width: 600px;
    margin-top: 10px;

    color: #777;
    font-size: 13px;
}


/* Honeypot unsichtbar */

.hp-field {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


/* Fehlermeldungen */

.field-error {
    margin-top: 5px;
    font-size: 13px;
    color: #a32626;
}

.has-error {
    border-color: #a32626 !important;
}


/* Erfolgsbox */

.form-success {
    padding: 25px;

    border: 1px solid #ccd6c8;
    background: #f5f8f3;

    font-size: 16px;
}

.form-success strong {
    display: block;
    margin-bottom: 6px;
    font-size: 19px;
}


/* Mobil */

@media (max-width: 700px) {

    .seidel-terminformular {
        margin: 20px 0;
    }

    .choice-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-section {
        padding: 20px 15px;
    }

    .contact-choice {
        flex-direction: column;
    }

    .contact-choice label {
        width: 100%;
        box-sizing: border-box;
    }

    .termin-submit {
        width: 100%;
    }

}

/* ===========================================
   DATUMSFELD MOBILE-FIX
=========================================== */

#terminDatum {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;

    box-sizing: border-box;

    padding: 12px 13px;

    border: 1px solid #ccc;
    border-radius: 2px;

    background: #fff;

    color: #444;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
 /*   line-height: 1.4; */
}


/* Falls Datum und Tageszeit in einem Grid liegen */

.termin-grid,
.date-time-grid,
.form-row {
    min-width: 0;
}

.termin-grid > *,
.date-time-grid > *,
.form-row > * {
    min-width: 0;
}


/* ===========================================
   MOBILE
=========================================== */

@media (max-width: 700px) {

    #terminDatum {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        height: 48px;

        margin: 0;

        padding: 11px 12px;

        font-size: 16px;

        -webkit-appearance: none;
        appearance: none;
		line-height: 1.4;
    }

}
