/* --- CSS VARIABLES & BRAND PALETTE --- */
:root {
    /* Brand Colors requested */
    --blush: #fde2e4;
    --rose: #f7c1bb;
    --plum: #6e2546;
    --ivory: #fffaf3;
    
    /* Supporting accents */
    --magenta-glow: #e6005c; /* Deep glowing magenta */
    --magenta-glow-light: #ff1a75;
    
    /* Layout */
    --app-max-width: 460px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0e6e6; /* Soft neutral backdrop for desktop */
    color: var(--plum);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

/* --- LAYOUT WRAPPERS --- */
.site-background {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.mobile-app {
    width: 100%;
    max-width: var(--app-max-width);
    background-color: var(--ivory);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(110, 37, 70, 0.1);
    display: flex;
    flex-direction: column;
}

/* Status Banners */
.status-banner {
    background: var(--plum);
    color: var(--ivory);
    text-align: center;
    padding: 16px;
    font-weight: 500;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 48vh; /* 9:16 approx feel */
    min-height: 380px;
    max-height: 520px;
    overflow: hidden;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    box-shadow: 0 10px 30px rgba(110, 37, 70, 0.08);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Soft gradient overlay so text below pops */
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(255,250,243,1) 0%, rgba(255,250,243,0) 100%);
    pointer-events: none;
}

/* --- CONTENT AREA --- */
.content-body {
    padding: 24px 28px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Typography */
.campaign-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--plum);
    line-height: 1.1;
    margin-bottom: 12px;
    text-align: center;
}

.campaign-subtitle {
    font-size: 1rem;
    color: rgba(110, 37, 70, 0.8);
    text-align: center;
    margin-bottom: 32px;
    font-weight: 400;
}

/* --- ENTRY CARDS --- */
.entry-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.method-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid var(--blush);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(247, 193, 187, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.method-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 193, 187, 0.3);
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum);
    flex-shrink: 0;
}

.method-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--plum);
}

.method-text p {
    font-size: 0.85rem;
    color: rgba(110, 37, 70, 0.7);
}

/* --- FORM & BUTTONS --- */
.entry-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.input-group input {
    width: 100%;
    background: #ffffff;
    border: 2px solid var(--blush);
    border-radius: 16px;
    padding: 18px 20px;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    color: var(--plum);
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02) inset;
}

.input-group input:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(247, 193, 187, 0.2);
}

.input-group input::placeholder {
    color: rgba(110, 37, 70, 0.4);
}

/* Glowing Button */
.glow-btn {
    position: relative;
    background: linear-gradient(135deg, var(--magenta-glow-light) 0%, var(--magenta-glow) 100%);
    color: #ffffff;
    border: none;
    border-radius: 999px; /* Pill shape */
    padding: 18px 24px;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(230, 0, 92, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(230, 0, 92, 0.45);
}

.glow-btn:active {
    transform: translateY(1px);
}

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

/* Secondary / Outline btn */
.outline-btn {
    background: transparent;
    border: 2px solid var(--rose);
    color: var(--plum);
    border-radius: 999px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.outline-btn:hover {
    background: var(--blush);
}

/* --- LIVE COUNTER --- */
.live-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--magenta-glow);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 0, 92, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(230, 0, 92, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 0, 92, 0); }
}

.live-counter p {
    font-size: 0.9rem;
    color: var(--plum);
}

/* --- COMPLIANCE FOOTNOTE --- */
.compliance-footnote {
    font-size: 0.7rem;
    color: rgba(110, 37, 70, 0.5);
    text-align: center;
    line-height: 1.5;
    margin-top: auto;
}

/* --- ERROR MESSAGE --- */
.error-message {
    background: rgba(230, 0, 92, 0.1);
    color: var(--magenta-glow);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    border: 1px solid rgba(230, 0, 92, 0.2);
}

/* --- SPINNER --- */
.spinner {
    animation: rotate 2s linear infinite;
    width: 24px;
    height: 24px;
}
.spinner .path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* --- SUCCESS VIEW --- */
.success-hero {
    background: var(--blush);
    padding: 60px 24px 40px;
    text-align: center;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    margin-bottom: 24px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

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

/* Powered by container styling to ensure nice centering at very bottom */
#wbx-powered-by-slot {
    margin-top: auto; /* Pushes to bottom */
    padding: 24px 0;
    width: 100%;
}
