/* =============================================
   Booking Page Styles - Essfour Psychological Services
   Earth-tone palette: #242423, #333533, #CFDBD5, #E8EDDF, #F5CB5C
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #242423;
    padding-top: 120px;
    background: #E8EDDF;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.hidden {
    display: none !important;
}

/* ---- Header (same as site) ---- */
.professional-header {
    background: #E8EDDF;
    border-bottom: 1px solid #333533;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(45, 62, 80, 0.08);
}

.header-content { max-width: 1400px; margin: 0 auto; }

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
}

.logo-area { display: flex; align-items: center; gap: 16px; }

.company-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 32px;
    color: #242423;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.company-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: #333533;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-contact {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #333533;
    text-align: right;
    flex: 1;
    margin-right: 20px;
}

.header-contact strong { color: #242423; display: block; margin-bottom: 2px; }

.header-cta {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #242423;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid #F5CB5C;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-cta:hover { background: #F5CB5C; color: #242423; }

.header-nav {
    background: rgba(36, 36, 35, 0.05);
    border-top: 1px solid rgba(51, 53, 51, 0.2);
    padding: 0 5%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-links li { flex: 1; text-align: center; }

.nav-links a {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #242423;
    text-decoration: none;
    padding: 10px 8px;
    display: block;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    border-bottom: 3px solid transparent;
}

.nav-links a:hover {
    color: #242423;
    border-bottom-color: #F5CB5C;
    background-color: #F5CB5C;
}

.nav-dropdown { position: relative; }

.dropdown-toggle { display: flex; align-items: center; gap: 5px; }

.dropdown-arrow { font-size: 10px; transition: transform 0.3s ease; }

.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 8px 25px rgba(36, 36, 35, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #CFDBD5;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: #242423;
    text-decoration: none;
    border-bottom: 1px solid #E8EDDF;
    transition: background-color 0.3s ease;
    border-radius: 0;
}

.dropdown-menu a:first-child { border-radius: 8px 8px 0 0; }
.dropdown-menu a:last-child { border-bottom: none; border-radius: 0 0 8px 8px; }
.dropdown-menu a:hover { background-color: #F5CB5C; color: #242423; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    background: rgba(45, 62, 80, 0.05);
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background-color: #F5CB5C;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    background: #E8EDDF;
    border-top: 1px solid #333533;
    padding: 20px 5%;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 20px rgba(45, 62, 80, 0.1);
}

.mobile-nav.active { display: block; }
.mobile-nav ul { list-style: none; padding: 0; }
.mobile-nav li { margin: 12px 0; }

.mobile-nav a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #242423;
    text-decoration: none;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(174, 182, 191, 0.3);
}

.mobile-nav .header-cta {
    margin-top: 16px;
    display: inline-block;
    text-align: center;
}

/* ---- Hero Section ---- */
.page-title-bar {
    background: #242423;
    color: #E8EDDF;
    padding: 28px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-title-bar h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 600;
    color: #E8EDDF;
    margin: 0 0 6px;
}

.page-title-bar p {
    font-size: 15px;
    color: #CFDBD5;
    margin: 0;
}

/* ---- Booking Container ---- */
.booking-section {
    margin-bottom: 60px;
}

.booking-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(36, 36, 35, 0.1);
}

/* ---- Progress Bar ---- */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #CFDBD5;
    color: #333533;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: #F5CB5C;
    color: #242423;
}

.progress-step.completed .step-circle {
    background: #242423;
    color: #E8EDDF;
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: #333533;
    white-space: nowrap;
}

.progress-step.active .step-label { color: #242423; }

.progress-line {
    flex: 1;
    height: 3px;
    background: #CFDBD5;
    margin: 0 12px;
    margin-bottom: 20px;
    max-width: 80px;
}

/* ---- Step Header ---- */
.step-header {
    margin-bottom: 30px;
}

.step-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: #242423;
    margin-bottom: 8px;
}

.step-subtitle {
    font-size: 15px;
    color: #333533;
    line-height: 1.5;
}

.back-btn {
    background: none;
    border: none;
    color: #333533;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 0;
    margin-bottom: 12px;
    display: inline-block;
    transition: color 0.3s ease;
}

.back-btn:hover { color: #F5CB5C; }

/* ---- Calendar ---- */
.calendar-wrapper {
    background: #E8EDDF;
    border-radius: 12px;
    padding: 24px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cal-nav-btn {
    background: white;
    border: 2px solid #CFDBD5;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #242423;
}

.cal-nav-btn:hover {
    border-color: #F5CB5C;
    background: #F5CB5C;
}

.cal-month-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: #242423;
}

.calendar-grid {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.cal-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #242423;
}

.cal-header-row span {
    text-align: center;
    padding: 10px 4px;
    font-size: 12px;
    font-weight: 600;
    color: #E8EDDF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cal-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.cal-day {
    position: relative;
    text-align: center;
    padding: 12px 4px;
    font-size: 14px;
    font-weight: 500;
    color: #242423;
    cursor: default;
    border-bottom: 1px solid #E8EDDF;
    border-right: 1px solid #E8EDDF;
    transition: all 0.2s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-day.empty {
    background: #f8f8f6;
}

.cal-day.past {
    color: #CFDBD5;
}

.cal-day.today {
    font-weight: 700;
    color: #242423;
}

.cal-day.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #333533;
}

.cal-day.available {
    cursor: pointer;
    font-weight: 600;
}

.cal-day.available::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #F5CB5C;
}

.cal-day.available:hover {
    background: #F5CB5C;
    color: #242423;
}

.cal-day.available:hover::after {
    background: #242423;
}

.cal-day.selected {
    background: #F5CB5C;
    color: #242423;
    font-weight: 700;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #333533;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.available { background: #F5CB5C; }
.legend-dot.today { background: #333533; }
.legend-dot.past { background: #CFDBD5; }

/* ---- Time Slots ---- */
.slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.slot-card {
    background: #E8EDDF;
    border: 2px solid #CFDBD5;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slot-card:hover {
    border-color: #F5CB5C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 203, 92, 0.2);
}

.slot-card.selected {
    border-color: #F5CB5C;
    background: #F5CB5C;
}

.slot-time {
    font-size: 20px;
    font-weight: 700;
    color: #242423;
    margin-bottom: 4px;
}

.slot-location {
    font-size: 13px;
    color: #333533;
    font-weight: 500;
}

.slot-card.selected .slot-location { color: #242423; }

.slots-loading {
    text-align: center;
    padding: 40px;
    color: #333533;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #CFDBD5;
    border-top-color: #F5CB5C;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-slots {
    text-align: center;
    padding: 40px;
}

.no-slots h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #242423;
    margin-bottom: 8px;
}

.no-slots p {
    color: #333533;
    margin-bottom: 20px;
}

.btn-secondary {
    background: transparent;
    color: #242423;
    border: 2px solid #CFDBD5;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #F5CB5C;
    background: #F5CB5C;
}

/* ---- Selection Summary ---- */
.selection-summary {
    background: #E8EDDF;
    border-left: 4px solid #F5CB5C;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.summary-item {
    font-size: 14px;
}

.summary-label {
    font-weight: 600;
    color: #333533;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.summary-value {
    color: #242423;
    font-weight: 600;
    font-size: 15px;
}

/* ---- Form Styles (match contact.html) ---- */
.booking-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-label {
    font-weight: 600;
    color: #242423;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 16px;
    border: 2px solid #CFDBD5;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: white;
    color: #242423;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #F5CB5C;
    box-shadow: 0 0 0 3px rgba(245, 203, 92, 0.1);
}

.form-input.error,
.form-select.error {
    border-color: #dc3545;
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 8px 0;
}

.checkbox-input { margin-top: 2px; }

.checkbox-label {
    font-size: 13px;
    color: #333533;
    line-height: 1.4;
}

.field-error {
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
    min-height: 0;
}

.form-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
}

.form-submit {
    text-align: center;
    margin-top: 12px;
}

.cta-button {
    background: #F5CB5C;
    color: #242423;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 203, 92, 0.3);
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.cta-button:hover {
    background: #E8EDDF;
    color: #242423;
    transform: translateY(-2px);
}

.cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---- Trust Section ---- */
.trust-section {
    margin-bottom: 60px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.trust-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(36, 36, 35, 0.06);
    border-top: 3px solid #F5CB5C;
}

.trust-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #242423;
    margin-bottom: 8px;
}

.trust-item p {
    font-size: 14px;
    color: #333533;
    line-height: 1.5;
}

/* ---- Footer (same as site) ---- */
.professional-footer {
    background: #242423;
    color: #E8EDDF;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content { max-width: 1400px; margin: 0 auto; padding: 0 5%; }

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-company { flex: 2; padding-right: 20px; }

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 28px;
    color: #E8EDDF;
    margin-bottom: 8px;
}

.footer-tagline {
    font-weight: 300;
    font-size: 14px;
    color: #CFDBD5;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 14px;
    color: #CFDBD5;
    line-height: 1.6;
    margin-bottom: 24px;
}

.credentials { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }

.credential-badge {
    background: rgba(245, 203, 92, 0.15);
    color: #F5CB5C;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-badges { display: flex; gap: 20px; align-items: center; margin-top: 16px; }

.trust-badge {
    background: rgba(207, 219, 213, 0.1);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    color: #CFDBD5;
    border: 1px solid rgba(207, 219, 213, 0.2);
}

.social-links { display: flex; gap: 12px; margin-top: 20px; }

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(207, 219, 213, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(245, 203, 92, 0.2);
    transform: translateY(-2px);
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(85%) sepia(6%) saturate(462%) hue-rotate(69deg) brightness(93%) contrast(88%);
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    filter: brightness(0) saturate(100%) invert(61%) sepia(80%) saturate(2270%) hue-rotate(21deg) brightness(102%) contrast(97%);
    transform: scale(1.1);
}

.footer-column { flex: 1; min-width: 150px; }

.footer-column h4 {
    font-weight: 600;
    font-size: 16px;
    color: #E8EDDF;
    margin-bottom: 16px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #F5CB5C;
    border-radius: 1px;
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 10px; }

.footer-column a {
    font-size: 14px;
    color: #CFDBD5;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 4px 0;
}

.footer-column a:hover { color: #F5CB5C; padding-left: 4px; }

.contact-info {
    background: rgba(207, 219, 213, 0.1);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #F5CB5C;
    flex: 1.5;
    min-width: 250px;
}

.contact-item { margin-bottom: 16px; font-size: 14px; }

.contact-text { color: #E8EDDF; }
.contact-text a { color: #E8EDDF; text-decoration: none; }
.contact-text a:hover { color: #F5CB5C; }

.footer-cta {
    background: rgba(245, 203, 92, 0.1);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
}

.footer-cta h4 {
    font-weight: 600;
    font-size: 18px;
    color: #E8EDDF;
    margin-bottom: 12px;
}

.footer-cta p { font-size: 14px; color: #CFDBD5; margin-bottom: 20px; line-height: 1.5; }

.footer-cta-button {
    background: #F5CB5C;
    color: #242423;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(245, 203, 92, 0.3);
}

.footer-cta-button:hover {
    background: #E8EDDF;
    color: #242423;
    transform: translateY(-1px);
}

.footer-bottom {
    border-top: 1px solid rgba(207, 219, 213, 0.2);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright { font-size: 13px; color: #CFDBD5; }

.footer-legal { display: flex; gap: 24px; }

.footer-legal a {
    font-size: 13px;
    color: #CFDBD5;
    text-decoration: none;
}

.footer-legal a:hover { color: #F5CB5C; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    body { padding-top: 80px; }

    .header-nav { display: none; }
    .mobile-toggle { display: flex; }
    .company-logo { font-size: 24px; }
    .company-subtitle { font-size: 9px; }

    .booking-container { padding: 24px; }

    .progress-bar { gap: 0; }
    .step-label { font-size: 10px; }
    .progress-line { max-width: 40px; margin: 0 6px; }

    .form-row { grid-template-columns: 1fr; }

    .slots-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .selection-summary { flex-direction: column; gap: 12px; }

    .trust-grid { grid-template-columns: 1fr; }

    .footer-main { flex-direction: column; gap: 25px; }
    .footer-content { padding: 0 4%; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal { flex-wrap: wrap; justify-content: center; gap: 16px; }
    .trust-badges { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .logo-area { gap: 8px; }
    .company-logo { font-size: 20px; }
    .step-title { font-size: 22px; }
    .cal-month-title { font-size: 18px; }
    .professional-footer { padding: 40px 0 20px; }
    .credentials { justify-content: center; }
    .social-links { justify-content: center; }
}

/* Focus & Accessibility */
.nav-links a:focus,
.header-cta:focus,
.mobile-toggle:focus,
.cal-nav-btn:focus,
.slot-card:focus,
.cta-button:focus {
    outline: 2px solid #F5CB5C;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
