/* ===== Landing voucher EssilorLuxottica — layout minimale di esempio =====
   Palette monocromatica dell'identita' corporate (stessa del branding dashboard):
   nero #111111, grigio #B3B3B3, grigio chiaro #E1E1E1, bianco #FFFFFF.
   Da sostituire/estendere con l'impostazione grafica fornita dal cliente. */

:root {
    --clr-text: #111111;
    --clr-muted: #6b6b6b;
    --clr-line: #e1e1e1;
    --clr-bg: #ffffff;
    --clr-bg-alt: #f5f5f5;
    --clr-error: #b00020;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    color: var(--clr-text);
    background: var(--clr-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

::selection {
    background: #111111;
    color: #ffffff;
}

a {
    color: inherit;
}

/* Header: solo logo */
.vc-header {
    padding: 28px 24px;
    border-bottom: 1px solid var(--clr-line);
    text-align: center;
}

.vc-logo {
    height: 28px;
    width: auto;
    display: inline-block;
}

/* Main */
.vc-main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.vc-hero {
    text-align: center;
    margin-bottom: 40px;
}

.vc-occhiello {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clr-muted);
    margin: 0 0 12px;
}

.vc-titolo {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 16px;
    font-weight: 700;
}

.vc-intro {
    font-size: 1.05rem;
    color: var(--clr-muted);
    margin: 0;
}

/* Box del form / degli stati */
.vc-box {
    background: var(--clr-bg-alt);
    border: 1px solid var(--clr-line);
    padding: 32px;
}

.vc-box-titolo {
    font-size: 1.25rem;
    margin: 0 0 20px;
    font-weight: 700;
}

.vc-box-404 {
    text-align: center;
}

/* Form */
.vc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.vc-field {
    margin-bottom: 16px;
}

.vc-field label {
    display: block;
    font-size: 0.85rem;
    color: var(--clr-muted);
    margin-bottom: 6px;
}

.vc-field input {
    width: 100%;
    font: inherit;
    padding: 12px 14px;
    border: 1px solid var(--clr-line);
    background: #ffffff;
    border-radius: 0;
    outline: none;
}

.vc-field input:focus {
    border-color: var(--clr-text);
}

.vc-field input.is-invalid {
    border-color: var(--clr-error);
}

.vc-check {
    margin: 4px 0 12px;
    font-size: 0.9rem;
}

.vc-check label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
}

.vc-check input {
    margin-top: 5px;
    flex: 0 0 auto;
}

.vc-obbligatori {
    font-size: 0.8rem;
    color: var(--clr-muted);
    margin: 0 0 20px;
}

/* Honeypot: fuori schermo, non display:none (alcuni bot lo rispettano) */
.vc-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    overflow: hidden;
}

.vc-btn {
    display: inline-block;
    font: inherit;
    font-weight: 600;
    background: var(--clr-text);
    color: #ffffff;
    border: 1px solid var(--clr-text);
    padding: 14px 32px;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: opacity 0.2s ease;
}

.vc-btn:hover {
    opacity: 0.85;
}

.vc-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.vc-errore {
    background: #ffffff;
    border-left: 4px solid var(--clr-error);
    color: var(--clr-error);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Conferma */
.vc-codice {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: var(--clr-text);
    color: #ffffff;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    word-break: break-all;
}

.vc-nota {
    font-size: 0.9rem;
    color: var(--clr-muted);
    margin: 0;
}

/* Footer */
.vc-footer {
    border-top: 1px solid var(--clr-line);
    padding: 20px 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--clr-muted);
}

.vc-footer p {
    margin: 0;
}

.vc-footer .vc-footer-link {
    margin-top: 8px;
}

.vc-footer-link a {
    color: var(--clr-muted);
    text-decoration: underline;
}

.vc-footer-sep {
    margin: 0 8px;
}

@media (max-width: 640px) {
    .vc-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .vc-box {
        padding: 24px 18px;
    }

    .vc-titolo {
        font-size: 1.6rem;
    }

    .vc-codice {
        font-size: 1.5rem;
    }
}
