/* =========================
   RESET & GLOBAL ENHANCEMENTS
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: #f9fafb;
    color: #0f172a;
    line-height: 1.5;
}

/* =========================
   HERO SECTION
========================= */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    background: linear-gradient(145deg, #ffffff 0%, #eef2ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, rgba(37,99,235,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(249,115,22,0.05) 0%, rgba(249,115,22,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.12);
    backdrop-filter: blur(2px);
    color: #1e40af;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
    border: 1px solid rgba(37,99,235,0.2);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.hero-text {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 28px;
    color: #334155;
    font-weight: 400;
}

.price-box {
    margin: 20px auto 32px;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    background: linear-gradient(145deg, #f97316, #ea580c);
    padding: 14px 42px;
    color: white;
    border-radius: 60px;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 20px 35px -12px rgba(249,115,22,0.4);
    transition: transform 0.2s ease;
}

.price-box span {
    font-size: 1.2rem;
    font-weight: 500;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: #2563eb;
    color: white;
    padding: 16px 36px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    box-shadow: 0 8px 18px rgba(37,99,235,0.2);
}

.primary-btn i {
    font-size: 1.2rem;
}

.primary-btn:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 20px 28px -12px #2563eb70;
}

/* =========================
   SECTION COMMON
========================= */
section {
    padding: 80px 24px;
}

section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 48px;
    color: #0f172a;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
    width: 100%;
}

section h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #2563eb);
    border-radius: 4px;
    margin: 16px auto 0;
}

/* =========================
   FEATURES
========================= */
.feature-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.feature-card {
    background: white;
    padding: 32px 20px;
    border-radius: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card i {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 18px;
    color: #2563eb;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12);
    border-color: #e0e7ff;
}

/* =========================
   SUBJECTS
========================= */
.subjects {
    background: #f1f5f9;
}

.subject-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 22px;
}

.subject-card {
    background: white;
    padding: 20px 12px;
    border-radius: 32px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: default;
}

.subject-card i {
    color: #f97316;
    font-size: 1.3rem;
}

.subject-card:hover {
    border-color: #2563eb;
    background: #ffffff;
    transform: scale(1.02);
    box-shadow: 0 12px 20px -12px rgba(0,0,0,0.1);
}

/* =========================
   PAYMENT SECTION
========================= */
.payment-section {
    background: #ffffff;
}

.payment-card {
    max-width: 1000px;
    margin: 0 auto 48px;
    background: #fefefe;
    border-radius: 40px;
    padding: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.12);
    border: 1px solid #f1f5f9;
}

.qr-image {
    width: 280px;
    max-width: 100%;
    border-radius: 28px;
    background: white;
    padding: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2ff;
}

.upi-info h3 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(145deg, #f97316, #c2410c);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}

.upi-info p {
    color: #334155;
    margin-bottom: 24px;
}

.upi-id {
    background: #eef2ff;
    padding: 16px 20px;
    border-radius: 20px;
    font-family: monospace;
    word-break: break-all;
    border: 1px solid #cbd5e1;
}

/* =========================
   INSTRUCTIONS
========================= */
.instructions {
    max-width: 900px;
    margin: 20px auto 0;
    background: #fffaf5;
    padding: 32px 40px;
    border-radius: 36px;
    border-left: 6px solid #f97316;
}

.instructions h3 {
    margin-bottom: 24px;
    font-size: 1.6rem;
    color: #c2410c;
    display: flex;
    align-items: center;
    gap: 12px;
}

.instructions ol {
    padding-left: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.instructions li {
    margin-bottom: 8px;
    font-weight: 500;
}

/* =========================
   FORM SECTION
========================= */
.form-section {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
}

#paymentForm {
    max-width: 720px;
    margin: 0 auto;
    background: white;
    padding: 44px 48px;
    border-radius: 40px;
    box-shadow: 0 25px 48px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2ff;
}

.input-group {
    margin-bottom: 26px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1e293b;
}

.input-group label i {
    color: #2563eb;
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #fefefe;
}

.input-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.warning-box {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 16px 20px;
    border-radius: 20px;
    margin-bottom: 28px;
    font-size: 0.9rem;
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    border: none;
    background: linear-gradient(95deg, #2563eb, #1e3a8a);
    color: white;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.submit-btn:hover {
    transform: scale(0.98);
    background: linear-gradient(95deg, #1d4ed8, #1e3a8a);
    box-shadow: 0 8px 18px #2563eb40;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#statusMessage {
    margin-top: 24px;
    text-align: center;
    font-weight: 600;
    padding: 12px;
    border-radius: 30px;
}

/* =========================
   FAQ
========================= */
.faq {
    max-width: 980px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.faq-item {
    background: white;
    margin-bottom: 20px;
    padding: 28px 32px;
    border-radius: 32px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.02);
    border: 1px solid #eef2ff;
    transition: all 0.2s;
}

.faq-item:hover {
    border-color: #cbd5e1;
}

.faq-item h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* =========================
   FOOTER
========================= */
footer {
    background: #0f172a;
    color: #cbd5e1;
    text-align: center;
    padding: 36px 24px;
    border-top: 1px solid #1e293b;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.6rem;
    }
    .hero-text {
        font-size: 1rem;
    }
    section {
        padding: 60px 20px;
    }
    .payment-card {
        flex-direction: column;
        padding: 24px;
    }
    .qr-image {
        width: 220px;
    }
    #paymentForm {
        padding: 28px 22px;
    }
    .instructions {
        padding: 24px 20px;
    }
    .price-box {
        font-size: 1.8rem;
        padding: 8px 32px;
    }
    .feature-card {
        padding: 24px 16px;
    }
}