/* Header Layout */
.header {
    background: transparent;
    color: var(--azure-primary);
    padding: 1rem 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    will-change: transform, background-color;
}
/* =============================================
   Confirmation Section Styles
   ============================================= */
#confirmation {
  /* This creates a stack: a dark overlay on top of your image */
  background: 
    url('../docs/fancy-living-room.webp') center center/cover no-repeat;
  
  /* Styling for the content inside */
  padding: 80px 20px; /* Gives space for the content (e.g., "Thank You!") */
  color: #ffffff;      /* Makes the text white for high contrast */
  text-align: center;   /* Centers the text horizontally */
}
#phoneAuth{
    background: 
    url('../docs/fancy-living-room.webp') center center/cover no-repeat;
  
  /* Styling for the content inside */
  padding: 80px 20px; /* Gives space for the content (e.g., "Thank You!") */
  color: #ffffff;      /* Makes the text white for high contrast */
  text-align: left;   /* Centers the text horizontally */
}
#registrationPage1{
    background: 
    url('../docs/fancy-living-room.webp') center center/cover no-repeat;
  
  /* Styling for the content inside */
  padding: 60px 20px 80px 20px; /* Gives space for the content (e.g., "Thank You!") */
  color: #ffffff;      /* Makes the text white for high contrast */
  text-align: center;   /* Centers the text horizontally */
}
#registrationPage2{
    background: 
    url('../docs/fancy-living-room.webp') center center/cover no-repeat;
  
  /* Styling for the content inside */
  padding: 80px 20px; /* Gives space for the content (e.g., "Thank You!") */
  color: #ffffff;      /* Makes the text white for high contrast */
  text-align: center;   /* Centers the text horizontally */
}
#userDashboard{
    min-height: 100vh;
    padding: 8rem 0 4rem;
    background: url(../docs/fancy-living-room.webp) center top no-repeat, linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-size: 100% auto;
    background-attachment: fixed;
}

.header.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: fixed;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    text-decoration: none;
}

.logo-image {
    height: 20px;
    width: auto;
}

.logo-text {
    font-family: 'TTJenevers', 'AZURESans', serif;
    font-size: 1.8rem;
    font-weight: 300;
    font-style: italic;
}

.header-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 300;
    opacity: 0.9;
}

/* Section Layouts */
.auth-section {
    min-height: 100vh;
    padding-top: 8rem;
    padding-bottom: 4rem;
    padding-left: 1rem;
    padding-right: 1rem;
    background: url('../docs/fancy-living-room.webp') center center/cover no-repeat, linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* Removed background-attachment: fixed for 60fps smooth scrolling */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.auth-section.auth-section-centered {
    align-items: center;
    justify-content: center;
}

.auth-section.align-top {
    align-items: flex-start;
}

/* Registration Section Layout */
.registration-section {
    min-height: 100vh;
    background: url('../docs/fancy-living-room.webp') center center/cover no-repeat, linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* Removed background-attachment: fixed for 60fps smooth scrolling */
    display: flex;
    align-items: stretch;
    position: relative;
    padding: 0;
}

.registration-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4rem;
}

.registration-container {
    width: 400px;
    background: var(--white);
    padding: 2.5rem 1.5rem;
    margin: 3rem 2rem 2rem 0;
    border-radius: 45px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-container {
    max-width: 500px;
    width: 100%;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-title {
    font-family: 'TTJenevers', 'AZURESans', serif;
    font-size: 2.8rem;
    font-weight: 500;
    font-style: italic;
    color: var(--azure-gold);
    margin-bottom: 0.5rem;
}

.auth-container-centered {
    max-width: 450px;
}

.auth-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-btn {
    padding: 1rem 2rem;
    background: var(--azure-primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn:hover {
    background: var(--azure-light-blue);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

.btn-loading.visible {
    display: flex;
}

.auth-error {
    background: #fee;
    border: 1px solid var(--danger);
    border-radius: 8px;
    padding: 1rem;
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Registration Layout */
.reg-hero-title {
    font-family: 'AZURESans', sans-serif;
    font-weight: 300;
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 2rem;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.reg-hero-title .title-serif {
    font-family: 'TTJenevers', serif;
    font-style: italic;
    font-size: 6rem;
    color: var(--azure-gold);
    display: block;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Dashboard Layout */
.dashboard-section {
    min-height: 100vh;
    padding: 8rem 0 4rem;
    background: url('../docs/fancy-living-room.webp') center top no-repeat,
                  linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    
      /* Set the specific background size */
    background-size: 100% auto;
      
      /* You can keep this if you want the parallax scrolling effect */
    background-attachment: fixed;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background-color: #0C436A;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    gap: 1rem;
}

.user-welcome {
    flex: 1;
    min-width: 0;
}

.user-welcome h1 {
    font-family: 'TTJenevers', 'AZURESans', serif;
    color: #D6995C;
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 0.25rem;
}

.dashboard-subtitle {
    color: var(--white);
    margin: 0;
}

.logout-btn {
    padding: 0.2rem 0.4rem;
    background: #D6995C;
    color: var(--white);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.6rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    white-space: nowrap;
    max-width: 100px;
    flex-shrink: 0;
}

.logout-btn:hover {
    background: #E9D4BF;
    color: var(--white);
}

.my-appointments-section {
    background-color: #0C436A;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #D6995C;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.appointments-container {
    margin-top: 1.5rem;
    position: relative;
}

.appointments-container.loading::before {
    content: 'Loading appointments...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-size: 1rem;
    z-index: 10;
}

.appointments-container.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    z-index: 5;
}

.appointments-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
}

.appointments-scroll::-webkit-scrollbar {
    height: 6px;
}

.appointments-scroll::-webkit-scrollbar-track {
    background: var(--light-grey);
    border-radius: 3px;
}

.appointments-scroll::-webkit-scrollbar-thumb {
    background: var(--azure-primary);
    border-radius: 3px;
}

.no-appointments {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.no-appointments i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.book-new-section {
    background-color: #0C436A;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.projects-container {
    background-color: #0C436A;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
}

/* Project Selection Layout */
.project-selection-section {
    min-height: 100vh;
    background: url('../docs/fancy-living-room.webp') center center no-repeat, linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-family: 'TTJenevers', 'AZURESans', serif;
    font-size: 2.5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--azure-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.home-footer {
    width: 100%;
    margin-top: 4rem;
    line-height: 0;
}

/* Booking Layout */
.booking-section {
    min-height: 100vh;
    background: transparent;
    padding: 6rem 0 2rem 0;
    position: relative;
}

.booking-container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    overflow: hidden;
    margin-top: 2rem;
}

.booking-header {
    background-color: #0C436A;
    color: var(--white);
    padding: 2.5rem 2rem 2rem;
    position: relative;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.booking-title {
    font-size: 1.8rem;
    font-weight: 600;
    padding-top: 15px;
    margin-bottom: 0.5rem;
    color: var(--azure-gold);
}

.booking-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Unit Selection Section */
.unit-selection-section {
    background: rgba(255, 255, 255, 0.98);
    padding: 2rem;
    margin: 0 2.5rem;
    margin-top: -1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}

.unit-selection-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.unit-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--azure-primary);
    margin-bottom: 0.25rem;
}

.unit-select {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    appearance: none;
    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='%230C436A' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.unit-select:hover {
    border-color: var(--azure-primary);
    box-shadow: 0 2px 8px rgba(12, 67, 106, 0.1);
}

.unit-select:focus {
    outline: none;
    border-color: var(--azure-primary);
    box-shadow: 0 0 0 3px rgba(12, 67, 106, 0.1);
}

.unit-select option {
    padding: 0.5rem;
}

/* Brochure Section */
.brochure-section {
    margin: 1.5rem 2.5rem 0;
    text-align: center;
}

.brochure-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--azure-primary) 0%, #094163 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(12, 67, 106, 0.2);
}

.brochure-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(12, 67, 106, 0.3);
    background: linear-gradient(135deg, #094163 0%, var(--azure-primary) 100%);
}

.brochure-btn i {
    font-size: 1.25rem;
}

.booking-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2.5rem;
}

.calendar-section {
    background: var(--azure-primary);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(12, 67, 106, 0.3);
}

.time-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.time-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--azure-gold);
    margin-bottom: 1rem;
}

.selected-date-display {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.continue-btn {
    background: var(--azure-primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.continue-btn:hover {
    background: var(--azure-light-blue);
    transform: translateY(-2px);
}

.continue-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

/* Form Layout */
.form-container {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, var(--azure-primary) 0%, var(--azure-light-blue) 100%);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.booking-summary {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.booking-form {
    padding: 2rem;
}

.submit-btn {
    background: var(--azure-primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background: var(--azure-light-blue);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

/* Confirmation Layout */
.confirmation-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    position: relative;
}

.confirmation-container {
    max-width: 650px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.confirmation-header {
    margin-bottom: 2.5rem;
}

.confirmation-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--azure-gold);
    margin-bottom: 1rem;
    font-family: 'TTJenevers', 'AZURESans', serif;
    font-style: italic;
}

.confirmation-text {
    color: var(--text-dark);
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 1.1rem;
}

.confirmation-details {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 2rem;
    margin: 2.5rem 0;
    text-align: left;
    border: 1px solid rgba(12, 67, 106, 0.1);
}

.confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
    justify-content: center;
}

.btn-primary {
    background: var(--azure-primary);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--azure-light-blue);
}

.btn-secondary {
    background: var(--sand);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--light-brown);
}