/* Global Variables: Define color palette, font sizes, and other reusable properties for consistency and easy updates */
:root {
    --color-primary: #102a43;
    --color-secondary: #ffffff; /* Updated for uniform background */
    --color-text: #333;
    --color-background: #ffffff; /* Matching the secondary color */
    --color-btn-hover: #111827;
    --color-input: #e4e7eb;
    --color-input-focus: #cbd2d9;
    --font-family: 'Poppins', sans-serif;
    --box-shadow-light: 0 8px 16px rgba(0,0,0,0.1);
    --box-shadow-deep: 0 12px 24px rgba(0,0,0,0.1);
}

/* Base Styles: Set foundational styles across the application */
body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--color-secondary);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Container Styles: Define main content area */
.container {
    width: 100%;
    max-width: 680px;
    margin: 20px;
    padding: 30px;
    background: var(--color-background);
    border-radius: 8px;
/*     box-shadow: var(--box-shadow-deep); */
    text-align: center;
}

/* Typography: Styling for headings */
h1, h2 {
    color: var(--color-primary);
    margin: 0 0 20px;
}

/* Header Styles: Specific styles for main header elements */
.main-header h1, .main-header p {
    font-weight: 700;
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 0.5em;
}

.main-header p {
    font-weight: 400;
    font-size: 1.5em;
    color: var(--color-text);
    line-height: 1.4;
}

/* Unified Input and Button Styles */
.input-style, .submit-btn, .activity-btn, .height-btn {
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    background-color: var(--color-input);
    color: var(--color-text);
    font-size: 16px;
    margin: 10px auto;
    display: inline-block;
    cursor: pointer;
  
    text-align: center;
}

/* Interactive States: Hover and active states for buttons */
.activity-btn:hover, .height-btn:hover, .submit-btn:hover,
.activity-btn.active, .height-btn.active, .submit-btn {
    background-color: var(--color-btn-hover);
    color: var(--color-background);
}

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

/* Results and Recommendations: Enhancements for display sections */
.results-display, .recommendations-display, .waitlist-display {
    background-color: var(--color-background);
    color: var(--color-text);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: var(--box-shadow-light);
    text-align: left;
    display: none;
}

.waitlist-display {
    background-color: var(--color-background);
    color: var(--color-text);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: var(--box-shadow-light);
    text-align: left;
    display: none;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    text-align: center; /* Ensures text alignment is centered (useful for inline elements or text inside child divs) */
}


/* Iframe Styling: Ensure responsiveness and integration */
iframe {
    display: none;
    width: 100%;
    border: none;
}

#waitListContainer {
    flex-direction: column; /* Stack items vertically */
    justify-content: center; 
    display: none
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .container, iframe {
        padding: 20px;
        width: calc(100% - 40px);
    }

    h1, h2 {
        font-size: 1.5rem;
    }

    .input-style, .submit-btn, .activity-btn, .height-btn {
        padding: 8px 12px;
        font-size: 16px;
    }

    .submit-btn {
        width: 100%;
    }
}


/* Existing styles for .results-display, .recommendations-display, .waitlist-display */
.results-display, .recommendations-display, .waitlist-display {
    background-color: var(--color-background);
    color: var(--color-text);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: var(--box-shadow-light);
    text-align: left;
    display: none;
}

.waitlist-display {
    display: block; /* Changed to block to make it visible for demonstration; adjust as needed */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    text-align: center; /* Ensures text alignment is centered */
}

/* Additional styles for enhancing the waitlist display */
#waitListContainer h2 {
    font-size: 20px; /* Adjusted for better readability */
    margin-bottom: 20px;
    line-height: 1.5; /* Improves readability by increasing the space between lines */
}

.input-style, .submit-btn {
    width: 80%; /* Ensures inputs and buttons are not too wide */
    max-width: 400px; /* Prevents excessively wide elements on larger screens */
    padding: 12px;
    margin-bottom: 15px;
}

.input-style {
    border: 1px solid #ccc; /* Subtle border for the input */
    border-radius: 4px; /* Rounded corners for the input */
}

.submit-btn {
    background-color: #4CAF50; /* Example button color, adjust as needed */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth transition for button hover effect */
}

.submit-btn:hover {
    background-color: #45a049; /* Darker shade on hover */
}



.outdated::before,
.outdated::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px; /* Thickness of the "X" */
  height: 100%;
  background-color: red; /* Or use a CSS variable if you have a specific red in your palette */
  z-index: 2;
}

.outdated::before {
  transform: translateX(0%) rotate(45deg);
}

.outdated::after {
  transform: translateX(0%) rotate(-45deg);
}