/* --- CONTENITORE PRINCIPALE --- */
.registration-container {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    background-color: #f4f7f9; /* Grigio chiarissimo per far risaltare la card */
}

.registration-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 650px;
    border: 1px solid #eee;
}

.registration-card h1 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-align: center;
}

.registration-card .subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* --- GRIGLIA FORM --- */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row input, 
.registration-card input[type="email"], 
.registration-card input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-row input:focus, 
.registration-card input:focus {
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.input-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: bold;
    color: #888;
    margin-bottom: 5px;
    margin-left: 5px;
    text-transform: uppercase;
}

.form-section-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    margin: 25px 0 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #f0f0f0;
}

/* --- PULSANTI --- */
.btn-register {
    width: 100%;
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.btn-register:hover {
    background: #000;
    transform: translateY(-2px);
}

.btn-register:active {
    transform: translateY(0);
}

/* --- PRIVACY DROP-DOWN BAR --- */
.privacy-dropbar {
    position: fixed;
    top: -600px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #000;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: top 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.privacy-dropbar.active {
    top: 0;
}

.dropbar-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 25px;
    text-align: center;
}

.dropbar-text h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.dropbar-text p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 25px;
}

.privacy-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-privacy {
    padding: 12px 24px;
    border-radius: 30px;
    border: 1.5px solid #000;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-all { background: #000; color: #fff; }
.btn-essential { background: #fff; color: #000; }
.btn-decline { background: transparent; color: #777; border-color: #ddd; }

.btn-all:hover { background: #333; border-color: #333; }
.btn-essential:hover { background: #f8f8f8; }
.btn-decline:hover { color: #000; border-color: #bbb; }

/* --- ERRORI E FOOTER --- */
#privacy-error {
    color: #d63031;
    font-size: 0.85rem;
    margin-top: 15px;
    display: none;
    background: #fff5f5;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #feb2b2;
}

.footer-text {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
    .registration-card { padding: 25px; }
    .privacy-dropbar { padding: 30px 0; }
}