/* CSS Variables & Reset */
:root {
    --primary: #FF5E8E;      /* Strawberry Pink */
    --primary-dark: #E04A77;
    --secondary: #00C9B1;    /* Mint Green */
    --accent: #FFD166;       /* Banana Yellow */
    --text-main: #2D3142;
    --text-light: #6C7289;
    --bg-page: #FFF5F7;      /* Very light pink */
    --white: #FFFFFF;
    --error: #FF4A4A;
    --shadow-sm: 0 4px 6px rgba(255, 94, 142, 0.1);
    --shadow-md: 0 10px 25px rgba(255, 94, 142, 0.15);
    --shadow-lg: 0 20px 40px rgba(255, 94, 142, 0.2);
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, .badge, .btn-primary {
    font-family: 'Chewy', system-ui, cursive;
    letter-spacing: 0.02em;
}

.hidden {
    display: none !important;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

h1 span {
    color: var(--accent);
    display: inline-block;
    transform: rotate(-2deg);
}

h2 {
    font-size: 2rem;
    color: var(--primary);
}

h3 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Status Banner */
.status-banner {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 15px;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 20px 120px;
    background-size: cover;
    background-position: center;
    text-align: center;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    max-width: 650px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.badge {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 8px 24px;
    border-radius: 999px;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 201, 177, 0.3);
    transform: rotate(2deg);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(1px);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-divider .shape-fill {
    fill: var(--bg-page);
}

/* Main Container & Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 80px;
    flex-grow: 1;
    position: relative;
    z-index: 10;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: -40px;
}

@media (min-width: 900px) {
    .layout-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: start;
    }
}

/* Info Column & Cards */
.info-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    border-top: 5px solid var(--secondary);
}

.info-card:hover {
    transform: translateY(-5px);
}

.highlight-card {
    border-top: 5px solid var(--accent);
    background: linear-gradient(to bottom right, var(--white), #FFFDF5);
}

.icon-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.emoji {
    font-size: 1.8rem;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.info-card li::before {
    content: "🍦";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.1rem;
}

/* Form Styling */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.5);
}

.form-subtitle {
    color: var(--text-light);
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

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

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #F8FAFC;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 94, 142, 0.1);
}

input::placeholder {
    color: #CBD5E1;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), #FF3B73);
    color: var(--white);
    border: none;
    border-radius: 999px;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(255, 94, 142, 0.3);
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 25px rgba(255, 94, 142, 0.4);
}

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

/* Alerts */
.alert {
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.95rem;
}

.alert.error {
    background-color: #FEF2F2;
    color: var(--error);
    border: 1px solid #FECACA;
}

/* Thank You State */
.text-center {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite ease-in-out;
}

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

.sub-text {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 10px;
}

/* Share Panel */
.share-panel {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px dashed #E2E8F0;
}

.share-panel h4 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.share-input-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.share-input-group input {
    background-color: var(--white);
    border-color: var(--secondary);
}

.btn-secondary {
    padding: 0 24px;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background-color: #00A894;
}

/* Footer & Modal */
footer {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--white);
    border-top: 1px solid #E2E8F0;
    margin-top: auto;
}

.footer-links {
    margin-bottom: 20px;
}

.link-btn {
    background: none;
    border: none;
    color: var(--text-light);
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}

.link-btn:hover {
    color: var(--primary);
}

#wbx-powered-by-slot {
    display: flex;
    justify-content: center;
    width: 100%;
}

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

.modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    animation: modalFadeIn 0.3s ease;
}

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

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 2rem;
}

.close-btn {
    background: #F1F5F9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
}

.close-btn:hover {
    background: #E2E8F0;
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.rules-text {
    font-size: 0.95rem;
    color: var(--text-main);
    white-space: pre-wrap;
    line-height: 1.7;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h3 { font-size: 2rem; }
    .hero { padding: 60px 20px 80px; }
    .glass-card { padding: 24px; }
}