/* --- DESIGN TOKENS & VARIABLES --- */
:root {
    /* Brand Palette */
    --ht-red: #a31f37;
    --ht-red-dark: #82182c;
    --ht-blue: #6ca9dc;
    --ht-blue-light: #8bc2f0;
    --gold: #cb7e30;
    
    /* Neutrals */
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --bg-dark: #0f172a;
    
    /* Typography */
    --font-display: 'Raleway', Arial, sans-serif;
    --font-body: 'Raleway', Arial, sans-serif;
    --font-script: 'Raleway', Arial, sans-serif;
}

/* --- RESETS & BASICS --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg-dark);
}

.hidden {
    display: none !important;
}

/* --- BACKGROUND & TEXTURES --- */
.bg-image {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://offertabs.s3.amazonaws.com/offer/svy3jx/site/media/6ac45bfe3b1296.98061855.jpg');
    background-size: cover;
    background-position: center;
    z-index: -3;
}

.gradient-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(108, 169, 220, 0.85) 0%, rgba(163, 31, 55, 0.8) 100%);
    z-index: -2;
}

/* --- LAYOUT & CONTAINERS --- */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --- RIBBON --- */
.steps-ribbon {
    width: 100%;
    background: linear-gradient(90deg, var(--ht-red), var(--ht-blue));
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 20px;
    gap: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

.step-num {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-display);
}

/* --- HERO GRID --- */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 20px;
}

/* --- TYPOGRAPHY --- */
.brand-logo {
    display: block;
    max-width: 220px;
    height: auto;
    margin-bottom: 24px;
}

.main-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.subtitle {
    font-family: var(--font-script);
    font-size: 2.2rem;
    color: #000000;
    margin-bottom: 30px;
    transform: rotate(-2deg);
    font-style: normal;
}

/* --- INSTRUCTIONS BOX --- */
.instructions-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.instructions-intro {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.instructions-list {
    margin-left: 20px;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 500;
}

.instructions-list li {
    margin-bottom: 12px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.instructions-list li:last-child {
    margin-bottom: 0;
}

/* --- PRIZE BOXES --- */
.prize-ribbon {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-radius: 16px;
    margin-bottom: 12px;
    transform: rotate(-1deg);
}

.prize-ribbon:last-of-type {
    margin-bottom: 40px;
}

.prize-icon {
    font-size: 2.5rem;
}

.prize-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.2;
}

.prize-text span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Prize Box Colors & Shadows */
.prize-yellow {
    background: linear-gradient(135deg, rgba(203, 126, 48, 0.95) 0%, rgba(225, 150, 70, 0.95) 100%);
    box-shadow: 0 10px 30px rgba(203, 126, 48, 0.3);
}
.prize-yellow .prize-text strong { color: var(--text-dark); }
.prize-yellow .prize-text span { color: rgba(30, 27, 75, 0.8); }

.prize-red {
    background: linear-gradient(135deg, rgba(163, 31, 55, 0.95) 0%, rgba(130, 24, 44, 0.95) 100%);
    box-shadow: 0 10px 30px rgba(163, 31, 55, 0.3);
}
.prize-red .prize-text strong { color: #ffffff; }
.prize-red .prize-text span { color: rgba(255, 255, 255, 0.9); }

.prize-blue {
    background: linear-gradient(135deg, rgba(108, 169, 220, 0.95) 0%, rgba(139, 194, 240, 0.95) 100%);
    box-shadow: 0 10px 30px rgba(108, 169, 220, 0.3);
}
.prize-blue .prize-text strong { color: var(--text-dark); }
.prize-blue .prize-text span { color: rgba(30, 27, 75, 0.8); }

/* --- GLASSMORPHISM CARDS --- */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* --- FORM STYLES --- */
.form-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-desc {
    color: #475569;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #334155;
}

.required-star {
    color: var(--ht-red);
}

/* Enlarged Tap Targets for Inputs */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="date"] {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 16px; /* 16px prevents iOS auto-zoom */
    background: white;
    transition: all 0.3s ease;
    min-height: 54px;
}

input:focus {
    outline: none;
    border-color: var(--ht-red);
    box-shadow: 0 0 0 4px rgba(163, 31, 55, 0.1);
}

select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    width: 100%; padding: 16px; padding-right: 48px;
    font-size: 16px; font-family: var(--font-body);
    border: 2px solid #e2e8f0; border-radius: 12px;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
    color: var(--text-dark);
    transition: all 0.3s ease;
    min-height: 54px;
}

select:focus {
    outline: none;
    border-color: var(--ht-red);
    box-shadow: 0 0 0 4px rgba(163, 31, 55, 0.1);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 16px;
    pointer-events: none; /* Allows tap to pass through to input */
}

.input-with-icon input {
    padding-left: 40px;
}

/* Social Handles Section */
.social-handles-section {
    padding-top: 24px;
    margin-top: 24px;
    margin-bottom: 24px;
    border-top: 1px dashed #cbd5e1;
}

.social-handles-title {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Checkbox group styling */
.checkbox-group {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.5;
    cursor: pointer;
    margin-bottom: 0;
    color: #334155;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--ht-red);
    cursor: pointer;
}

/* Captcha group styling */
.captcha-group {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    margin-bottom: 24px;
}

.captcha-group label {
    margin-bottom: 12px;
    color: #1e293b;
    font-weight: 700;
}

.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #ef4444;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* --- LEGAL FOOTER --- */
.legal-footer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-top: 24px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    padding: 0 16px;
}

.footer-link, .inline-link {
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.footer-link:hover, .inline-link:hover {
    color: var(--ht-blue-light);
}

/* --- MODAL FOR RULES --- */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 10000;
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-btn:hover {
    background: #e2e8f0;
}

.rules-text {
    color: var(--text-dark);
}

.rules-text h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--ht-red);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 16px;
}

.rules-text h3 {
    font-size: 1.25rem;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #334155;
}

.rules-text p {
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
}


/* --- BUTTONS --- */
/* Enlarged Tap Targets for Buttons */
.btn-primary {
    width: 100%;
    padding: 18px 16px;
    min-height: 60px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ht-red), var(--ht-red-dark));
    color: white;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(163, 31, 55, 0.3);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(163, 31, 55, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-loader {
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- RIGHT COLUMN VISUALS --- */
.visual-cluster {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 500px;
}

.wordmark {
    position: absolute;
    top: 10px;
    left: -10px;
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: #ffffff;
    text-shadow: 1px 2px 0px #000000, 0 5px 10px rgba(0,0,0,0.5);
    transform: rotate(-10deg);
    z-index: 5;
    pointer-events: none;
    font-style: normal;
}

/* Phone Mockup */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: white;
    border-radius: 40px;
    border: 12px solid #1e293b;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #334155;
    position: relative;
    overflow: hidden;
    z-index: 2;
    transform: rotate(3deg);
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: rotate(0deg) translateY(-10px);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1e293b;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
}

.phone-header {
    padding: 40px 16px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: white;
}

.phone-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pp-img {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ht-red), var(--ht-blue));
}

.pp-text strong {
    font-family: var(--font-display);
    font-size: 0.9rem;
    word-break: break-word;
    display: block;
}

.pp-text span {
    font-size: 0.8rem;
    color: #64748b;
}

.feed-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- POST ENTRY STATES --- */
.success-icon {
    width: 80px; height: 80px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.text-center {
    text-align: center;
}

.bonus-box {
    margin-top: 30px;
    padding: 24px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
}

.bonus-box h4 {
    color: var(--text-dark);
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.bonus-box p {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 16px;
}

.share-row {
    display: flex;
    gap: 8px;
}

.share-row input {
    flex: 1;
    background: white;
    font-family: var(--font-body);
    color: #475569;
}

.btn-secondary {
    padding: 12px 24px;
    min-height: 54px; /* Matches input height */
    background: var(--text-dark);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: #334155;
}

/* --- ANIMATIONS --- */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(-10deg); }
    50% { transform: translateY(-15px) rotate(-10deg); }
    100% { transform: translateY(0px) rotate(-10deg); }
}

.slide-up-anim {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px) rotate(3deg); }
    to { opacity: 1; transform: translateY(0) rotate(3deg); }
}

.pulse-anim {
    animation: popIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- FOOTER SLOT --- */
#wbx-powered-by-slot {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
    margin-top: auto;
    z-index: 10;
}


/* --- MOBILE LAYOUT REFINEMENTS --- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .wordmark {
        left: 0;
        top: -30px;
        font-size: 2.5rem;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }
    
    .steps-ribbon {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }
    
    .step {
        width: 100%;
    }
    
    .main-title {
        font-size: 2.25rem;
        text-align: center;
    }
    
    .subtitle {
        font-size: 1.75rem;
        text-align: center;
        transform: none;
    }
    
    .brand-logo {
        margin: 0 auto 24px;
    }
    
    .left-col {
        display: flex;
        flex-direction: column;
    }
    
    .instructions-list {
        font-size: 0.85rem;
    }
    
    .prize-ribbon {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 12px;
        transform: none; /* Remove rotation for clean vertical stacking */
    }
    
    .prize-ribbon:last-of-type {
        margin-bottom: 32px;
    }
    
    .prize-icon {
        font-size: 2rem;
    }
    
    .glass-card {
        padding: 24px 20px;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .visual-cluster {
        min-height: 420px;
        margin-top: 20px;
    }
    
    .phone-mockup {
        width: 100%;
        max-width: 280px;
        height: 560px;
        transform: none; /* Keep straight on small devices */
    }
    
    .phone-mockup:hover {
        transform: translateY(-5px);
    }
    
    .wordmark {
        font-size: 1.6rem;
        top: -20px;
        left: 0;
        width: 100%;
        text-align: center;
        white-space: nowrap;
    }
    
    .pp-text strong {
        font-size: 0.75rem;
    }
    
    .share-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .share-row input {
        width: 100%;
    }
    
    .btn-secondary {
        width: 100%;
    }
    
    .modal-content {
        padding: 24px 16px;
    }
    
    .rules-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .wordmark {
        font-size: 1.15rem;
        top: -10px;
        left: 0;
    }
}
/* Consistent typography across browsers and operating systems */
button, input, select, textarea {
    font-family: var(--font-body);
}

.btn-primary {
    font-family: var(--font-display);
}
