/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=PT+Sans:wght@400;700&display=swap');

/* CSS Variables for Color Palette */
:root {
    /* Primary Colors */
    --color-primary: hsl(35, 91%, 55%);
    --color-primary-hover: hsl(35, 91%, 50%);
    --color-accent: hsl(13, 82%, 60%);
    --color-error: hsl(0, 84%, 60%);

    /* Background Colors */
    --color-background-light: hsl(45, 30%, 97%);
    --color-secondary-light: hsl(30, 17%, 95%);
    --color-card-light: hsl(0, 0%, 100%);
    --color-background-waitlist-light: hsl(45, 67%, 98%);

    

    /* Text Colors */
    
    --color-text-light: #333333; /* Dark gray for general text in light mode */
    --color-text-muted-light: #6b7280; /* Muted gray for secondary text */
    --color-text-on-primary: #0f0f0f; /* Deep, near-black for text on primary buttons */

    /* Interactive States */
    --color-hover-light: rgba(244, 196, 48, 0.1); /* Light hover background */
    --color-hover-dark: rgba(244, 196, 48, 0.2); /* Dark hover background */
    --color-focus-ring: rgba(244, 196, 48, 0.4); /* Focus ring color */

    /* Defaulting to Light Mode */
    --background-color: var(--color-background-light);
    --secondary-background-color: var(--color-secondary-light);
    --card-background: var(--color-card-light);
    --text-color: var(--color-text-light);
    --muted-foreground: var(--color-text-muted-light);
    --border-color: hsl(0, 0%, 85%); /* Default border color for light mode */
    --input-background: #ffffff;
    --hover-background: var(--color-hover-light);
    --header-scrolled-bg-light: rgba(255, 255, 255, 0.9);
    --header-scrolled-shadow-light: rgba(0, 0, 0, 0.1);
}









/* Base Styles */
body {
    font-family: 'PT Sans', sans-serif; /* Body Text */
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    line-height: 1.6;
    font-size: 16px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif; /* Headlines */
    color: var(--text-color);
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.body-waitlist {
    background-color: var(--color-background-waitlist-light);
}



/* General Design & Shape Language */
.glass-card {
    background: var(--card-background); /* Use consistent card background */
    border-radius: 32px; /* Extra smooth rounded corners */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); /* Soft shadow */
    backdrop-filter: blur(10px); /* Blurred background */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border: 1px solid var(--border-color); /* Use consistent border */
    padding: 20px;
    transition: all 0.3s ease; /* Smooth transitions */
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

/* Button Design System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 32px;
    font-family: 'PT Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    gap: 8px;
}

.btn-default:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 196, 48, 0.3);
    color: var(--color-text-on-primary); /* Ensure text color remains consistent */
}

/* Classic Button (Primary Action) */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-on-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle text shadow for better readability */
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 196, 48, 0.3);
    color: var(--color-text-on-primary); /* Ensure text color remains consistent */
}

/* Outline Button (Secondary Action) */
.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-text-on-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 196, 48, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Add text shadow on hover */
}



/* Coming Soon Button Specific Styling */
.btn-coming-soon {
    background-color: var(--muted-foreground);
    color: var(--background-color);
    cursor: not-allowed;
    opacity: 0.7;
}



/* Text Link Button (Tertiary Action) */
.btn-link {
    background-color: transparent;
    color: var(--color-primary);
    padding: 0;
    border-radius: 0;
    font-weight: 400; /* Regular weight for links */
}

.btn-link:hover {
    text-decoration: underline;
    color: var(--color-primary-hover);
}

/* Utility Classes (can be expanded as needed) */
.text-primary {
    color: var(--color-primary);
}

.bg-secondary {
    background-color: var(--secondary-background-color);
}

.bg-card {
    background-color: var(--card-background);
}

.bg-primary-orange {
    background-color: var(--color-primary);
}

.border-red-500 {
    border-color: var(--color-error);
}

.hidden {
    display: none !important;
}

/* Peer class for sibling selectors - used with Tailwind-like framework */
.peer {
    position: relative; /* Minimum style to ensure proper functioning */
}

/* Custom Checkbox/Radio Styling based on peer-checked */
/* When the hidden input is checked, style its sibling custom control */
input[type="checkbox"].peer:checked + div.peer-checked\:bg-primary-orange {
    background-color: var(--color-primary);
}

input[type="checkbox"].peer:checked + div.peer-checked\:border-primary-orange {
    border-color: var(--color-primary);
}

input[type="checkbox"].peer:checked + div .peer-checked\:opacity-100 {
    opacity: 1;
}

input[type="radio"].peer:checked + div.peer-checked\:bg-primary-orange {
    background-color: var(--color-primary);
}

input[type="radio"].peer:checked + div.peer-checked\:border-primary-orange {
    border-color: var(--color-primary);
}

input[type="radio"].peer:checked + div .peer-checked\:opacity-100 {
    opacity: 1;
}


@keyframes pulse-slow {
  50% {
    opacity: .7;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes fade-in-from-50 {
  from {
    opacity: 0.5;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fade-in-from-50 0.5s ease-out forwards;
}

/* Form Elements Base Styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    background-color: var(--input-background);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 32px;
    transition: all 0.3s ease;
    font-family: 'PT Sans', sans-serif;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px; /* Prevent zoom on mobile */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-focus-ring);
    outline: none;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="tel"]:hover,
textarea:hover,
select:hover {
    border-color: var(--color-primary);
}

::placeholder {
    color: var(--muted-foreground);
    opacity: 1; /* Ensure full opacity for better visibility */
}



label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}



/* Navigation Link Base Styles */
.nav-link {
    color: var(--text-color);
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 24px;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--color-primary);
    background-color: var(--hover-background);
}

.nav-link.active {
    color: var(--color-primary);
    font-weight: bold;
}

/* Checkbox and Radio Button Styling */
/* The actual input is hidden, and a custom control is styled */
input[type="checkbox"],
input[type="radio"] {
    /* These styles are mostly overridden by the custom control logic in JS */
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--input-background);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="radio"] {
    border-radius: 50%;
}

/* These styles are for the custom control div, not the hidden input */
/* The JS creates a div with classes like `w-4 h-4 border-2 border-primary-orange rounded-sm flex items-center justify-center mr-2 peer-checked:bg-primary-orange peer-checked:border-primary-orange transition-colors duration-200` */

/* Form Group Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Checkbox/Radio Group Styling */
.checkbox-group, 
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-item, 
.radio-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 32px;
    background-color: var(--input-background);
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-item:hover, 
.radio-item:hover {
    border-color: var(--color-primary);
    background-color: var(--hover-background);
}

.checkbox-item input, 
.radio-item input {
    margin-right: 12px;
}

.checkbox-item span, 
.radio-item span {
    color: var(--text-color);
    font-weight: 500;
}



/* Progress Bar Styling */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

/* Survey Step Styling */
.survey-step {
    transition: opacity 0.3s ease;
}

.survey-step.hidden {
    display: none;
}

.survey-step.active-step {
    display: block;
}

/* Button Group Styling */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.button-group .btn {
    flex: 1;
}

/* Text Color Utilities */
.text-color {
    color: var(--text-color);
}

.text-muted {
    color: var(--muted-foreground);
}

/* Background Utilities */
.bg-primary {
    background-color: var(--color-primary);
    color: var(--color-text-on-primary);
}

.bg-secondary {
    background-color: var(--secondary-background-color);
}

.bg-card {
    background-color: var(--card-background);
}

@keyframes pulse-slow {
  50% {
    opacity: .7;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes fade-in-from-50 {
  from {
    opacity: 0.5;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fade-in-from-50 0.5s ease-out forwards;
}

/* Layout and Spacing Utilities */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Margin Utilities */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }

/* Padding Utilities */
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { 
    padding-left: 1rem;
    padding-right: 1rem;
}
.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* .lg\:py-20 {
    /* Similar to lg:px-8 */
} */

.text-center {
    text-align: center;
}

.mb-12 {
    margin-bottom: 3rem;
}

.font-bold {
    font-weight: 700;
}

.text-6xl {
    font-size: 3.75rem; /* 60px */
    line-height: 1;
}

/* .md\:text-5xl {
    /* Media query for medium screens */
} */

/* .sm\:text-4xl {
    /* Media query for small screens */
} */

.mb-4 {
    margin-bottom: 1rem;
}

.text-lg {
    font-size: 1.125rem; /* 18px */
    line-height: 1.75rem;
}

.max-w-4xl {
    max-width: 56rem; /* 896px */
}


/* .flex {
    display: flex;
}

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

.w-full {
    width: 100%;
}

.h-4 {
    height: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.mb-8 {
    margin-bottom: 2rem;
}

.h-full {
    height: 100%;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.flex-grow {
    flex-grow: 1;
}

.mt-8 {
    margin-top: 2rem;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.mr-2 {
    margin-right: 0.5rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.text-2xl {
    font-size: 1.5rem; /* 24px */
    line-height: 2rem;
}

.md\:text-xl {
    /* Media query for medium screens */
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.block {
    display: block;
}

.text-sm {
    font-size: 0.875rem; /* 14px */
    line-height: 1.25rem;
}

.font-medium {
    font-weight: 500;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.w-full {
    width: 100%;
}

.p-3 {
    padding: 0.75rem;
}

.border {
    border-width: 1px;
}

.border-border {
    border-color: var(--border-color);
}

.rounded-md {
    border-radius: 0.375rem;
}

.bg-input-background {
    background-color: var(--input-background);
}

.focus\:outline-none {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-2 {
    box-shadow: 0 0 0 2px var(--color-focus-ring);
}

.focus\:ring-primary-orange {
    box-shadow: 0 0 0 2px var(--color-primary);
}

.space-y-3 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.rounded-sm {
    border-radius: 0.125rem;
}

.opacity-0 {
    opacity: 0;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

.cursor-pointer {
    cursor: pointer;
}

.h-full {
    height: 100%;
}

.text-4xl {
    font-size: 2.25rem; /* 36px */
    line-height: 2.5rem;
}

.md\:text-3xl {
    /* Media query for medium screens */
}

.max-w-2xl {
    max-width: 42rem; /* 672px */
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive adjustments for padding */
/* Responsive Breakpoints */
@media (min-width: 768px) {
    .md\:p-8 {
        padding: 2rem;
    }
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    .md\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    .md\:py-20 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .lg\:py-20 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    .lg\:p-12 {
        padding: 3rem;
    }
}

@media (max-width: 767px) {
    .sm\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    .sm\:p-6 {
        padding: 1.5rem;
    }
}

.prose {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .prose {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    font-family: 'Playfair Display', serif;
}

.prose p, .prose li {
    font-family: 'PT Sans', sans-serif;
    line-height: 1.6;
}

.prose a {
    color: var(--color-primary);
    text-decoration: none;
}

.prose a:hover {
    text-decoration: underline;
}

.prose h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.prose .subtitle {
    color: var(--muted-foreground);
    margin-top: 0;
    margin-bottom: 2rem;
}

.prose h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.prose p, .prose ul {
    margin-bottom: 1.5rem;
}

.prose ul {
    list-style-position: inside;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

/* Utility classes from description */
.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.md\:py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.max-w-4xl {
    max-width: 56rem;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
.prose-headings\:font-headline {
    font-family: 'Playfair Display', serif;
}
.text-primary-orange {
    color: var(--color-primary);
}
.muted-foreground {
    color: var(--muted-foreground);
}