/* --- RELAXORA BASE STYLES & VARIABLES --- */

@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/Manrope-Regular.ttf') format('truetype');
    font-weight: 300 600;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/Manrope-Bold.ttf') format('truetype');
    font-weight: 700 800;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../assets/fonts/PlayfairDisplay-ExtraBold.ttf') format('truetype');
    font-weight: 700 900;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Great Vibes';
    src: url('../assets/fonts/GreatVibes-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

:root {
    /* Colors */
    --bg-light: #FFFFFF;
    --bg-cream: #FAF9F6;
    --text-main: #1A1A1A;
    --text-muted: #666666;

    /* Brand Accents */
    --gold: #C5A059;
    --gold-dark: #8E6D2F;
    --gold-light: #EDE0C8;
    --accent-soft: #F5F1E9;
    --brand-gradient: linear-gradient(135deg, #C5A059, #8E6D2F, #C5A059);

    /* Fonts */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
    --font-hand: 'Great Vibes', cursive;
}

/* Screen Reader / Search Engine Only Visibility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera globally */
::-webkit-scrollbar {
    display: none;
    width: 0;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

input,
textarea {
    user-select: text;
    -webkit-user-select: text;
}

html {
    scroll-behavior: smooth;
}

/* --- AMBIENT BACKGROUND --- */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-cream);
}

.light-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: floatOrb 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gold-light);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #EEE8AA;
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 80px);
    }
}

/* --- SHARED UTILS --- */
.toast-container {
    position: fixed !important;
    bottom: 15px !important; /* Perfect desktop float - snug at the very bottom */
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    pointer-events: none !important;
    width: auto !important;
    max-width: 600px !important;
    padding: 0 20px !important;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(197, 160, 89, 0.25);
    padding: 16px 32px;
    border-radius: 24px;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 400;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
    animation: toastSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition: 0.3s;
    white-space: nowrap !important;
    word-break: normal;
}

.toast i {
    font-size: 1.25rem;
    color: var(--gold-dark);
}

.toast.error i {
    color: #b80f0a; /* Sophisticated wine-red */
}

.toast.warning i {
    color: var(--gold-dark);
}

.toast.success i {
    color: #27ae60; /* Keep a hint of green but more refined if needed, or stick to gold */
}

.toast.info {
    background: var(--accent-soft) !important;
    border: 1.5px solid rgba(197, 160, 89, 0.5) !important;
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.15) !important;
}

.toast.info i {
    color: var(--gold-dark) !important;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- MODALS (Shared) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10010;
    display: none;
    overflow-y: auto; /* Allows overlay to scroll if content is tall */
    -webkit-overflow-scrolling: touch; /* Forces native smooth inertial scrolling on iOS Safari */
    scroll-behavior: smooth; /* Ensure native smooth scrolling for scrollIntoView */
    transition: background 0.4s ease;
}

.modal-overlay.open {
    display: grid !important;
    place-items: center !important;
    padding: 20px;
    box-sizing: border-box;
}

.modal-container {
    background: var(--bg-light);
    width: 90%;
    max-width: 600px;
    margin: auto; /* PERFECT VERTICAL & HORIZONTAL CENTERING */
    max-height: 90vh; /* Prevents card from going out of screen bounds */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--gold-light);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: translateY(30px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 0;
}

.modal-overlay.open .modal-container {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 2010;
    width: 32px;
    height: 32px;
    background: var(--bg-cream);
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.1);
}

.close-modal:hover {
    background: var(--gold);
    transform: rotate(90deg) scale(1.1);
    color: #fff;
    border-color: var(--gold);
}

.modal-header .close-modal {
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
}

.modal-header .close-modal:hover {
    transform: translateY(-50%) rotate(90deg) scale(1.1);
}

.modal-header h3,
.modal-header .modal-subtitle {
    margin: 4px 0 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--text-main);
    text-align: center;
    width: 100%;
}

/* --- MODAL FORM STYLING --- */
.modal-container h3:not(.modal-header h3) {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: center;
}

.modal-header {
    position: sticky;
    top: -20px;
    margin-top: -20px;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 30px;
    background: var(--bg-light);
    z-index: 2000;
    margin-left: -40px;
    margin-right: -40px;
    padding-left: 40px;
    padding-right: 40px;
    display: flex;
    width: auto;
    align-self: stretch;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.05);
}

#booking-modal .booking-close-btn {
    position: sticky;
    top: 12px;
    margin-left: auto;
    z-index: 3200;
    transform: none;
}

#booking-modal .booking-close-btn:hover {
    transform: rotate(90deg) scale(1.1);
}

#booking-modal .booking-step-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    width: max-content;
    max-width: calc(100% - 80px);
    white-space: nowrap;
    pointer-events: none;
}

#service-picker-modal .modal-subtitle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    width: max-content;
    max-width: calc(100% - 80px);
    white-space: nowrap;
    pointer-events: none;
}



#booking-summary-text {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
}

.booking-summary-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    margin: 0;
    line-height: 1.15;
    width: 100%;
    max-width: 450px; /* Fixed maximum width for desktop */
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.booking-summary-service {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.booking-summary-meta {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    opacity: 0.95;
}

.modal-container .input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-container label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-dark);
    letter-spacing: 1px;
    text-align: center;
}

.modal-container input,
.modal-container select,
.modal-container textarea {
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--gold-light);
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: 0.3s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    text-align: center !important;
}

.modal-container input::placeholder {
    text-align: center;
}

.modal-container select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c5a059' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
    cursor: pointer;
}

.modal-container textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

.modal-container input:focus,
.modal-container select:focus,
.modal-container textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.1);
}

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

@media (max-width: 768px) {
    .modal-container {
        width: 100%;
        max-width: 100%;
        padding: 24px 16px;
    }

    .modal-header {
        position: sticky;
        top: -24px;
        margin-top: -24px;
        margin-left: -16px;
        margin-right: -16px;
        padding: 0 16px;
        background: var(--bg-light);
        z-index: 2000;
        min-height: 48px;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(197, 160, 89, 0.05);
        display: flex;
        width: auto;
        align-self: stretch;
        align-items: center;
        justify-content: center;
    }

    #booking-modal .close-modal {
        position: absolute !important;
        top: 14px !important;
        right: 14px !important;
        transform: none !important;
        margin: 0 !important;
        z-index: 2010 !important;
    }

    #booking-modal .modal-container {
        padding: 16px 14px;
        max-height: 85vh; /* Fits perfectly within any screen */
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    #booking-modal .booking-close-btn {
        top: 10px;
        right: 10px;
    }

    #booking-modal .booking-step-title {
        font-size: 0.9rem;
        max-width: calc(100% - 64px);
    }

    #booking-modal .booking-landscape-body,
    #booking-modal .booking-form {
        width: 100%;
        max-width: 100%;
        min-height: 0 !important;
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-right: 0 !important; /* Perfect symmetry on both sides */
    }

    #booking-modal .booking-landscape-body::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    #booking-modal .booking-landscape-body {
        scrollbar-width: none !important; /* Hide scrollbar on Firefox */
    }

    #service-picker-modal .modal-container {
        padding: 22px 14px;
        overflow: hidden;
    }


    .booking-landscape-body {
        justify-items: center;
        align-items: center;
        margin-top: 10px;
    }

    .calendar-booking-wrapper,
    .time-slots-wrapper,
    .booking-form {
        width: 100%;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .calendar-booking-wrapper {
        padding: 14px;
    }

    .time-slots-wrapper {
        align-items: center;
    }

    .slots-grid {
        width: 100%;
        max-height: none;
        justify-content: center;
        grid-template-columns: repeat(3, 1fr) !important; /* Always exactly 3 columns on mobile for perfect centering */
        gap: 10px !important;
        padding-right: 0 !important; /* Perfect symmetry */
    }

    #booking-step-1 .modal-footer,
    #booking-step-2 .modal-footer {
        flex-shrink: 0 !important;
        margin-top: 12px !important;
        padding-top: 8px !important;
        border-top: 1px solid rgba(197, 160, 89, 0.1);
    }



    #booking-step-2 #booking-summary-text {
        width: 220px;
        max-width: 220px;
        margin: 0 auto;
        padding: 0 4px;
        overflow: hidden;
    }

    #booking-step-2 .booking-summary-service {
        font-size: 1rem;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
        display: block;
        width: 100%;
        max-width: 100%;
    }

    #booking-step-2 .booking-summary-meta {
        font-size: 0.8rem;
        line-height: 1.1;
        text-align: center;
    }

    .booking-choice-note {
        justify-content: center;
        text-align: center;
    }

    #booking-step-1 .booking-landscape-body {
        justify-content: center;
    }

    #booking-step-1 .calendar-booking-wrapper,
    #booking-step-1 .time-slots-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .modal-container .row-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .toast-container {
        width: calc(100vw - 24px) !important;
        max-width: 100% !important;
        bottom: 10px !important; /* Perfect mobile float - snug at the absolute bottom */
    }

    .toast {
        white-space: normal !important;
        word-break: break-word;
        padding: 12px 20px;
        text-align: left;
        font-size: 0.9rem;
        gap: 12px;
        color: var(--text-main) !important; /* Force high-contrast text color on mobile */
    }

    .toast span {
        color: var(--text-main) !important; /* Ensure child spans also display dark text on mobile */
    }
}



/* --- BRAND LOGO --- */
.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: transparent !important;
    text-decoration: none !important;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    background: linear-gradient(110deg, var(--gold) 40%, var(--gold-dark) 50%, var(--gold) 60%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textShine 6s infinite linear;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo .dot {
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
}

@keyframes textShine {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Sibling Toast Placement Directly Below Active Modal Card */
.modal-overlay .toast-container {
    position: absolute !important;
    bottom: 10px !important; /* Snug at the absolute bottom of the screen to prevent any overlaps */
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    z-index: 999999 !important;
    width: calc(100vw - 28px) !important;
    max-width: 340px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    pointer-events: none !important;
}

@media (min-width: 480px) {
    .modal-overlay .toast-container {
        max-width: 420px !important;
        bottom: 10px !important;
    }
}

@media (min-width: 769px) {
    .modal-overlay .toast-container {
        bottom: 10px !important; /* Snug at the absolute bottom of the desktop screen */
        top: auto !important;
        max-width: 600px !important;
        width: auto !important;
    }
}

/* End of file */

/* MODAL HEADERS & TITLES CLEAN DESIGN OVERRIDE */

/* MODAL HEADERS PLAYFAIR DISPLAY OVERRIDE */
.modal-header h3,
.modal-title {
    font-family: var(--font-body) !important;
    color: var(--text-main) !important;
    text-align: center !important;
    text-transform: none !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
}


.modal-header {
    justify-content: center !important;
    border-bottom: none !important;
}


.modal-header {
    border-bottom: 1px solid rgba(197, 160, 89, 0.1) !important;
    margin-bottom: 25px !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
}


/* Fix gdpr/membership modals header spacing */
.gdpr-modal-container .modal-header {
    margin-left: -30px !important;
    margin-right: -30px !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
}


/* Google Translate Fixes */
font {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    text-transform: inherit !important;
    letter-spacing: inherit !important;
}
.gradient-text font {
    background: inherit !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
body {
    top: 0 !important;
}
.skiptranslate {
    display: none !important;
}
