* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #003C71;
    --primary-dark: #002a52;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --error: #dc3545;
    --success: #28a745;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-light);
}

/* Banner */
.banner {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 0 24px;
}

.banner img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Page Header (pagine secondarie) */
.page-header {
    background: var(--primary-color);
    padding: 20px 24px;
    text-align: center;
}

.page-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.page-header h1 a {
    color: var(--white);
    text-decoration: none;
}

.page-header h1 a:hover {
    opacity: 0.9;
}

/* Main Content */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
}

.main-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
}

.description p {
    margin-bottom: 1.25rem;
}

.description p:last-child {
    margin-bottom: 0;
}

.highlight {
    font-weight: 600;
    color: var(--primary-color);
}

/* Benefits Section */
.benefits {
    margin-top: 40px;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.benefits h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.benefits ul {
    list-style: none;
    padding-left: 0;
}

.benefits li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
}

.benefits li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.benefits + .benefits {
    margin-top: 20px;
}

/* Form Section */
.form-section {
    max-width: 800px;
    margin: 30px auto 0;
    padding: 0 24px;
}

.form-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #005a9e 100%);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 60, 113, 0.3);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.form-container {
    max-width: 440px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.form-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.form-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 35px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--white);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-dark);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error);
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: var(--success);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.error-message {
    font-size: 0.85rem;
    color: #ff6b6b;
    margin-top: 6px;
    display: none;
}

.error-message.visible {
    display: block;
}

.donation-input-wrapper {
    position: relative;
}

.donation-input-wrapper input {
    padding-right: 40px;
}

.currency-symbol {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--text-light);
}

/* Friend info box */
.friend-info {
    background: var(--white);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-left: 4px solid var(--primary-color);
}

.friend-info h4 {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.friend-info p {
    color: var(--text-color);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Phone input group */
.phone-input-group {
    display: flex;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.phone-input-group:focus-within {
    border-color: var(--primary-dark);
}

.phone-input-group select {
    width: 130px;
    flex-shrink: 0;
    border: none;
    border-right: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 14px 12px;
    background: var(--bg-light);
}

.phone-input-group select:focus {
    outline: none;
}

.phone-input-group input {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 14px 16px;
}

.phone-input-group input:focus {
    outline: none;
}

/* Optional label */
.optional-label {
    font-weight: 400;
    opacity: 0.7;
    font-size: 0.8rem;
}

/* Extra fields container */
.extra-fields {
    display: none;
}

.extra-fields.visible {
    display: block;
}

/* Privacy checkbox */
.privacy-group {
    margin-top: 20px;
}

.privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--white);
    font-size: 0.85rem;
    cursor: pointer;
    line-height: 1.5;
}

.privacy-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.privacy-label a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.privacy-label a:hover {
    color: var(--white);
}

/* Indirizzo autocomplete */
.info-indirizzo {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
}

/* Google Maps PlaceAutocompleteElement — forza sfondo bianco */
#ac-wrap {
    width: 100%;
    color-scheme: light;
}

#ac-wrap gmp-place-autocomplete {
    width: 100% !important;
    display: block !important;
    background: #ffffff !important;
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    color-scheme: light !important;
}

#ac-wrap gmp-place-autocomplete:focus-within {
    border-color: var(--primary-dark) !important;
}

/* Submit button */
.submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--primary-color);
    background: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 16px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
footer {
    background: var(--white);
    padding: 40px 24px;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid #e0e0e0;
}

.footer-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.footer-info {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.footer-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-info a:hover {
    color: var(--primary-dark);
}

.footer-links {
    margin-top: 16px;
    font-size: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.footer-divider {
    width: 80px;
    height: 1px;
    background: #e0e0e0;
    margin: 25px auto;
}

/* Responsive */
@media (max-width: 600px) {
    .banner {
        margin-top: 20px;
        padding: 0 16px;
    }

    .main-content {
        padding: 40px 20px;
    }

    .benefits {
        padding: 20px;
    }

    .form-section {
        padding: 0 16px;
        margin-top: 40px;
    }

    .form-card {
        padding: 35px 24px;
        border-radius: 12px;
    }
}
