:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #22c55e;
    --bg-dark: #020617;
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, #020617, #0f172a, #1e1b4b, #020617);
    background-size: 400% 400%;
    animation: bgMove 18s ease infinite;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes bgMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGreen {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70%  { box-shadow: 0 0 0 14px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.main-card {
    animation: fadeInUp 0.6s ease;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(99, 102, 241, 0.1) inset;
    border-radius: 24px;
    overflow: hidden;
    width: 100%;
    max-width: 520px;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, transparent 60%);
    animation: shimmer 4s ease infinite;
}

.badge {
    background: linear-gradient(90deg, #f59e0b, #f97316);
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 8px;
}

.card-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.card-header p {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 4px;
}

.webinar-info {
    padding: 16px 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.webinar-label {
    font-size: 0.65rem;
    color: #818cf8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.webinar-topic {
    font-size: 0.95rem;
    font-weight: 600;
}

.webinar-time {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.webinar-id {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #a5b4fc;
    text-align: right;
    white-space: nowrap;
}

.community-btn {
    display: block;
    text-align: center;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 14px 24px;
    text-decoration: none;
    animation: pulseGreen 2s infinite;
    transition: opacity 0.2s;
    margin: 0;
}

.community-btn:hover { opacity: 0.92; }

.form-section {
    padding: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.form-input {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid #334155;
    color: white;
    padding: 12px 14px;
    border-radius: 12px;
    width: 100%;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    outline: none;
}

.form-input::placeholder { color: #475569; }

.form-input option { background: #0f172a; }

.fee-box {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    padding: 5px 0;
    color: #94a3b8;
}

.fee-row span:last-child { color: white; }

.fee-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid rgba(99, 102, 241, 0.25);
}

.fee-total span:first-child { color: #818cf8; }

.submit-btn {
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.3px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(99, 102, 241, 0.45);
}

.submit-btn:active { transform: translateY(0); }

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.footer-note {
    text-align: center;
    font-size: 0.7rem;
    color: #475569;
    margin-top: 14px;
}

.error-msg {
    color: #f87171;
    font-size: 0.75rem;
    margin-top: 4px;
    display: none;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
    .form-grid { grid-template-columns: 1fr; }
    .webinar-info { flex-direction: column; }
}
