/* =========================================
   APPOINTMENTS PAGE – Content only.
   Header, footer, nav, hero, .btn-header-book from about.css.
   ========================================= */

/* Z-index: nav stays on top of form when scrolling */
#mainNav {
    z-index: 1030;
}

/* Exact replication from services.css – CTA card (form container) */
.cta-glass-card {
    background: rgba(255, 255, 255, 0.90);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* =========================================
   MAIN CONTENT – layout & spacing
   ========================================= */
.appointments-main {
    padding-top: 60px;
    padding-bottom: 80px;
    min-height: 60vh;
}

.appointments-main .section-header {
    color: #163654;
    font-size: 2.5rem;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.appointments-divider {
    border: none;
    border-top: 2px solid rgba(22, 54, 84, 0.12);
    margin: 48px 0;
}

/* Status (check existing appointment) */
.status-container {
    max-width: 560px;
    margin: 0 auto 40px;
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(22, 54, 84, 0.08);
}

.status-heading {
    color: #163654;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
}

/* Login prompt */
.login-prompt-container {
    max-width: 640px;
    margin: 0 auto 40px;
    text-align: center;
    background: #ffffff;
    border: 2px dashed #d8b688;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.login-prompt-heading {
    color: #163654;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.login-prompt-text {
    color: #666;
    margin-bottom: 24px;
}

/* =========================================
   FORM – labels, inputs, blocks
   ========================================= */
.form-label {
    display: block;
    font-weight: 600;
    color: #163654;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-input-santoria {
    width: 100%;
    padding: 10px 2px;
    border: none;
    border-bottom: 1px solid rgba(22, 54, 84, 0.22);
    background-color: transparent;
    color: #333;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    border-radius: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
}

.form-input-santoria::placeholder {
    color: #888;
}

.form-input-santoria:focus {
    outline: none;
    border-bottom-color: #d8b688;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.form-select-santoria {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23163654' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form-group-block {
    margin-bottom: 1.5rem;
}

.branch-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.branch-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.branch-option:hover {
    border-color: rgba(216, 182, 136, 0.5);
}

.branch-option input {
    accent-color: #d8b688;
    width: 18px;
    height: 18px;
}

.branch-option input:checked + span {
    font-weight: 600;
    color: #163654;
}

.branch-option:has(input:checked) {
    border-color: #d8b688;
    box-shadow: 0 0 0 4px rgba(216, 182, 136, 0.2);
}

/* =========================================
   BOOKING CONTAINER & WARNING
   ========================================= */
.booking-section-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.booking-section-title {
    text-align: center;
    color: #163654;
    margin-bottom: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
}

.warning-box {
    border: 2px solid rgba(255, 77, 77, 0.6);
    border-radius: 16px;
    padding: 20px 24px;
    background: rgba(255, 77, 77, 0.04);
    margin-bottom: 28px;
}

.warning-box ul {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.warning-box a {
    color: #163654;
    font-weight: 600;
    text-decoration: underline;
}

/* Container uses .cta-glass-card for exact same look as other pages */
.booking-container {
    max-width: 100%;
    margin: 0 auto;
}

.booking-form .row {
    margin-bottom: 0;
}

/* =========================================
   CALENDAR & TIME SLOTS
   ========================================= */
.calendar-date-column {
    text-align: center;
}

.calendar-date-column .form-label {
    text-align: center;
}

.calendar-wrapper {
    position: relative;
    min-height: 280px;
    width: 320px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #163654;
    font-weight: 500;
}

.calendar-wrapper.loaded .calendar-loading {
    display: none;
}

#inline-calendar {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flatpickr-calendar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(22, 54, 84, 0.12) !important;
    border-radius: 12px !important;
    margin: 0 auto !important;
}

.flatpickr-day.selected {
    background: #163654 !important;
    border-color: #163654 !important;
}

.flatpickr-day:hover {
    background: rgba(216, 182, 136, 0.25) !important;
}

.flatpickr-day {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.flatpickr-day:not(.flatpickr-disabled):not(.selected):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.time-slots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.time-slot {
    padding: 14px 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.time-slot:hover:not(.time-slot-disabled) {
    border-color: #d8b688;
    background: rgba(216, 182, 136, 0.12);
}

.time-slot.selected {
    background: #d8b688;
    color: #ffffff;
    border-color: #d8b688;
}

.time-slot-disabled,
.time-slot.time-slot-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
}

.time-slot-full {
    grid-column: 1 / -1;
    max-width: 60%;
    margin: 0 auto;
}

.time-slot-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
    margin-bottom: 0;
}

/* =========================================
   SUBMIT BLOCK
   ========================================= */
.form-submit-block {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: none;
}

.btn-header-book .btn-loading {
    display: none;
}

.btn-header-book.is-loading .btn-text {
    display: none;
}

.btn-header-book.is-loading .btn-loading {
    display: inline-flex !important;
}

.btn-header-book.is-success {
    background: #2e7d32;
    pointer-events: none;
}

.btn-gold-outline {
    border: 2px solid #d8b688;
    color: #d8b688;
    background: transparent;
    border-radius: 12px;
    padding: 10px 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.btn-gold-outline:hover {
    background: #d8b688;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.12);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 991px) {
    .appointments-main {
        padding-top: 40px;
        padding-bottom: 60px;
    }
    .appointments-main .section-header {
        font-size: 2rem;
    }
    .booking-container.card.cta-glass-card {
        padding: 28px 24px !important;
    }
    .time-slots-grid {
        grid-template-columns: 1fr;
    }
    .time-slot-full {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .status-container,
    .login-prompt-container {
        padding: 24px 20px;
    }
}

/* =========================================
   ELITE BOOKING REDESIGN – hero + centered layout
   ========================================= */
:root {
    --elite-ink: #163654;
    --elite-gold: #d8b688;
    --elite-bg: #ffffff;
    --elite-shadow-soft: 0 40px 100px rgba(0, 0, 0, 0.03), 0 10px 30px rgba(0, 0, 0, 0.01);
    --elite-serif: 'Playfair Display', serif;
    --elite-sans: 'Inter', 'Lato', sans-serif;
}

body {
    background-color: #faf8f5;
}

.elite-hero {
    position: relative;
    min-height: 65vh;
    background-color: var(--elite-bg);
    overflow: hidden;
}

.elite-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/main-bg.jpg");
    background-size: cover;
    background-position: center 30%;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    transform: scale(1.02);
}

.elite-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    mix-blend-mode: soft-light;
    background-image:
        radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.11) 0, transparent 50%),
        radial-gradient(circle at 100% 0, rgba(0, 0, 0, 0.09) 0, transparent 50%),
        radial-gradient(circle at 0 100%, rgba(0, 0, 0, 0.09) 0, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.11) 0, transparent 50%);
    background-size: 220px 220px;
}

.elite-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.12) 35%,
        rgba(0, 0, 0, 0.0) 70%
    );
    pointer-events: none;
}

.elite-hero-inner {
    position: relative;
    z-index: 1;
    min-height: 65vh;
    display: flex;
    align-items: flex-end;
    padding-top: 120px;
    padding-bottom: 80px;
}

.elite-hero-card {
    max-width: 560px;
    margin: 0 auto 0 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 32px 40px;
    box-shadow: var(--elite-shadow-soft);
    opacity: 0;
    animation: eliteFadeUp 0.8s ease-in-out 0.1s forwards;
}

.elite-hero-eyebrow {
    margin: 0 0 8px;
    font-family: var(--elite-sans);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    color: rgba(22, 54, 84, 0.7);
}

.elite-hero-headline {
    margin: 0 0 14px;
    font-family: var(--elite-serif);
    font-size: clamp(2.1rem, 3.4vw, 3.1rem);
    line-height: 1.1;
    color: var(--elite-ink);
}

.elite-hero-body {
    margin: 0;
    font-family: var(--elite-sans);
    font-size: 1.02rem;
    line-height: 1.9;
    color: rgba(22, 54, 84, 0.85);
}

@keyframes eliteFadeUp {
    0% { opacity: 0; transform: translateY(18px); filter: blur(4px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes eliteFadeInSoft {
    0% { opacity: 0; filter: blur(4px); }
    100% { opacity: 1; filter: blur(0); }
}

.elite-main {
    padding-top: 0;
}

.elite-booking-shell {
    padding: 80px 24px 0px;
}

.elite-booking-frame {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.elite-booking-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 48px;
    box-shadow: var(--elite-shadow-soft);
    opacity: 0;
    animation: eliteFadeUp 0.7s ease-in-out 0.3s forwards;
}

.elite-anchor-image {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: eliteFadeInSoft 0.7s ease-in-out 0.5s forwards;
}

.elite-anchor-image-left {
    left: 0;
    transform: translate(-45%, -50%);
}

.elite-anchor-image-right {
    right: 0;
    transform: translate(45%, -50%);
}

.elite-anchor-image img {
    display: block;
    width: 180px;
    height: 260px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--elite-shadow-soft);
}

.elite-row-calendar-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.elite-row-calendar-center .calendar-date-column,
.elite-row-calendar-center .time-column {
    flex: 1 1 260px;
    max-width: 360px;
}

.status-container,
.login-prompt-container,
.warning-box,
.booking-container.card.cta-glass-card,
.branch-option,
.time-slot {
    border: none !important;
    box-shadow: var(--elite-shadow-soft);
    border-radius: 12px;
}

.elite-booking-card,
.elite-hero-card {
    border-radius: 12px;
}

.flatpickr-calendar {
    box-shadow: var(--elite-shadow-soft) !important;
    border: none !important;
    border-radius: 12px !important;
}

.btn-header-book {
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-header-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.12);
}

@media (max-width: 991px) {
    .elite-hero-inner {
        align-items: flex-end;
        padding-top: 110px;
        padding-bottom: 60px;
    }
    .elite-hero-card {
        margin: 0 auto;
        max-width: 90%;
        padding: 24px 24px;
    }
    .elite-booking-shell {
        padding: 60px 16px 80px;
    }
    .elite-booking-card {
        padding: 32px 24px;
    }
    .elite-anchor-image {
        display: none;
    }
}

@media (max-width: 576px) {
    .elite-hero-inner {
        min-height: 55vh;
    }
    .elite-hero-card {
        max-width: 100%;
    }
    .elite-booking-card {
        padding: 28px 20px;
    }
}

/* =========================================
   GLOBAL FOOTER SECTION
   ========================================= */
.site-footer {
    background-color: #163654;
    color: #ffffff;
    border-top: 3px solid #d8b688; 
    padding: 0; 
}

/* Logo & Brand Column */
.footer-col-brand {
    padding-right: 70px; 
}

.footer-logo {
    width: 350px; 
    height: 270px; 
    object-fit: contain; 
    display: block;
    margin: -25px auto -50px auto !important; 
}

.footer-brand-text {
    margin-left: 0 !important; 
    margin-top: 10px;
    text-align: center;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    position: relative; 
    z-index: 50; 
}

.footer-socials a {
    color: #ffffff;
    font-size: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease; 
}

.footer-socials a:hover {
    transform: translateY(-5px);
}

/* Common Text & Heading Styles */
.footer-heading {
    color: #d8b688;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-subheading {
    color: #d8b688;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px; /* Updated from 20px to 10px based on previous request */
}

.footer-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-text a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #d8b688;
}

/* Navigation Links */
.footer-links {
    list-style: none;
    padding: 10px;
    line-height: 40px;
    font-size: 1.2rem;
    margin-left: -15px;
    margin-top: -13px;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-block; 
    transition: transform 0.3s ease;
}

.footer-links a.active {
    color: #d8b688;
}

.footer-links a:hover {
    transform: translateY(-5px) !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Column Structure & Spacing */
.footer-col-pages, 
.footer-col-eastwood, 
.footer-col-stamesa {
    margin-top: 50px;
}

.footer-col-pages {
    padding-left: 40px; 
    padding-right: 30px; 
}

.footer-col-eastwood {
    margin-left: -30px;
    padding-left: 40px; 
    border-left: 1px solid rgba(216, 182, 136, 0.2); 
}

.footer-col-stamesa {
    padding-left: 90px; 
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 10px 0;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Footer Mobile Adjustments */
@media (max-width: 991px) {
    .footer-col-pages, 
    .footer-col-eastwood, 
    .footer-col-stamesa {
        padding-left: 15px;
        text-align: center;
        margin-bottom: 30px;
        margin-left: 0;
        border-left: none;
    }
    .footer-col-brand {
        padding-right: 0;
    }
    .footer-links a:hover { 
        padding-left: 0; 
    }
}