﻿/* ========================================
   KASTA HOLI DHAMAKA - FESTIVE DESIGN
   Common Stylesheet
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Core Brand Colors - Holi Theme */
    --background: hsl(48, 100%, 50%);
    --foreground: hsl(0, 0%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(0, 0%, 15%);
    
    /* Primary - Holi Red */
    --primary: hsl(0, 80%, 45%);
    --primary-foreground: hsl(0, 0%, 100%);
    
    /* Secondary - Orange */
    --secondary: hsl(30, 100%, 50%);
    --secondary-foreground: hsl(0, 0%, 100%);
    
    /* Accent - Green */
    --accent: hsl(120, 60%, 35%);
    --accent-foreground: hsl(0, 0%, 100%);
    
    --muted: hsl(48, 60%, 90%);
    --muted-foreground: hsl(0, 0%, 35%);
    
    --border: hsl(48, 40%, 80%);
    --input: hsl(48, 40%, 95%);
    
    /* Holi Colors */
    --holi-yellow: hsl(48, 100%, 50%);
    --holi-red: hsl(0, 80%, 45%);
    --holi-orange: hsl(30, 100%, 50%);
    --holi-green: hsl(120, 60%, 35%);
    --holi-pink: hsl(330, 80%, 55%);
    --holi-purple: hsl(270, 60%, 50%);
    --holi-deep-red: hsl(0, 70%, 30%);
    
    /* Gradients */
    --gradient-holi: linear-gradient(135deg, var(--holi-yellow) 0%, var(--holi-orange) 50%, var(--holi-red) 100%);
    --gradient-card: linear-gradient(180deg, hsla(0, 0%, 100%, 0.95), hsla(0, 0%, 100%, 0.85));
    
    /* Shadows */
    --shadow-holi: 0 8px 32px hsla(0, 80%, 45%, 0.2), 0 2px 8px hsla(30, 100%, 50%, 0.15);
    --shadow-card: 0 4px 20px hsla(0, 0%, 0%, 0.08), 0 1px 4px hsla(0, 0%, 0%, 0.05);
    
    --radius: 0.75rem;
}

body {
    font-family: 'Poppins', system-ui, sans-serif;
    background: var(--background);
    color: var(--foreground);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   FLOATING PARTICLES BACKGROUND
   ======================================== */
.particles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.particle.red { background: hsla(0, 80%, 45%, 0.25); }
.particle.orange { background: hsla(30, 100%, 50%, 0.25); }
.particle.green { background: hsla(120, 60%, 35%, 0.2); }
.particle.pink { background: hsla(330, 80%, 55%, 0.2); }
.particle.purple { background: hsla(270, 60%, 50%, 0.2); }

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse 4s ease-in-out infinite;
}

.gradient-orb-1 {
    top: 20%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: hsla(0, 80%, 45%, 0.08);
}

.gradient-orb-2 {
    bottom: 20%;
    right: 20%;
    width: 250px;
    height: 250px;
    background: hsla(120, 60%, 35%, 0.08);
    animation-delay: 1s;
}

.gradient-orb-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: hsla(30, 100%, 50%, 0.06);
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px hsla(0, 80%, 45%, 0.3); }
    50% { box-shadow: 0 0 40px hsla(30, 100%, 50%, 0.5); }
}

/* ========================================
   MAIN CONTAINER & HERO
   ======================================== */
.main-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

.hero-banner {
    width: 100%;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   CHOOSE YOUR ROLE
   ======================================== */
.role-section {
    padding: 4rem 1rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-holi);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .section-title { font-size: 2.5rem; }
}

.role-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .role-grid { grid-template-columns: 1fr 1fr; }
}

.role-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid hsla(0, 80%, 45%, 0.2);
    box-shadow: var(--shadow-holi);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--foreground);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.role-card:hover {
    transform: scale(1.05);
}

.role-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-holi);
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.role-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.role-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
    padding: 4rem 1rem;
    background: hsla(0, 0%, 100%, 0.5);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.how-it-works .section-subtitle {
    text-align: center;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .steps-grid { grid-template-columns: repeat(5, 1fr); }
}

.step-card {
    text-align: center;
    position: relative;
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-holi);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-holi);
}

.step-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--holi-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.step-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ========================================
   REGISTRATION FORMS
   ======================================== */
.form-section {
    padding: 4rem 1rem;
    animation: fadeInUp 0.5s ease-out forwards;
}

.form-container {
    max-width: 560px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header p {
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

.form-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(0, 80%, 45%, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-holi);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-label svg {
    width: 16px;
    height: 16px;
    color: var(--holi-red);
}

.form-input, .form-select {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input::placeholder { color: var(--muted-foreground); }

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--holi-red);
    box-shadow: 0 0 0 3px hsla(0, 80%, 45%, 0.15);
}

.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

.input-with-btn {
    display: flex;
    gap: 0.5rem;
}

.input-with-btn .form-input {
    flex: 1;
}

.btn-outline {
    padding: 0 1rem;
    height: 48px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--muted);
}

.submit-btn {
    width: 100%;
    height: 56px;
    background: var(--gradient-holi);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-holi);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Scan Instructions Card */
.scan-instructions {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(0, 80%, 45%, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-holi);
    margin-bottom: 1.5rem;
}

.scan-instructions h3 {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient-holi);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.scan-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.scan-step:last-child { margin-bottom: 0; }

.scan-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-holi);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.scan-step strong { color: var(--foreground); }
.scan-step p { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.125rem; }

/* ========================================
   SUCCESS STATE
   ======================================== */
.success-card {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-holi);
    border: 1px solid hsla(0, 80%, 45%, 0.2);
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-holi);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.success-icon svg { width: 28px; height: 28px; color: white; }

.success-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-holi);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.success-card p { color: var(--muted-foreground); }

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 2.5rem 1rem;
    background: var(--holi-deep-red);
    color: white;
    text-align: center;
}

.footer h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer p {
    color: hsla(0, 0%, 100%, 0.8);
    margin-bottom: 1rem;
}

.footer a {
    color: hsla(0, 0%, 100%, 0.9);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer a:hover { color: white; }

.footer-divider {
    border: none;
    border-top: 1px solid hsla(0, 0%, 100%, 0.2);
    margin: 1rem 0;
}

.footer-copyright {
    font-size: 0.875rem;
    color: hsla(0, 0%, 100%, 0.6);
}

.hidden { display: none !important; }
.form-error {
    font-size: 0.75rem;
    color: hsl(0, 84%, 60%);
    margin-top: 0.25rem;
}