/* Promo Strada Nuova Capodanno Styles */

/* Countdown Banner */
.countdown-banner {
    background: #f24b3f;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 1.125rem;
    box-shadow: 0 4px 12px rgba(242, 75, 63, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

/* Registrations Closed */
.registrations-closed {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.closed-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.closed-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.closed-message {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .registrations-closed {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .closed-title {
        font-size: 1.5rem;
    }

    .closed-message {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .registrations-closed {
        padding: 1rem;
        margin: 1rem auto;
    }

    .closed-title {
        font-size: 1.25rem;
    }

    .closed-message {
        font-size: 0.9375rem;
    }
}

.countdown-text {
    display: block;
    white-space: nowrap;
}

#countdown-time {
    font-weight: 700;
    font-size: 1.25rem;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(242, 75, 63, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 16px rgba(242, 75, 63, 0.4);
    }
}

@media (max-width: 768px) {
    .countdown-banner {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    #countdown-time {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .countdown-banner {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }
    
    .countdown-text {
        white-space: normal;
    }
    
    #countdown-time {
        font-size: 1rem;
        display: block;
        margin-top: 0.25rem;
    }
}

.form-row {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

/* Ensure form inputs in rows have consistent width */
.form-row .form-input {
    width: 100%;
}

.form-group-half {
    flex: 1;
    min-width: 0;
}

.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-checkbox {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

.privacy-link {
    color: var(--primary-blue);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.privacy-link:hover {
    color: var(--primary-blue);
    opacity: 0.8;
}

/* Success Section */
.success-section {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.success-message {
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.success-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.referral-link-container {
    width: 100%;
    margin-top: 1rem;
}

.referral-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: left;
}

.referral-link-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.referral-link-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-primary);
    background: var(--gray-50);
    font-family: 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    white-space: nowrap;
    padding: 0.875rem 1.5rem;
}

.share-buttons {
    width: 100%;
    margin-top: 1rem;
}

.whatsapp-btn {
    width: 100%;
    max-width: 300px;
}

.points-info {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    width: 100%;
}

.points-text {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin: 0;
}

.points-text strong {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .form-group-half {
        width: 100%;
    }

    .success-section {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .success-title {
        font-size: 1.5rem;
    }

    .success-message {
        font-size: 1rem;
    }

    .success-subtitle {
        font-size: 0.875rem;
    }

    .referral-link-wrapper {
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
    }

    .whatsapp-btn {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .success-section {
        padding: 1rem;
        margin-top: 1rem;
    }

    .success-title {
        font-size: 1.25rem;
    }

    .success-message {
        font-size: 0.9375rem;
    }

    .success-subtitle {
        font-size: 0.8125rem;
    }

    .form-checkbox-label {
        font-size: 0.8125rem;
    }
}

