:root {
    --heineken-green: #0a8a3e;
    --heineken-green-dark: #06642c;
    --heineken-green-deep: #04431d;
    --heineken-red: #d5001c;
    --off-white: #f6f8f5;
    --ink: #0f1a12;
    --muted: #5b6b60;
    --card-bg: #ffffff;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background: radial-gradient(circle at top left, var(--heineken-green) 0%, var(--heineken-green-dark) 45%, var(--heineken-green-deep) 100%);
    color: var(--ink);
    min-height: 100vh;
}

.page-shell {
    max-width: 560px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 20px 40px;
}

.brand-header {
    margin-bottom: 0; /* remove/reduce if currently large */
    padding-bottom: 8px;
}


.brand-logo {
    height: 72px; /* increase from 40px \u2014 adjust further to taste */
    width: auto;
    display: block;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.5px;
}

.brand-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--heineken-red);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.35);
}

.brand-tagline {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.85;
}

.content-panel {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 32px 28px 36px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    flex: 1;
}

.brand-footer {
    text-align: center;
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    padding-top: 24px;
}

h1.step-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 26px;
    margin: 0 0 8px;
    color: var(--heineken-green-deep);
}

p.step-subtitle {
    color: var(--muted);
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.5;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--ink);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #dde5dd;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.15s ease;
}

.field input:focus {
    outline: none;
    border-color: var(--heineken-green);
}

.consent-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 22px;
    border: 1px solid #e2ebe0;
}

.consent-box input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    accent-color: var(--heineken-green);
    flex-shrink: 0;
}

.consent-box label {
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--ink);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
    background: var(--heineken-green);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(10,138,62,0.35);
}

.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
    background: transparent;
    color: var(--heineken-green-dark);
    border: 1.5px solid var(--heineken-green);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fdecec;
    color: #9c1c1c;
    border: 1px solid #f4c6c6;
}

.alert ul { margin: 0; padding-left: 18px; }

.reference-thumb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--off-white);
    border: 1px solid #e2ebe0;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 18px;
}

.reference-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dde5dd;
}

.reference-thumb-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.camera-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    aspect-ratio: 4 / 3;
    margin-bottom: 18px;
}

.camera-frame video,
.camera-frame canvas,
.camera-frame img.captured-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.camera-frame canvas.overlay {
    position: absolute;
    top: 0;
    left: 0;
}

.status-line {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    min-height: 20px;
}

.status-line.state-loading { color: var(--muted); }
.status-line.state-good { color: var(--heineken-green-dark); }
.status-line.state-bad { color: var(--heineken-red); }

.coupon-card {
    text-align: center;
    padding: 28px 20px;
}

.coupon-card .success-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--heineken-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 18px;
}

.coupon-code-box {
    border: 2px dashed var(--heineken-green);
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--heineken-green-deep);
    background: var(--off-white);
    margin: 18px 0;
}

.hint-text {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-top: 10px;
}

.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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