/* HuViVe Newsletter - Styles Frontend */

.huvive-newsletter-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* En-tête du formulaire */
.huvive-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.huvive-form-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.huvive-form-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
}

/* Corps du formulaire */
.huvive-form-body {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Groupes de formulaire */
.huvive-form-group {
    margin-bottom: 20px;
}

.huvive-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.huvive-form-group input[type="text"],
.huvive-form-group input[type="email"],
.huvive-form-group input[type="tel"],
.huvive-form-group input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.huvive-form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Ligne avec 2 colonnes */
.huvive-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.huvive-form-col-2 {
    flex: 1;
    margin-bottom: 0;
}

/* Type d'abonnement */
.huvive-subscription-type {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 25px;
}

.huvive-radio-label {
    display: block;
    padding: 10px 15px;
    margin-bottom: 10px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.huvive-radio-label:hover {
    border-color: #3498db;
}

.huvive-radio-label input[type="radio"] {
    margin-right: 10px;
}

.huvive-radio-label:has(input:checked) {
    border-color: #3498db;
    background: #e3f2fd;
}

.huvive-radio-label:last-child {
    margin-bottom: 0;
}

/* Cases à cocher */
.huvive-checkbox-group {
    margin-bottom: 15px;
}

.huvive-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

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

.huvive-checkbox-label span {
    flex: 1;
}

/* CAPTCHA */
.huvive-captcha-group label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.huvive-captcha-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.huvive-captcha-input-wrapper input {
    flex: 1;
    max-width: 150px;
}

.huvive-refresh-captcha {
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.huvive-refresh-captcha:hover {
    background: #3498db;
    color: #ffffff;
    border-color: #3498db;
}

/* Bouton de soumission */
.huvive-submit-btn {
    width: 100%;
    padding: 15px 20px;
    background: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.huvive-submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

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

.huvive-submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.huvive-form-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.huvive-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.huvive-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Texte de confidentialité */
.huvive-privacy-text {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.huvive-privacy-text p {
    font-size: 12px;
    color: #7f8c8d;
    margin: 5px 0;
    line-height: 1.5;
}

/* Style minimal */
.huvive-style-minimal .huvive-form-body {
    border: none;
    box-shadow: none;
    padding: 20px;
}

.huvive-style-minimal .huvive-form-title {
    font-size: 24px;
}

/* Style moderne */
.huvive-style-modern .huvive-form-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
}

.huvive-style-modern .huvive-form-group label {
    color: #ffffff;
}

.huvive-style-modern .huvive-form-title {
    color: #ffffff;
}

.huvive-style-modern .huvive-form-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.huvive-style-modern .huvive-submit-btn {
    background: #ffffff;
    color: #667eea;
}

.huvive-style-modern .huvive-submit-btn:hover {
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 600px) {
    .huvive-newsletter-form-wrapper {
        padding: 10px;
    }

    .huvive-form-body {
        padding: 20px;
    }

    .huvive-form-row {
        flex-direction: column;
        gap: 0;
    }

    .huvive-form-col-2 {
        margin-bottom: 20px;
    }

    .huvive-form-title {
        font-size: 22px;
    }
}
