/* ========================================
   WAITLIST & SURVEY STYLES
   Specific styles for waitlist forms and survey modals used on home page
   ======================================== */

/* ========================================
   WAITLIST FORM
   ======================================== */

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.waitlist-form input[type="text"],
.waitlist-form input[type="email"] {
    padding: 0.9rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    font-size: 1.2rem;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s;
    background: rgba(255,255,255,0.9);
}

.waitlist-form input[type="text"]:focus,
.waitlist-form input[type="email"]:focus {
    border-color: #F9A826;
    outline: none;
    background: rgba(255,255,255,1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.name-fields {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.name-fields input {
    flex: 1;
}

.waitlist-form button {
    background-color: var(--accent);
    color: var(--neutral-dark);
    border: none;
    border-radius: 12px;
    padding: 0.9rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(249, 168, 38, 0.2);
}

.waitlist-form button:hover {
    background: #4B421B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 168, 38, 0.3);
}

.waitlist-form button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(249, 168, 38, 0.2);
}

.waitlist-success, .waitlist-error {
    margin-top: 1rem;
    font-size: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
}

.waitlist-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.waitlist-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========================================
   THANK YOU MESSAGE
   ======================================== */

.thank-you-message {
    text-align: center;
    background: rgba(255,255,255,0.95);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

.thank-you-message h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.thank-you-message p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--neutral-dark);
    line-height: 1.6;
}

.survey-button {
    background: var(--accent);
    color: var(--neutral-dark);
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(249, 168, 38, 0.3);
}

.survey-button:hover {
    background: #4B421B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 168, 38, 0.4);
}

/* ========================================
   SURVEY FORM
   ======================================== */

#surveyForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    background: rgba(255,255,255,0.95);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.survey-question {
    background: var(--white);
    border: 1px solid var(--support-2);
    padding: 1rem;
    border-radius: 12px;
}

.survey-question label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.75rem;
    color: var(--neutral-dark);
}

.checkbox-group, .radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-group label, .radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.25rem 0;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
    margin: 0;
}

#surveyForm textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

#surveyForm textarea:focus {
    border-color: #F9A826;
    outline: none;
    box-shadow: 0 2px 8px rgba(249, 168, 38, 0.1);
}

#surveyForm button {
    background: var(--accent);
    color: var(--neutral-dark);
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(249, 168, 38, 0.3);
}

#surveyForm button:hover {
    background: #4B421B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 168, 38, 0.4);
}

/* Survey thank you message */
#surveyThankYou {
    text-align: center;
    background: rgba(255,255,255,0.95);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#surveyThankYou h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* ========================================
   WAITLIST MODAL
   ======================================== */

.waitlist-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.waitlist-modal[style*="display: flex"] {
    display: flex !important;
}

.waitlist-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
    z-index: 2000;
}

.waitlist-modal-content {
    position: relative;
    z-index: 2001;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border-radius: 24px;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    max-width: 700px;
    width: 90vw;
    max-height: 90vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modal-pop-in 0.25s cubic-bezier(.4,1.4,.6,1) 1;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

@keyframes modal-pop-in {
    0% { transform: scale(0.95) translateY(30px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.waitlist-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.2s;
    padding: 0 8px;
    line-height: 1;
}

.waitlist-modal-close:hover {
    color: #F9A826;
}

.waitlist-modal .thank-you-message,
.waitlist-modal #modalSurveyForm,
.waitlist-modal #modalSurveyThankYou {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    color: var(--neutral-dark);
}

.waitlist-modal .thank-you-message h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.waitlist-modal .thank-you-message p {
    color: var(--neutral-dark);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.waitlist-modal .survey-button {
    background: #ff7e32;
    color: #fff;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.9rem 2.2rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(255,126,50,0.18);
    border: none;
    transition: background 0.2s, transform 0.15s;
}

.waitlist-modal .survey-button:hover {
    background: #F9A826;
    transform: translateY(-1px);
}

.waitlist-modal #modalSurveyForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 70vh;
    word-break: break-word;
}

.waitlist-modal .survey-question {
    background: var(--white);
    padding: 1.2rem 1.5rem 1.2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.waitlist-modal #modalSurveyForm::-webkit-scrollbar {
    width: 8px;
}

.waitlist-modal #modalSurveyForm::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 8px;
}

.waitlist-modal #modalSurveyForm label,
.waitlist-modal #modalSurveyForm .checkbox-group label,
.waitlist-modal #modalSurveyForm .radio-group label {
    white-space: normal;
    word-break: break-word;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 700px) {
    .waitlist-modal-content {
        max-width: 95vw;
        padding: 1.2rem 1rem 1.2rem 1rem;
        max-height: 95vh;
    }
    .waitlist-modal #modalSurveyForm {
        max-height: 65vh;
        padding: 0;
    }
}

@media (max-width: 600px) {
    .name-fields {
        flex-direction: column;
        gap: 0.75rem;
    }

    .thank-you-message,
    #surveyForm {
        margin: 1rem;
        padding: 1.5rem;
    }

    .waitlist-modal-content {
        padding: 1.2rem 1rem 1.2rem 1rem;
        max-width: 95vw;
        max-height: 95vh;
    }
}
