/* Early Access Page Styles */

/* Form Section */
.early-access-form-section {
    background-image: url('bg.png');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--color-bg);
    padding: var(--space-20) 0 var(--space-24) 0;
    margin-top: 122px;
    min-height: calc(100vh - 122px);
    position: relative;
}

.early-access-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 11, 13, 0.4) 0%, rgba(10, 11, 13, 0.7) 100%);
    z-index: 1;
}

.early-access-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    width: 100%;
    position: relative;
    z-index: 2;
}

.early-access-form-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.early-access-form-icon {
    width: clamp(80px, 12vw, 120px);
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin: 0 auto var(--space-4) auto;
    display: block;
}

.early-access-form-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.early-access-form-subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

.early-access-form {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-10);
}

/* Form Groups */
.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
}

.required {
    color: var(--color-accent);
}

/* Input Styles */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: all 0.2s var(--ease-out-cubic);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-10);
}

.form-group select option {
    background: var(--color-bg-elevated);
    color: var(--color-text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s var(--ease-out-cubic);
}

.radio-label:hover {
    border-color: var(--color-accent);
    background: var(--color-bg-elevated);
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--color-accent);
    background: var(--color-bg-elevated);
}

.radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
    accent-color: var(--color-accent);
}

.radio-label input[type="radio"]:checked + span {
    color: var(--color-accent);
    font-weight: 500;
}

.radio-label span {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* Form Footer */
.form-footer {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.form-note {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: var(--space-4) var(--space-6);
    background: #059669;
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--ease-out-cubic);
}

.submit-button:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background: var(--color-text-muted);
    cursor: not-allowed;
    transform: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .early-access-hero {
        min-height: auto;
        margin-top: 80px;
        padding: var(--space-20) 0 var(--space-16) 0;
    }

    .early-access-hero-icon {
        width: 80px;
        height: 80px;
    }

    .early-access-hero-title {
        font-size: var(--text-2xl);
    }

    .early-access-hero-subtitle {
        font-size: var(--text-base);
    }

    .early-access-form {
        padding: var(--space-6);
    }

    .early-access-form-section {
        padding: var(--space-16) 0;
    }
}

@media (max-width: 480px) {
    .early-access-hero-title {
        font-size: var(--text-xl);
    }

    .early-access-hero-subtitle {
        font-size: var(--text-sm);
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Success Message */
.form-success {
    text-align: center;
    padding: var(--space-16) var(--space-8);
}

.form-success svg {
    margin: 0 auto var(--space-6) auto;
    display: block;
}

.form-success h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.form-success p {
    font-size: var(--text-base);
    color: var(--color-text-tertiary);
    line-height: 1.6;
    margin-bottom: var(--space-8);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.form-success .return-home {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    background: #059669;
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.2s var(--ease-out-cubic);
}

.form-success .return-home:hover {
    background: #047857;
    transform: translateY(-1px);
}

/* Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
