/* Riprende l'estetica del form di Gennaio: sfondo verde pieno, card bianca semplice, font Caveat. */
:root {
    --accent: #2a9b8e;
    --ink: #333;
    --paper: #ffffff;
    --muted: #4a4a4a;
    --border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;700&display=swap');

body {
    font-family: 'Caveat', cursive;
    color: #333;
}

.surprise-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #2a9b8e 0%, #1f7a6e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.surprise-body .not-found-container {
    margin-top: 0;
}

.registration-body {
    min-height: 100vh;
    background-color: var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    color: var(--ink);
}

/* Header Navigation */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.header.scrolled {
    background-color: #4b4b4b;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background-image: url('../../images/hero.webp');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 40px;
}

.hero-subtitle {
    font-size: 24px;
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0.95;
    font-weight: 500;
    font-family: 'Caveat', cursive;
}

.hero-title {
    font-size: 64px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    font-family: 'Caveat', cursive;
}

.heart {
    display: inline-block;
    margin: 0 10px;
    font-size: 56px;
}

.registration-shell {
    width: min(840px, 100%);
    display: flex;
    justify-content: center;
    margin: 60px 20px;
}

.registration-card {
    background: var(--paper);
    border-radius: 6px;
    padding: 56px 48px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

/* Hero integration for registration page */
.registration-body .hero {
    width: 100%;
    height: 50vh;
    min-height: 400px;
}

.registration-body .hero::before {
    background: rgba(0, 0, 0, 0.35);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.eyebrow {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 8px;
}

.card-header h1 {
    font-size: 42px;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 500;
    font-style: italic;
}

.lede {
    font-size: 20px;
    line-height: 1.6;
    color: var(--muted);
    font-weight: 500;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.column-card {
    background: #fafafa;
    border: 2px solid var(--border);
    border-radius: 6px;
    padding: 18px 18px 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.column-title {
    font-size: 18px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 16px;
    color: var(--muted);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 4px;
    border: 2px solid var(--border);
    background: #fafafa;
    font-size: 18px;
    font-family: 'Caveat', cursive;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #9b9b9b;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(42, 155, 142, 0.2);
    background: #fff;
}

.consent-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 17px;
    color: var(--muted);
    line-height: 1.5;
}

.consent-line input {
    margin-top: 4px;
    accent-color: var(--accent);
}

.primary-btn {
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 16px 40px;
    font-size: 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Caveat', cursive;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    width: 100%;
}

.primary-btn:hover:not(:disabled) {
    background-color: #258075;
    transform: scale(1.01);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.primary-btn:active:not(:disabled) {
    transform: scale(0.99);
}

.primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* CSS inline from anothersurprise.html */
.not-found-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
}

.not-found-message {
    font-family: 'Caveat', cursive;
    font-size: 36px;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 500;
}

.home-btn {
    background-color: #2a9b8e;
    color: #fff;
    border: none;
    padding: 15px 80px;
    font-size: 18px;
    font-family: 'Caveat', cursive;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.home-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.device-warning {
    margin-top: 20px;
    font-family: 'Caveat', cursive;
    font-size: 20px;
    color: #b54646;
    display: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999;
}

.modal {
    background: #fff;
    border-radius: 10px;
    max-width: 420px;
    width: 100%;
    padding: 24px 22px 26px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    text-align: center;
}

.modal-title {
    font-family: 'Caveat', cursive;
    font-size: 26px;
    margin: 0 0 10px;
    color: #ff0000;
}

.modal-text {
    font-family: 'Caveat', cursive;
    font-size: 20px;
    margin: 0;
    color: #ff0000;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
}

.modal-overlay.is-open {
    display: flex;
}

/* Responsive Design */
@media (max-width: 720px) {
    .registration-card {
        padding: 40px 28px;
    }

    .card-header h1 {
        font-size: 32px;
    }

    .lede {
        font-size: 18px;
    }

    .primary-btn {
        font-size: 18px;
        padding: 14px 28px;
    }

    /* Header responsive: stack links, keep contrast */
    .registration-body .header {
        flex-direction: column;
        gap: 12px;
        padding: 14px 18px;
    }

    .registration-body .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .heart {
        font-size: 36px;
        margin: 0 8px;
    }

    .not-found-container {
        padding: 40px 30px;
    }

    .not-found-message {
        font-size: 28px;
    }

    .home-btn {
        padding: 12px 60px;
    }
}

@media (max-width: 480px) {
    .registration-shell {
        margin: 40px 14px;
    }

    .registration-card {
        padding: 32px 22px;
    }

    .card-header h1 {
        font-size: 28px;
    }

    .lede {
        font-size: 16px;
    }

    .form-group input {
        font-size: 17px;
        padding: 12px 14px;
    }

    .header {
        padding: 10px 15px;
    }

    .logo {
        font-size: 14px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .not-found-container {
        padding: 30px 20px;
    }

    .not-found-message {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .home-btn {
        padding: 12px 40px;
        font-size: 16px;
    }

    .device-warning {
        font-size: 16px;
    }
}
