/* GoEdGlobal Eligibility Form - Modern Single-Page Premium Stylesheet */

:root {
    --bg-dark: #030914;
    --bg-indigo: #07152e;
    --primary-neon: #3b82f6;
    --primary-neon-glow: rgba(59, 130, 246, 0.3);
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.25);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-focus: rgba(59, 130, 246, 0.5);
    --font-sans: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Core Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body.apply-page {
    font-family: var(--font-sans);
    background: radial-gradient(circle at 50% 50%, var(--bg-indigo) 0%, var(--bg-dark) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Ambient Background Lights */
.ambient-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    top: 5%;
    left: -10%;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

.ambient-glow-2 {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    bottom: 10%;
    right: -10%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

/* Header */
.apply-header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.apply-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.apply-brand-text .name {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.apply-brand-text .tagline {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.apply-close-btn {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.apply-close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Split Grid Container */
.apply-container {
    flex-grow: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 5;
}

.apply-split-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
    padding-top: 1rem;
    padding-bottom: 3rem;
}

/* Left Panel - Info & Benefits */
.apply-info-panel {
    display: flex;
    flex-direction: column;
    padding-top: 1.5rem;
}

.panel-badge {
    align-self: flex-start;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-neon);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.info-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.benefit-item {
    display: flex;
    gap: 1.25rem;
}

.benefit-icon {
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--primary-neon);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.benefit-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Right Panel - Form Container */
.apply-form-panel {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.apply-single-form {
    width: 100%;
}

.form-section {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-neon);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

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

.label-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 0.25rem;
}

.form-input-wrapper {
    position: relative;
    width: 100%;
}

.apply-text-input-field {
    width: 100%;
    font-size: 1.05rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 0.9rem 1.2rem;
    outline: none;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.apply-text-input-field:focus {
    border-color: var(--primary-neon);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px var(--primary-neon-glow);
}

.apply-text-input-field::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
}

.input-error-msg {
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.25rem;
    display: none;
    align-items: center;
    gap: 0.35rem;
}

.input-error-msg.visible {
    display: flex;
}

/* Options Selector Grids */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    margin-top: 0.25rem;
}

.option-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    position: relative;
    transition: var(--transition-smooth);
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(59, 130, 246, 0.35);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.option-card.selected {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--primary-neon);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--primary-neon-glow);
}

.option-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.option-card:hover .option-badge {
    border-color: var(--primary-neon);
    color: var(--primary-neon);
}

.option-card.selected .option-badge {
    background: var(--primary-neon);
    border-color: var(--primary-neon);
    color: white;
}

.option-text {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.option-check {
    opacity: 0;
    color: var(--primary-neon);
    transition: var(--transition-smooth);
    transform: scale(0.6);
    font-size: 1rem;
}

.option-card.selected .option-check {
    opacity: 1;
    transform: scale(1);
}

/* Turnstile Widget Style */
.turnstile-wrapper {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    min-height: 65px;
}

/* Submit Button styling */
.submit-btn-glass {
    width: 100%;
    background-color: var(--primary-neon);
    color: white;
    padding: 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-neon-glow);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn-glass:hover:not(:disabled) {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

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

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

/* Success Card styling */
.form-success-container {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-card {
    text-align: center;
    padding: 1.5rem 0;
}

.success-icon-wrapper {
    width: 72px;
    height: 72px;
    background: rgba(16, 185, 129, 0.08);
    border: 2px solid var(--accent-emerald);
    color: var(--accent-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 0 25px var(--accent-emerald-glow);
    animation: heartbeat 2s infinite ease-in-out;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); box-shadow: 0 0 35px rgba(16, 185, 129, 0.35); }
}

.success-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.success-message {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.success-btn-wa {
    background-color: var(--accent-emerald);
    color: white;
    box-shadow: 0 4px 14px var(--accent-emerald-glow);
    text-decoration: none;
    border-radius: 10px;
    padding: 1rem;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.success-btn-wa:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-home-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    border-radius: 10px;
    padding: 1rem;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-home-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Simple Footer */
.apply-footer-simple {
    width: 100%;
    text-align: center;
    padding: 2.5rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    background: rgba(3, 9, 20, 0.6);
    backdrop-filter: blur(10px);
    margin-top: 5rem;
    position: relative;
    z-index: 10;
}

/* Entrance Animations */
.animate-slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translate3d(-30px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translate3d(30px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* Shake Animation for Invalid Inputs */
.shake-element {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
}

/* Responsiveness overrides */
@media (max-width: 992px) {
    .apply-split-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 0;
    }
    .apply-info-panel {
        text-align: center;
        align-items: center;
    }
    .info-title {
        font-size: 2.25rem;
    }
    .info-description {
        margin-bottom: 2rem;
    }
    .benefits-list {
        text-align: left;
        max-width: 550px;
    }
}

@media (max-width: 600px) {
    .apply-header {
        padding: 1.25rem 1rem;
    }
    .apply-close-btn span {
        display: none;
    }
    .apply-form-panel {
        padding: 1.5rem;
        border-radius: 16px;
    }
    .info-title {
        font-size: 1.8rem;
    }
    .apply-text-input-field {
        padding: 0.8rem 1rem;
    }
    .option-card {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    .form-section-title {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }
    .form-section {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
}
