/* --- Global Reset & Luxury Brand Variable Scopes --- */
body {
    background-color: #000;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* --- Section Structural Framework Layout --- */
.appointment-booking-section {
    padding: 100px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.appointment-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.1fr; /* Split-column golden grid engine layout rules */
    gap: 80px;
    align-items: start;
}

/* --- Left Column: Editorial Presentation Typography Blocks --- */
.appointment-editorial-col {
    position: sticky;
    top: 60px;
}

.editorial-badge {
    color: #d4a74a; /* Brand Core Accent Gold */
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.editorial-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 24px 0;
    color: #fff;
}

.editorial-desc {
    font-size: 15px;
    line-height: 1.65;
    color: #888;
    margin: 0 0 50px 0;
    max-width: 460px;
}

/* Feature Stack Cards Layout Blueprint */
.perk-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.perk-card-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.perk-icon-wrapper {
    width: 24px;
    color: #d4a74a;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2px;
}

.perk-info h3 {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 6px 0;
    color: #fff;
    letter-spacing: 0.3px;
}

.perk-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* --- Right Column: Interactive Core Form Panel Engine --- */
.appointment-engine-col {
    background-color: #050505;
    border: 1px solid #121212;
    border-radius: 20px;
    padding: 45px;
    box-sizing: border-box;
}

.booking-engine-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Core Form Segment Subheader Group Components */
.step-header-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid #121212;
    padding-bottom: 14px;
}

.step-num {
    font-size: 11px;
    color: #d4a74a;
    border: 1px solid rgba(212, 167, 74, 0.2);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step-header-label label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: #aaa;
}

/* --- Module 01 Component Layout Styles --- */
.services-interactive-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-option-card {
    background-color: #090909;
    border: 1px solid #161616;
    border-radius: 10px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-selection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #333;
    background-color: transparent;
    transition: all 0.3s ease;
}

.service-card-meta h3 {
    font-size: 14px;
    font-weight: 500;
    color: #888;
    margin: 0 0 4px 0;
    transition: color 0.3s ease;
}

.service-card-meta p {
    font-size: 12px;
    color: #555;
    margin: 0;
}

/* Dynamic State Classes mapped directly from JS engine */
.service-option-card.active {
    border-color: #d4a74a;
}

.service-option-card.active .service-selection-dot {
    background-color: #d4a74a;
    border-color: #d4a74a;
    box-shadow: 0 0 8px rgba(212, 167, 74, 0.4);
}

.service-option-card.active .service-card-meta h3 {
    color: #fff;
}

/* --- Module 02 Component Layout Styles --- */
.calendar-ui-widget-box {
    background-color: #090909;
    border: 1px solid #141414;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.calendar-month-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.cal-nav-arrow {
    background: transparent;
    border: none;
    color: #555;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 10px;
    transition: color 0.2s ease;
}

.cal-nav-arrow:hover { color: #fff; }

.cal-month-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.calendar-days-weekdays-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    color: #444;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 600;
}

.calendar-days-numbers-mesh {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 8px;
    text-align: center;
}

.cal-day-cell {
    font-size: 13px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    border-radius: 50%;
}

.active-clickable-day {
    color: #aaa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.active-clickable-day:hover {
    background-color: #121212;
    color: #fff;
}

.selected-target-day, .active-clickable-day.selected-target-day:hover {
    background-color: #d4a74a !important;
    color: #000 !important;
    font-weight: 600;
}

.pad-offset { color: #1a1a1a; }

/* Interactive Horizontal Time Slots Row Configuration */
.time-slots-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.time-slot-pill {
    background-color: #090909;
    border: 1px solid #141414;
    border-radius: 8px;
    padding: 14px 0;
    font-size: 12px;
    text-align: center;
    color: #666;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.time-slot-pill:hover {
    border-color: #262626;
    color: #fff;
}

.time-slot-pill.active {
    border-color: #d4a74a;
    color: #d4a74a;
    background: rgba(212, 167, 74, 0.02);
}

/* --- Module 03 Component Layout Styles --- */
.guest-inputs-dual-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.engine-text-input, .engine-textarea-input {
    width: 100%;
    background-color: #090909;
    border: 1px solid #141414;
    border-radius: 8px;
    padding: 16px 20px;
    box-sizing: border-box;
    color: #fff;
    font-size: 13px;
    transition: border-color 0.3s ease;
}

.engine-text-input:focus, .engine-textarea-input:focus {
    outline: none;
    border-color: #262626;
}

.engine-textarea-input { resize: none; font-family: inherit; }

/* Global Interface Action Engine Trigger Button */
.btn-engine-submit-cta {
    background-color: #d4a74a;
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.btn-engine-submit-cta:hover { background-color: #c59637; }
.btn-engine-submit-cta:active { transform: scale(0.99); }
.btn-engine-submit-cta:disabled { background-color: #44371c; color: #888; cursor: not-allowed; }

/* --- Success Interaction Popup Overlay Components --- */
.booking-modal-blur-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.booking-modal-blur-overlay.is-visible { opacity: 1; pointer-events: auto; }

.booking-success-popup {
    background-color: #080808;
    border: 1px solid #161616;
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 440px;
    width: 90%;
    box-sizing: border-box;
    text-align: center;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.booking-modal-blur-overlay.is-visible .booking-success-popup { transform: translateY(0); }

.booking-popup-icon-shield {
    width: 60px; height: 60px;
    background: rgba(212, 167, 74, 0.05);
    border: 1px solid rgba(212, 167, 74, 0.2);
    border-radius: 50%;
    color: #d4a74a;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.booking-success-popup h4 {
    font-family: 'Playfair Display', serif;
    font-size: 24px; color: #fff; margin: 0 0 12px 0; font-weight: 500;
}

.booking-success-popup p { font-size: 13px; line-height: 1.65; color: #666; margin: 0 0 36px 0; }

.btn-booking-popup-close {
    background-color: transparent; color: #fff; border: 1px solid #222;
    padding: 14px 30px; font-size: 11px; font-weight: 600; letter-spacing: 1px;
    border-radius: 8px; cursor: pointer; width: 100%; transition: all 0.3s ease;
}

.btn-booking-popup-close:hover { background-color: #fff; color: #000; border-color: #fff; }

/* --- Responsive Media Query Engine Constraints --- */
@media (max-width: 1024px) {
    .appointment-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .appointment-editorial-col { position: static; }
    .appointment-booking-section { padding: 60px 24px; }
}

@media (max-width: 600px) {
    .appointment-editorial-col h1 { font-size: 36px; }
    .appointment-engine-col { padding: 24px; }
    .guest-inputs-dual-split { grid-template-columns: 1fr; }
    .time-slots-wrapper { grid-template-columns: repeat(2, 1fr); }
    .calendar-ui-widget-box { padding: 14px; }
}