/* ELDA Waitlist Page Styles */

:root {
    /* ELDA Color Palette */
    --primary-color: #F9A825;
    --primary-dark: #E67700;
    --primary-light: #FFD89B;
    --secondary-color: #5C5550;
    --text-primary: #2D2926;
    --text-secondary: #6B6661;
    --background: #FFFBF5;
    --white: #FFFFFF;
    --success: #4CAF50;
    --error: #E53935;
    --border: #E8E3DC;
    --shadow: rgba(92, 85, 80, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, #FFF8E8 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Navigation Bar */
.navbar {
    background: var(--white);
    box-shadow: 0 4px 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
}

.nav-logo h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.nav-back {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

/* Waitlist Section */
.waitlist-section {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.waitlist-container {
    max-width: 600px;
    width: 100%;
}

/* Form Container */
.form-container {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px var(--shadow);
    animation: fadeInUp 0.6s ease;
}

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

/* Header */
.waitlist-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.header-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.header-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--white);
}

.waitlist-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Form Styles */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    font-family: 'Nunito', sans-serif;
    font-size: 1.125rem;
    padding: 1rem 1.25rem;
    border: 2.5px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(249, 168, 37, 0.1);
}

.form-group input::placeholder {
    color: #B8B3AD;
}

/* Submit Button */
.btn-submit {
    font-family: 'Nunito', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 168, 37, 0.3);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 168, 37, 0.4);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-spinner {
    display: inline-block;
}

.spinner {
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}

.spinner-circle {
    stroke: var(--white);
    stroke-dasharray: 50, 200;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: spinnerDash 1.5s ease-in-out infinite;
}

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

@keyframes spinnerDash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}

/* Privacy Note */
.privacy-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.privacy-note svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary-color);
    flex-shrink: 0;
}

/* Error Message */
.error-message {
    background: #FFEBEE;
    border: 2px solid var(--error);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-message svg {
    width: 24px;
    height: 24px;
    stroke: var(--error);
    flex-shrink: 0;
}

.error-message p {
    color: var(--error);
    font-weight: 600;
    margin: 0;
}

/* Thank You Container */
.thank-you-container {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px var(--shadow);
    text-align: center;
    animation: fadeInScale 0.8s ease;
    position: relative;
    overflow: hidden;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Success Animation */
.success-animation {
    margin-bottom: 2rem;
}

.checkmark-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
}

.checkmark {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.checkmark-circle-bg {
    stroke: var(--success);
    stroke-width: 3;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke: var(--success);
    stroke-width: 3;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Thank You Content */
.thank-you-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.thank-you-message {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.thank-you-message strong {
    color: var(--primary-color);
}

.thank-you-submessage {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Thank You Actions */
.thank-you-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    font-family: 'Nunito', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(249, 168, 37, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 168, 37, 0.4);
}

.btn-secondary {
    background: var(--background);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Confetti Effect */
.confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-logo h1 {
        font-size: 1.5rem;
    }

    .nav-back {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .form-container,
    .thank-you-container {
        padding: 2rem 1.5rem;
    }

    .waitlist-header h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .form-group label {
        font-size: 1rem;
    }

    .form-group input {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }

    .btn-submit {
        font-size: 1.125rem;
        padding: 1rem 1.5rem;
    }

    .thank-you-content h1 {
        font-size: 2rem;
    }

    .thank-you-message {
        font-size: 1.125rem;
    }

    .thank-you-actions {
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .waitlist-section {
        padding: 2rem 1rem;
    }

    .header-icon {
        width: 60px;
        height: 60px;
    }

    .header-icon svg {
        width: 30px;
        height: 30px;
    }

    .waitlist-header h1 {
        font-size: 1.5rem;
    }

    .checkmark-circle {
        width: 100px;
        height: 100px;
    }

    .checkmark {
        width: 100px;
        height: 100px;
    }
}
