:root {
    --primary-gold: #FFD700;
    --dark-gold: #DAA520;
    --deep-maroon: #2b052b;
    --card-bg: #fdf5e6;
    --text-color: #4a0e4e;
    --input-bg: #eef2f5;
    --btn-gradient: linear-gradient(180deg, #ff9900 0%, #cc4400 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans Devanagari', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    background-color: var(--deep-maroon);
    
    /* यहाँ इमेज का नाम bg.png कर दिया गया है */
    background-image: url('images/bg.png'); 
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    
    /* background-attachment: fixed; हटा दिया गया है ताकि मोबाइल में इमेज सही दिखे */
    
    overflow-x: hidden;
}

/* बैकग्राउंड ओवरले - अब बहुत हल्का है ताकि इमेज दिखे */
.bg-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    /* सिर्फ 30% डार्कनेस ताकि इमेज साफ दिखे और टेक्स्ट भी पढ़ा जा सके */
    background: rgba(0, 0, 0, 0.35); 
    z-index: 1;
}

/* मुख्य कंटेनर */
.container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 15px 30px;
}

/* हेडर टेक्स्ट */
.hero-section { text-align: center; margin-bottom: 20px; width: 100%; }

.badge {
    display: inline-block;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 4px 15px;
    border-radius: 20px;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 600;
    margin-bottom: 10px;
    background: rgba(0,0,0,0.5);
}

.main-title {
    font-size: clamp(30px, 9vw, 42px);
    font-weight: 900;
    background: linear-gradient(to bottom, #FFF7A1, #FFD700, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* टेक्स्ट के पीछे डार्क शैडो ताकि बैकग्राउंड में साफ दिखे */
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.8)); 
    margin-bottom: 15px;
    line-height: 1.2;
}

/* नंबर बॉक्स (777777) */
.number-container {
    display: flex;
    justify-content: center;
    gap: clamp(4px, 1.5vw, 8px);
    margin-bottom: 15px;
}

.num-box {
    width: clamp(38px, 11vw, 50px);
    height: clamp(48px, 13vw, 60px);
    background: linear-gradient(180deg, #FFF7A1 0%, #FFC107 50%, #FF8C00 100%);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(24px, 8vw, 32px);
    font-weight: 700;
    color: #8B0000;
    border: 2px solid #FFF;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 2px 5px rgba(255,255,255,0.8);
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 4px 10px rgba(0,0,0,0.5), 0 0 5px var(--primary-gold); }
    100% { transform: scale(1.03); box-shadow: 0 4px 15px rgba(0,0,0,0.7), 0 0 20px #FF8C00; }
}

.bonus-text {
    color: var(--primary-gold);
    font-size: clamp(20px, 6vw, 26px);
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0,0,0,0.9); /* डार्क शैडो */
}

.sub-text {
    color: #fff;
    font-size: clamp(13px, 3.5vw, 15px);
    margin-top: 5px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* फॉर्म कार्ड - यह सॉलिड रहेगा ताकि इनपुट साफ दिखे */
.form-card {
    background: var(--card-bg);
    width: 100%;
    border-radius: 15px;
    padding: 20px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 0 2px var(--dark-gold);
    position: relative;
}

.form-title {
    text-align: center;
    color: var(--text-color);
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 700;
    margin-bottom: 20px;
}

.form-title span { color: var(--dark-gold); }

/* इनपुट फील्ड्स */
.input-group { margin-bottom: 15px; }

.input-group label {
    display: block;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 15px;
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px; 
    background-color: var(--input-bg);
    color: #333;
    transition: border 0.3s;
}

.input-group input:focus {
    border-color: var(--dark-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
    background-color: #fff;
}

/* कस्टम चेकबॉक्स */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
    user-select: none;
}

.checkbox-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }

.checkmark {
    position: absolute;
    top: 0; left: 0;
    height: 20px; width: 20px;
    background-color: #fff;
    border: 1.5px solid #aaa;
    border-radius: 4px;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--dark-gold);
    border-color: var(--dark-gold);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after { display: block; }

.checkbox-container .checkmark:after {
    left: 6px; top: 2px;
    width: 5px; height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* सबमिट बटन */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--btn-gradient);
    border: 2px solid #ffcc00;
    border-radius: 30px;
    color: white;
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4), inset 0 2px 5px rgba(255,255,255,0.3);
    transition: transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-btn:active { transform: scale(0.97); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* लोडर */
.loader {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}
.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.disclaimer {
    text-align: center;
    font-size: clamp(11px, 3vw, 13px);
    color: #555;
    margin-top: 15px;
    font-weight: 600;
}

/* फुटर */
footer { text-align: center; margin-top: 20px; }
.footer-warning { 
    color: var(--primary-gold); 
    font-weight: 700; 
    font-size: clamp(14px, 4vw, 16px); 
    margin-bottom: 5px; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.9); /* टेक्स्ट साफ दिखने के लिए */
}
.footer-credit { color: #ddd; font-size: 11px; text-shadow: 0 1px 2px #000; }

/* टोस्ट नोटिफिकेशन */
.toast {
    position: fixed;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 90%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.toast.show { top: 20px; }
.toast.success { background: #28a745; }
.toast.error { background: #dc3545; }

/* डेस्कटॉप के लिए थोड़ा और बेहतर करने के लिए */
@media (min-width: 481px) {
    .container { padding-top: 30px; }
    .form-card { padding: 30px 25px; }
}
