:root {
    --primary: #0A2F5C;
    --secondary: #00A3A1;
    --accent: #FDBA12;
    --bg: #F4F7FA;
    --text: #333333;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    background-image: url('https://offertabs.s3.amazonaws.com/offer/7diig9/site/media/6a94d83ba07567.98135687.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

.card-container {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 1px 3px rgba(255,255,255,0.2) inset;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin: 0 0 12px;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary) 0%, #11427d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: #555;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Utility */
.hidden {
    display: none !important;
}
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.text-muted { color: #64748b; font-size: 0.9rem; }

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}
.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E0E5EC;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
}
.form-group input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 163, 161, 0.15);
}

.terms-text {
    font-size: 0.85rem;
    color: #64748b;
    margin: -5px 0 20px 0;
    text-align: center;
    line-height: 1.5;
}
.terms-text a {
    color: var(--secondary);
    text-decoration: underline;
    font-weight: 600;
}
.terms-text a:hover {
    color: var(--primary);
}

.btn {
    display: block;
    text-align: center;
    text-decoration: none;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #11427d);
    color: white;
    box-shadow: 0 4px 15px rgba(10, 47, 92, 0.25);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 47, 92, 0.35);
}
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #94a3b8;
    box-shadow: none;
    transform: none;
}
.btn-secondary {
    background: var(--secondary);
    color: white;
    padding: 16px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 163, 161, 0.25);
}
.btn-secondary:hover {
    background: #008785;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 163, 161, 0.35);
}

.error-msg {
    background: #FEE2E2;
    color: #DC2626;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.95rem;
    text-align: center;
    border: 1px solid #FCA5A5;
}

/* Scratch Card */
.scratch-card-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.scratch-card {
    position: relative;
    width: 300px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1), inset 0 0 0 1px rgba(0,0,0,0.05);
}
.scratch-result {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    background: #fff;
}
.scratch-result h3 {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
}
.scratch-result p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary);
}
#scratch-canvas {
    position: absolute;
    top: 0; left: 0;
    z-index: 10;
    cursor: crosshair;
    touch-action: none; /* Required for mobile scratching */
}

/* Result Screen */
.result-box {
    text-align: center;
    padding: 10px 0;
}
.result-box h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-top: 0;
    font-family: 'Playfair Display', serif;
}
.highlight-text {
    color: var(--secondary);
}
#prize-image {
    max-width: 200px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
}
.ambassador-msg {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px dashed var(--secondary);
}

#wbx-powered-by-slot {
    margin-top: auto;
    padding-top: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
}