/* Appointment Booking System – Form UI (matched to design screenshots) */

.tca-form-wrapper {
    max-width: 520px;
    margin: 0 auto;
    padding: 36px 32px 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a2e;
}

/* ---- Step header ---- */
.tca-step-eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #8b8fa3;
    text-transform: uppercase;
}

.tca-step-heading {
    margin: 0 0 28px;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* ---- Fields ---- */
.tca-field {
    margin-bottom: 22px;
}

.tca-field > label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.tca-field .required {
    color: #e03131;
}

.tca-field input[type="text"],
.tca-field input[type="email"],
.tca-field input[type="tel"],
.tca-field input[type="date"] {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #dde1e6;
    border-radius: 10px;
    font-size: 15px;
    color: #1a1a2e;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.tca-field input:focus {
    outline: none;
    border-color: #3B5BDB;
    box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.15);
}

.tca-field input::placeholder {
    color: #a0a5b5;
}

.tca-field-hint {
    margin: 8px 0 0;
    font-size: 13px;
    color: #8b8fa3;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.tca-info-icon {
    flex-shrink: 0;
}

/* Side-by-side fields (Phone + City) */
.tca-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ---- Date ---- */
.tca-date-wrap input[type="date"] {
    max-width: 100%;
}

/* ---- Slots grid ---- */
.tca-slots-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 4px;
}

.tca-slots-header label {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 600;
}

.tca-tz-note {
    font-size: 12px;
    color: #8b8fa3;
}

.tca-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.tca-slots-grid::-webkit-scrollbar {
    width: 5px;
}
.tca-slots-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}
.tca-slots-grid::-webkit-scrollbar-thumb {
    background: #c0c4cc;
    border-radius: 4px;
}

.tca-slot-btn {
    padding: 12px 6px;
    border: 1.5px solid #dde1e6;
    border-radius: 10px;
    background: #f8f9fc;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.tca-slot-btn:hover {
    border-color: #3B5BDB;
    background: #eef1fb;
}

.tca-slot-btn.selected {
    border-color: #3B5BDB;
    background: #3B5BDB;
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 91, 219, 0.3);
}

.tca-slots-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    color: #8b8fa3;
    padding: 28px 12px;
    background: #f8f9fc;
    border-radius: 10px;
    margin: 0;
    font-size: 14px;
}

/* ---- Questions (checkbox / radio rows) ---- */
.tca-question-label {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    line-height: 1.4;
}

.tca-q-hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: #8b8fa3;
}

.tca-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tca-option-row {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1.5px solid #dde1e6;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 400 !important;
    margin: 0 !important;
    font-size: 14px !important;
}

.tca-option-row:hover {
    border-color: #3B5BDB;
    background: #f8f9fc;
}

.tca-option-row.selected {
    border-color: #3B5BDB;
    background: #eef1fb;
}

.tca-option-row input[type="checkbox"],
.tca-option-row input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #3B5BDB;
    flex-shrink: 0;
    cursor: pointer;
}

.tca-option-text {
    flex: 1;
    color: #1a1a2e;
}

/* ---- Appointment summary card (Step 3) ---- */
.tca-appt-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: #f4f6fb;
    border-radius: 12px;
    margin-bottom: 24px;
    gap: 12px;
}

.tca-appt-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #8b8fa3;
    margin-bottom: 4px;
}

.tca-appt-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

.tca-appt-icon {
    font-size: 16px;
}

.tca-change-link {
    background: none;
    border: 1.5px solid #dde1e6;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #3B5BDB;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.tca-change-link:hover {
    background: #eef1fb;
    border-color: #3B5BDB;
}

/* ---- Buttons ---- */
.tca-nav {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    align-items: center;
}

.tca-nav-single {
    justify-content: stretch;
}

.tca-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.3;
}

.tca-btn-primary {
    background: #3B5BDB;
    color: #fff !important;
    flex: 1;
}

.tca-btn-primary:hover {
    background: #2f4ac0;
}

.tca-btn-primary:disabled {
    background: #b0b8d0;
    cursor: not-allowed;
    opacity: 0.8;
}

.tca-btn-outline {
    background: #fff;
    color: #1a1a2e;
    border: 1.5px solid #dde1e6;
}

.tca-btn-outline:hover {
    background: #f4f6fb;
    border-color: #c0c4cc;
}

.tca-btn-full {
    width: 100%;
}

/* ---- Privacy note ---- */
.tca-privacy-note {
    margin: 20px 0 0;
    text-align: center;
    font-size: 12px;
    color: #8b8fa3;
}

/* ---- Messages ---- */
.tca-message {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.tca-success {
    background: #edfaef;
    color: #1e4620;
    border: 1px solid #68de7c;
}

.tca-error {
    background: #fcf0f1;
    color: #8a2424;
    border: 1px solid #f86368;
}

/* ---- Thank You screen ---- */
.tca-thankyou {
    text-align: center;
    padding: 20px 0 10px;
}

.tca-thankyou-icon {
    margin-bottom: 20px;
}

.tca-thankyou-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}

.tca-thankyou-sub {
    margin: 0 0 6px;
    font-size: 16px;
    color: #5a5f73;
}

.tca-thankyou-note {
    margin: 0 0 28px;
    font-size: 14px;
    color: #8b8fa3;
}

/* ---- Responsive ---- */
@media (max-width: 560px) {
    .tca-form-wrapper {
        padding: 28px 18px 32px;
        border-radius: 12px;
    }
    .tca-step-heading {
        font-size: 22px;
    }
    .tca-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tca-field-row {
        grid-template-columns: 1fr;
    }
    .tca-nav {
        flex-direction: column-reverse;
    }
    .tca-btn {
        width: 100%;
    }
    .tca-appt-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}
