/* =====================================
   1. SETTINGS & VARIABLES
   ===================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

:root {
    --primary-yellow: #fcc419;
    --dark-text: #1a1a1a;
    --light-bg: #faf7f2;
    --white: #ffffff;
    --grey-border: #ddd;
}

/* =====================================
   GLOBAL RESET
   ===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

/* =====================================
   2. HEADER & NAVIGATION
   ===================================== */

header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 5%; 
    position: sticky; 
    top: 0; 
    background: var(--white); 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo img {
    height: 50px;
    
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-yellow { 
    background-color: var(--primary-yellow); 
    padding: 10px 22px; 
    text-decoration: none; 
    color: black; 
    font-weight: 600; 
    border-radius: 25px; 
    transition: transform 0.2s;
}

.btn-yellow:hover { 
    transform: scale(1.05); 
}

/* =====================================
   3. HERO SECTION
   ===================================== */

.hero {
    position: relative;   
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}


.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-content h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* =====================================
   4. AT-A-GLANCE (BANNER) SECTION
   ===================================== */




.bg-banner {
    background-image:
        linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)),
        var(--bg-image);
   padding: 80px 10%;        /* Already good */
    padding-left: 10%;       /* ADD THIS */
    
}
.content-wrapper {
    max-width: 500px;
   padding-left: 10px;  
    text-align: justify;
}

.content-wrapper h2 {
    text-align: left;
    margin-bottom: 20px;
}

/* =====================================
   5. MAIN CONTENT FLEX SECTIONS
   ===================================== */

.container { 
    max-width: 1100px; 
    margin: auto; 
    padding: 60px 20px; 
}

.flex-section { 
    display: flex; 
    align-items: center; 
    gap: 60px; 
    margin-bottom: 80px; 
}

.flex-reverse { 
    flex-direction: row-reverse; 
}

.flex-section div { 
    flex: 1; 
}

.flex-section img { 
    width: 100%;
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.flex-section h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.flex-section ul {
    list-style: none;
}

.flex-section li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.flex-section li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--dark-text);
}

/* =====================================
   6. GALLERY
   ===================================== */
.gallery-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.gallery-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.gallery-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* TWO-ROW HORIZONTAL GRID */
.gallery-grid.two-row {
    display: grid;
    grid-auto-flow: column;       /* Key: horizontal flow */
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
}

/* Gallery item */
.gallery-item {
    width: 250px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    background: #eee;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
   
}
.gallery-item:hover img {
    transform: scale(1.08);
}
/* Image styling */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
   transition: transform 0.4s ease;
}

@media (max-width: 768px) {
    .gallery-item {
        width: 180px;
        height: 140px;
    }
}

/* =====================================
   7. FOOTER
   ===================================== */

.main-footer {
    background: #f9f9f9;
    padding: 60px 5% 20px;
    border-top: 1px solid var(--grey-border);
}

.footer-logo {
    width: 60px;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.disclaimer-section p {
    text-align: justify;
    text-align-last: left;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.middle-footer {
    display: flex;
    flex-direction: column;
    align-items: center;    /* Centers items horizontally */
    justify-content: center;/* Centers items vertically if there is extra height */
    text-align: center;     /* Centers the text/links inside */
    width: 100%;            /* Ensures it spans the full width to find the center */
    margin: 30px 0;
}
.icon-svg {
    width: 28px;     /* CHANGE SIZE HERE */
    height: 28px;
    display: block;
}

.footer-nav a {
    text-decoration: none;
    color: #444;
    font-size: 0.9rem;
    margin-top: 10px;
    display: inline-block;
}

.bottom-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.subscribe-area {
    flex: 1;
    min-width: 300px;
}

.subscribe-form {
    display: flex;
}

.subscribe-form input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    width: 250px;
    outline: none;
}

.subscribe-form button {
    padding: 12px 25px;
    background: var(--primary-yellow);
    border: none;
    font-weight: bold;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.footer-legal-bottom {
    text-align: right;
    flex: 1;
}

.recaptcha-text {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 5px;
}

.copyright {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* =====================================
   8. RESPONSIVE DESIGN
   ===================================== */

@media (max-width: 768px) {

    header {
        padding: 15px 20px;
    }

    .flex-section {
        flex-direction: column;
        text-align: center;
    }

    .flex-reverse {
        flex-direction: column;
    }

    .flex-section li {
        text-align: left;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .gallery-item {
        flex: 0 0 60%;
    }

    .bottom-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-legal-bottom {
        text-align: center;
    }

    .subscribe-form {
        justify-content: center;
    }
}
/* =====================================
   booking page
   ===================================== */
.free-booking {
  border: 2px solid #2f8a45 !important;
}

/* Apply border to all booking cards */
.booking-card {
  border: 1px solid #8b6f4e;   /* brown border */
border-style: solid !important;
}

/* --- FAQ Section Styling --- */
.faq-section {
    background-color: #fdfaf5; 
    padding: 80px 0;
}

.faq-grid {
    max-width: 800px;
    /* This centers the whole FAQ block on the page */
    margin: 0 auto; 
    /* Adding padding so it doesn't touch the screen edges on mobile */
    padding: 0 60px; 
}

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid #f2f2f2;
}

.faq-question {
    width: 100%;
    padding: 20px 60px;
    background: none;
    border: none;
    display: flex;
    /* This pushes the text to the left and the icon to the right */
    justify-content: space-between; 
    align-items: center;
    font-size: 1.1rem;
    color: #2d2d2d;
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 1.5rem;
    color: #f1b90d;
    transition: transform 0.3s ease;
    /* Adding a little margin to the left of the icon so it isn't cramped */
    margin-left: 60px; 
}

.faq-answer {
    /* The key to the "not working" fix is making sure max-height is 0 initially */
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    padding: 0 60px;
    color: #666;
}

/* When the JavaScript adds the .active class, this runs */
.faq-item.active .faq-answer {
    max-height: 500px; /* Increased to fit your longer PIPEDA text */
    padding-top: 10px;
    padding-bottom: 25px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

@media (max-width: 600px) {
  .faq-question {
    padding: 18px 18px;
    font-size: 1rem;
  }
  .faq-answer {
    padding: 0 18px;
  }
}


/* Menu */
#profileMenuContainer {
  position: relative;
  display: inline-block;
}
#profileMenu.hidden {
    display: none;
}

/* Ensure the menu is positioned correctly when it DOES show */
#profileMenu {
    position: absolute;
    right: 0;
    top: 60px; /* Adjust based on your header height */
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
    border-radius: 8px;
}

.menu-header {
    padding: 15px 20px;
}

.credit-badge {
    display: inline-block;
    background: #fff9db; /* Soft yellow */
    color: #856404;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 5px;
}

.menu-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 5px 0;
}

.menu-btn {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-btn i {
    width: 18px;
    color: #fcc419; /* Your primary yellow */
}

.menu-btn:hover {
    background-color: #f8f9fa;
    color: #000;
}

.logout-style {
    color: #e03131 !important;
}

.logout-style i {
    color: #e03131 !important;
}
/* cal */

cal-embed {
  width: 100%;
  height: 650px;
  border: none;
}


.calendar-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

#booking-widget-container {
    background: white;
    border-radius: 20px;
    min-height: 600px; /* Essential for the widget to show */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 20px;
    overflow: hidden;
}

.calendar-intro {
    text-align: center;
    margin-bottom: 30px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: white;
}


.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.slot-btn {
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #fcc419;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.slot-btn:hover {
    background: #fcc419;
    color: white;
}

.booking-selection {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 15px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.day-name { font-weight: bold; text-align: center; font-size: 0.8em; color: #666; padding-bottom: 5px; }
.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: default;
    font-size: 0.9em;
}
.day.available {
    background-color: #d4edda;
    color: #155724;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid #c3e6cb;
}
.day.available:hover { background-color: #28a745; color: #fff; }
.day.unavailable { color: #ccc; }
.time-slots-container {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed #eee;
}

/* Full screen overlay to dim the background */
#custom-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

/* The actual card */
.custom-modal-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease-out;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    justify-content: center;
}

.btn-cancel {
    background: #eee;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-confirm {
    background: #ffc107; /* Your yellow brand color */
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.my-bookings-list {
    margin-top: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
}
.booking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
}
.booking-item:last-child { border-bottom: none; }
.btn-reschedule {
    background: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
    margin-right: 5px;
}
.btn-cancel-small {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
}
.notice-text {
    font-size: 0.75em;
    color: #888;
    font-style: italic;
}
/* Profile */
/* Profile Page Styling */
/* Profile Page Styling */
:root {
    --sidebar-width: 260px;
    --primary-yellow: #f4c542;
    --green-active: #4CAF50;
}

.profile-layout {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    gap: 40px;
    padding: 0 20px;
}

/* Sidebar Styling */
.profile-sidebar {
    width: var(--sidebar-width);
    position: sticky;
    top: 100px;
    height: fit-content;
    background: white;
    border-radius: 12px;
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.profile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-nav li a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
    margin: 4px 0;
}

.profile-nav li a:hover {
    color: #000;
    background: #fff9e6;
    border-left-color: var(--primary-yellow);
}

.profile-nav li a.active {
    color: #000;
    border-left-color: var(--primary-yellow);
    background: #fff9e6;
    font-weight: 600;
}

/* Content Styling */
.profile-main {
    flex: 1;
    min-width: 0;
}

.profile-main section {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 30px;
    scroll-margin-top: 100px;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-main section:nth-child(1) { animation-delay: 0.1s; }
.profile-main section:nth-child(2) { animation-delay: 0.2s; }
.profile-main section:nth-child(3) { animation-delay: 0.3s; }
.profile-main section:nth-child(4) { animation-delay: 0.4s; }

section h2 {
    font-size: 1.8rem;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: #222;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.info-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-card label {
    display: block;
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-card p {
    font-weight: 600;
    margin: 0;
    color: #333;
    font-size: 1.05rem;
}

/* Edit Mode Styling */
.edit-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.edit-input:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

.hidden {
    display: none !important;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #e8e8e8;
    color: #666;
}

.status-active {
    background: #e8f5e9;
    color: var(--green-active);
    border: 2px solid var(--green-active);
}

#membership .info-card:has(.status-active) {
    border: 2px solid var(--green-active);
    background: #f1f8f4;
}

/* Buttons */
.btn-yellow, .btn-outline {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-yellow {
    background: var(--primary-yellow);
    color: #000;
}

.btn-yellow:hover {
    background: #e6b930;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 197, 66, 0.3);
}

.btn-outline {
    background: white;
    border: 2px solid #ddd;
    color: #333;
}

.btn-outline:hover {
    border-color: #999;
    background: #f9f9f9;
}

/* Password Form Styling */
.password-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    font-weight: 600;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    padding: 0 12px;
    transition: all 0.3s;
}

.password-input-wrapper:focus-within {
    border-color: var(--primary-yellow);
    background: white;
}

.password-input-wrapper i.fa-lock {
    color: #999;
    margin-right: 10px;
}

.password-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 8px;
    font-size: 1rem;
    color: #333;
}

.password-input-wrapper input:focus {
    outline: none;
}

.toggle-password {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #333;
}

#intake .info-card {
    border-left: 4px solid var(--primary-yellow);
    padding: 25px;
}

#intake-action {
    margin-top: 20px;
}

#security p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .profile-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        padding: 10px 0;
    }
    
    .profile-nav {
        display: flex;
        overflow-x: auto;
        gap: 5px;
        padding: 0 10px;
    }
    
    .profile-nav li {
        flex-shrink: 0;
    }
    
    .profile-nav li a {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 12px 20px;
    }
    
    .profile-nav li a.active,
    .profile-nav li a:hover {
        border-left: none;
        border-bottom-color: var(--primary-yellow);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-main section {
        padding: 25px 20px;
    }
    
    .password-form {
        max-width: 100%;
    }
}

/* Toast Notification Container */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    min-width: 250px;
    margin-bottom: 10px;
    padding: 16px 20px;
    border-radius: 8px;
    background: #ffffff;
    color: #333;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    border-left: 5px solid #ccc;
    animation: slideIn 0.3s ease forwards;
    transition: opacity 0.3s ease;
}

.toast.success { border-left-color: #10b981; } /* Emerald Green */
.toast.error { border-left-color: #ef4444; }   /* Rose Red */
.toast.info { border-left-color: #3b82f6; }    /* Blue */

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-fade-out {
    opacity: 0;
}
