/*
//  Created by Charlie Manning, Little Guy Dev, LLC on October 25, 2025.
//  Copyright © 2025 The Sacred Circle. All rights reserved.
*/

/* Beta Page Styles */

.beta-hero {
    background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, var(--md-sys-color-secondary) 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--md-sys-color-on-primary);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beta-hero .hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--md-sys-color-on-primary);
}

.beta-hero .hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

.beta-info-section {
    background-color: var(--md-sys-color-background);
    padding: 4rem 2rem;
}

.beta-info-content {
    max-width: 1200px;
    margin: 0 auto;
}

.beta-info-content h2 {
    font-size: 2rem;
    color: var(--md-sys-color-primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.beta-info-content > p {
    font-size: 1.1rem;
    color: var(--md-sys-color-on-background);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.beta-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-card {
    background: var(--md-sys-color-surface);
    padding: 2rem;
    border-radius: var(--md-sys-shape-corner-large);
    box-shadow: var(--md-sys-elevation-level1);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--md-sys-elevation-level2);
}

.benefit-card .material-symbols-rounded {
    font-size: 3rem;
    color: var(--md-sys-color-primary);
    display: block;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    color: var(--md-sys-color-primary);
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 1rem;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.5;
}

.beta-note {
    background: var(--md-sys-color-primary-container);
    padding: 1.5rem;
    border-radius: var(--md-sys-shape-corner-medium);
    border-left: 4px solid var(--md-sys-color-primary);
    margin-top: 2rem;
}

.beta-note p {
    color: var(--md-sys-color-on-primary-container);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

.beta-form-section {
    background: var(--md-sys-color-surface);
    padding: 4rem 2rem;
}

.beta-form-content {
    max-width: 700px;
    margin: 0 auto;
}

.beta-form-content h2 {
    font-size: 2rem;
    color: var(--md-sys-color-primary);
    text-align: center;
    margin-bottom: 1rem;
}

.beta-form-content > p {
    font-size: 1rem;
    color: var(--md-sys-color-on-surface-variant);
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

#beta-form {
    background: var(--md-sys-color-background);
    padding: 2.5rem;
    border-radius: var(--md-sys-shape-corner-large);
    box-shadow: var(--md-sys-elevation-level1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 0.5rem;
}

.form-group .required {
    color: #d32f2f;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    border: 2px solid var(--md-sys-color-outline);
    border-radius: var(--md-sys-shape-corner-medium);
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 3px rgba(95, 42, 122, 0.1);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235F2A7A' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-hint {
    display: block;
    font-size: 0.875rem;
    color: var(--md-sys-color-on-surface-variant);
    margin-top: 0.375rem;
    font-style: italic;
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--md-sys-color-outline);
    border-radius: 50%;
    margin-right: 0.5rem;
    position: relative;
    transition: border-color 0.2s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--md-sys-color-primary);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--md-sys-color-primary);
}

.radio-label input[type="radio"]:focus + .radio-custom {
    box-shadow: 0 0 0 3px rgba(95, 42, 122, 0.1);
}

.radio-text {
    font-size: 1rem;
    color: var(--md-sys-color-on-surface);
    font-weight: 500;
}

/* Checkbox */
.checkbox-group {
    margin-top: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--md-sys-color-outline);
    border-radius: var(--md-sys-shape-corner-extra-small);
    margin-right: 0.75rem;
    position: relative;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--md-sys-color-primary);
    background-color: var(--md-sys-color-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus + .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(95, 42, 122, 0.1);
}

.checkbox-text {
    font-size: 1rem;
    color: var(--md-sys-color-on-surface);
    line-height: 1.5;
}

/* Form actions */
.form-actions {
    margin-top: 2rem;
    text-align: center;
}

.submit-button {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 3rem;
    border-radius: var(--md-sys-shape-corner-extra-large);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: var(--md-sys-elevation-level1);
    min-width: 200px;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--md-sys-elevation-level2);
    background-color: #6e3389;
}

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

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner */
.form-spinner {
    display: none;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(95, 42, 122, 0.2);
    border-radius: 50%;
    border-top-color: var(--md-sys-color-primary);
    animation: spin 1s ease-in-out infinite;
    margin: 1.5rem auto;
}

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

/* Messages */
#submission-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--md-sys-shape-corner-medium);
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
}

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

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

/* Responsive design */
@media (max-width: 768px) {
    .beta-hero {
        padding: 3rem 1.5rem;
        min-height: 250px;
    }

    .beta-hero .hero-content h1 {
        font-size: 2rem;
    }

    .beta-hero .hero-content p {
        font-size: 1rem;
    }

    .beta-info-section,
    .beta-form-section {
        padding: 3rem 1.5rem;
    }

    .beta-info-content h2,
    .beta-form-content h2 {
        font-size: 1.75rem;
    }

    .beta-benefits {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #beta-form {
        padding: 1.5rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }

    .submit-button {
        width: 100%;
        padding: 0.875rem 2rem;
    }
}

@media (max-width: 480px) {
    .beta-hero .hero-content h1 {
        font-size: 1.75rem;
    }

    .benefit-card .material-symbols-rounded {
        font-size: 2.5rem;
    }

    #beta-form {
        padding: 1.25rem;
    }
}

/* Profile button styling to match index.html */
.profile-button {
    background-color: var(--md-custom-accent);
    color: var(--md-sys-color-primary) !important;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.profile-button:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}


