:root {
    --primary: #022E57;
    --white: #ffffff;
    --light: #f1f5f9;
}

body {
    margin: 0;
    background: var(--light);
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 450px;
    margin: auto;
    padding: 25px;
    background: var(--white);
    margin-top: 40px;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 25px;
}

label {
    font-weight: 600;
    color: var(--primary);
    margin-top: 15px;
    display: block;
}

input, select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    margin-top: 5px;
    font-size: 16px;
}

.btn {
    width: 100%;
    padding: 14px;
    margin-top: 25px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    opacity: 0.85;
}

/* Persone Grid */
.persone-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.persone-btn {
    padding: 12px;
    background: #e2e8f0;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
}

.persone-btn.selected {
    background: var(--primary);
    color: white;
}

/* Overlay success */
#successOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-out forwards;
}

.successBox {
    background: white;
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    width: 320px;
    animation: popIn 0.4s ease-out forwards;
}

@keyframes popIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
