:root {
    /* Colors */
    --bg-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.85);
    --primary-color: #007bff;
    /* A nice vivid blue */
    --primary-hover: #0056b3;
    --secondary-color: #64748b;
    --secondary-hover: #475569;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --input-bg: #f8fafc;
    --error-color: #ef4444;
    --success-color: #10b981;

    /* Glows - adjusted for light theme to be shadows */
    --glow-primary: 0 0 15px rgba(0, 123, 255, 0.2);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --border-radius: 12px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: var(--spacing-md);
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #ffffff;
}

.orb {
    display: none;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 30px);
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 650px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Header */
.form-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    animation: fadeInDown 0.8s ease-out;
}

.form-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    background: none;
    /* Removed gradient text for cleaner light look, or can keep subtle */
    -webkit-text-fill-color: initial;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 500;
}

/* Glass Panel - Solid card for light theme */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-card);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Form Styles */
.form-instruction {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
    margin-bottom: var(--spacing-md);
}

.required {
    color: var(--error-color);
    font-weight: bold;
}

.form-section {
    margin-bottom: var(--spacing-lg);
}

.form-section h2 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    border-left: 3px solid var(--primary-color);
    padding-left: var(--spacing-sm);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

@media (max-width: 600px) {
    .grid-row {
        grid-template-columns: 1fr;
    }
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background-color: #fff;
}

textarea {
    resize: vertical;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.radio-label:hover {
    color: var(--primary-color);
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 8px;
    display: grid;
    place-items: center;
    transition: all 0.2s;
    background-color: #fff;
}

.radio-label input:checked+.radio-custom {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.radio-label input:checked+.radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Divider */
.divider {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: var(--spacing-lg) 0;
}

/* Buttons */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.btn-secondary {
    background-color: #fff;
    border: 1px solid #cbd5e1;
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
    background-color: #f1f5f9;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Footer */
.site-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.site-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Modal */
.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    max-width: 400px;
    width: 100%;
    text-align: center;
    padding: var(--spacing-lg);
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.modal-content h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}