:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #8b5cf6;
    --dark-bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* Background Animation */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

.globe-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.globe-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -10%;
    right: -10%;
    animation-delay: 2s;
}

.globe-3 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    top: 40%;
    left: 40%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 480px;
    /* Mobile focused */
    z-index: 10;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 30px;
}

.badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 12px;
}

.gradient-text {
    background: linear-gradient(135deg, #a5b4fc 0%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
}

.cta-box {
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 12px;
    display: inline-block;
}

/* OFFER CONTAINER STYLES - NEW */
.offer-container {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Glowing effect for offer */
.offer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.offer-badge {
    background: var(--secondary);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pricing-box {
    margin-bottom: 15px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1.1rem;
}

.new-price {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    font-family: var(--font-heading);
}

.discount-pill {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Timer Styles */
.timer-box {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.timer-box p {
    margin-bottom: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.time-unit {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 8px;
    min-width: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.time-unit span {
    display: block;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
}

.time-unit small {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.sep {
    font-weight: bold;
    color: var(--text-muted);
    margin-top: -10px;
}

/* Form Group Header spacing */
.form-header-group {
    margin-bottom: 25px;
}

.form-header-group h2 {
    margin-bottom: 5px;
}

.form-header-group .form-subtitle {
    margin-bottom: 0;
}


/* Form Card */
.form-cardglass {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Form Elements */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .input-group {
    flex: 1;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 8px;
    margin-left: 4px;
}

input,
select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(79, 70, 229, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Security Note */
.security-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Success Page Specifics - We'll reuse this CSS */
.success-card {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.offer-grid {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

.offer-card {
    background: rgba(255, 255, 255, 0.05);
    /* Slightly lighter than main card */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 16px;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.offer-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: scale(1.02);
}

.offer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
}

.offer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: block;
}

.badge-offer {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    margin-left: 8px;
    vertical-align: middle;
}

/* Responsive Tweaks */
@media (max-width: 380px) {
    h1 {
        font-size: 2rem;
    }

    .form-cardglass {
        padding: 20px 16px;
    }
}

/* SPIN WHEEL STYLES */
.gamification-section {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 20;
}

.wheel-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 20px;
}

.wheel-outer {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    position: relative;
    overflow: hidden;
    background: #1e293b;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    position: relative;
}

.segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    right: 50%;
    bottom: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* 4 Segments = 90 deg each */
.seg-1 {
    background: #ec4899;
    transform: rotate(0deg);
}

.seg-2 {
    background: #8b5cf6;
    transform: rotate(90deg);
}

.seg-3 {
    background: #6366f1;
    transform: rotate(180deg);
}

.seg-4 {
    background: #22c55e;
    transform: rotate(270deg);
}

.seg-content {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 70px;
    text-align: center;
    transform: rotate(45deg);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.spin-btn-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--dark-bg);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.5);
    user-select: none;
}

.spin-btn-center:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.pointer-arrow {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #fbbf24;
    z-index: 15;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

.prize-result {
    margin-top: 15px;
    padding: 15px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    border-radius: 12px;
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    display: none;
}

.prize-result.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.prize-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #4ade80;
    display: block;
    margin-top: 5px;
}