/* ==========================================================
   Appointment Form Styles — assets/css/appointment-form.css
   Theme color: #0cb8b6  |  Accent hover: #09a09e
   ========================================================== */

/* ── Section wrapper ── */
.appt-section {
    background: linear-gradient(135deg, #f0fdfc 0%, #e6f9f9 100%);
    padding: 70px 0 80px;
    margin-top: 0;
}

/* ── Card wrapper ── */
.appt-wrapper {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(12, 184, 182, 0.15);
    padding: 50px 48px 40px;
    max-width: 860px;
    margin: 0 auto;
    border-top: 5px solid #0cb8b6;
}

/* ── Heading block ── */
.appt-heading {
    text-align: center;
    margin-bottom: 38px;
}

.appt-tag {
    display: inline-block;
    background: #0cb8b6;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 20px;
    padding: 4px 16px;
    margin-bottom: 12px;
}

.appt-heading h2 {
    font-size: 28px;
    color: #1a2e35;
    margin-bottom: 8px;
}

.appt-heading p {
    color: #6b7f84;
    font-size: 15px;
    margin: 0;
}

/* ── Form rows ── */
.appt-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.appt-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ── Individual field ── */
.appt-field {
    flex: 1 1 calc(50% - 10px);
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.appt-field.appt-full {
    flex: 1 1 100%;
}

/* Labels */
.appt-field label {
    font-size: 13.5px;
    font-weight: 600;
    color: #2d4a50;
    display: flex;
    align-items: center;
    gap: 6px;
}

.appt-field label i {
    color: #0cb8b6;
    font-size: 14px;
}

.appt-field label .req {
    color: #e05252;
    margin-left: 2px;
}

.appt-field label .opt {
    color: #9ab4b8;
    font-weight: 400;
    font-size: 12px;
    margin-left: 4px;
}

/* Inputs, Selects, Textarea */
.appt-field input[type="text"],
.appt-field input[type="tel"],
.appt-field input[type="email"],
.appt-field input[type="date"],
.appt-field select,
.appt-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.8px solid #c8e8e7;
    border-radius: 10px;
    font-size: 14px;
    color: #2d4a50;
    background: #f8fffe;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.appt-field input[type="date"] {
    cursor: pointer;
}

.appt-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230cb8b6'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 36px;
    cursor: pointer;
}

.appt-field textarea {
    resize: vertical;
    min-height: 100px;
}

.appt-field input:focus,
.appt-field select:focus,
.appt-field textarea:focus {
    border-color: #0cb8b6;
    box-shadow: 0 0 0 3px rgba(12, 184, 182, 0.15);
    background: #fff;
}

/* ── Toggle radio group (In Person / Online, Gender) ── */
.appt-toggle-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.appt-toggle {
    cursor: pointer;
}

.appt-toggle input[type="radio"] {
    display: none;
}

.appt-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 18px;
    border: 1.8px solid #c8e8e7;
    border-radius: 30px;
    font-size: 13.5px;
    color: #4a6e75;
    background: #f8fffe;
    transition: all 0.2s ease;
    font-weight: 500;
    user-select: none;
}

.appt-toggle span i {
    font-size: 13px;
}

.appt-toggle input[type="radio"]:checked + span {
    background: #0cb8b6;
    color: #fff;
    border-color: #0cb8b6;
    box-shadow: 0 3px 12px rgba(12, 184, 182, 0.35);
}

.appt-toggle span:hover {
    border-color: #0cb8b6;
    color: #0cb8b6;
}

.appt-toggle input[type="radio"]:checked + span:hover {
    color: #fff;
}

/* ── WhatsApp Button ── */
.appt-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #0cb8b6 0%, #09a09e 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(12, 184, 182, 0.4);
    font-family: inherit;
}

.appt-whatsapp-btn i {
    font-size: 22px;
}

.appt-whatsapp-btn:hover {
    background: linear-gradient(135deg, #09a09e 0%, #078280 100%);
    box-shadow: 0 8px 28px rgba(12, 184, 182, 0.55);
    transform: translateY(-2px);
}

.appt-whatsapp-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(12, 184, 182, 0.35);
}

/* ── Divider before form ── */
.appt-divider {
    border: none;
    border-top: 2px dashed #c8e8e7;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 680px) {
    .appt-wrapper {
        padding: 32px 20px 28px;
        border-radius: 14px;
    }

    .appt-field {
        flex: 1 1 100%;
    }

    .appt-heading h2 {
        font-size: 22px;
    }

    .appt-whatsapp-btn {
        font-size: 14px;
        padding: 14px 16px;
    }

    .appt-toggle-group {
        gap: 8px;
    }

    .appt-toggle span {
        padding: 8px 14px;
        font-size: 13px;
    }
}
