/**
 * Keap Forms - Matin Magique
 * Styles pour le formulaire d'abonnement et le popup
 */

/* =========================================
   SUBSCRIBE FORM - Shortcode [keap_subscribe]
   ========================================= */

.kfmm-subscribe-wrap {
    width: 100%;
}

.kfmm-subscribe-wrap h2{
    color:#fff!important;
}

.kfmm-subscribe-wrap h2 span{
    color:#fff6ac;
    display:inline!important;
}

.kfmm-subscribe-form {
    margin: 0;
    padding: 0;
    display:inline-block;
    margin:auto!important;
}

.kfmm-fields-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.kfmm-field input[type="text"],
.kfmm-field input[type="email"] {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.kfmm-field input[type="text"]::placeholder,
.kfmm-field input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.kfmm-field input[type="text"]:focus,
.kfmm-field input[type="email"]:focus {
    border-color: #fff;
}

/* Radio buttons */
.kfmm-field-radios {
    display: flex;
    align-items: center;
    gap: 16px;
}

.kfmm-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.kfmm-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.kfmm-radio input[type="radio"]:checked {
    border-color: #fff;
}

.kfmm-radio input[type="radio"]:checked::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

/* Submit button */
.kfmm-submit-btn {
    background: rgba(200, 180, 140, 0.7);
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-family: inherit;
    letter-spacing: 1px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
    text-transform: uppercase;
}

.kfmm-submit-btn:hover {
    background: rgba(200, 180, 140, 0.9);
}

/* Field sizing */
.kfmm-field {
    flex-shrink: 0;
}

.kfmm-field:first-child {
    flex: 0 0 180px;
}

.kfmm-field-email {
    flex: 0 0 250px;
}

.kfmm-field-submit {
    flex: 0 0 auto;
}

/* =========================================
   POPUP
   ========================================= */

.kfmm-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kfmm-popup-overlay.kfmm-visible {
    opacity: 1;
}

.kfmm-popup-container {
    background: linear-gradient(135deg, #4a7fb5 0%, #6ba3d6 100%);
    color: #fff;
    padding: 40px 36px 30px;
    border-radius: 4px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.kfmm-popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
}

.kfmm-popup-close:hover {
    opacity: 1;
}

.kfmm-popup-title {
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 10px;
    text-align: center;
    font-style: italic;
    color: #fff;
}

.kfmm-popup-desc {
    font-size: 14px;
    text-align: center;
    margin: 0 0 24px;
    opacity: 0.9;
    line-height: 1.5;
}

.kfmm-popup-fields {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.kfmm-popup-fields .kfmm-field {
    flex: 1;
}

.kfmm-popup-fields .kfmm-field input[type="text"],
.kfmm-popup-fields .kfmm-field input[type="email"] {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.kfmm-popup-fields .kfmm-field input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.kfmm-popup-submit {
    text-align: center;
}

.kfmm-popup-submit .kfmm-submit-btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    .kfmm-fields-row {
        flex-direction: column;
        align-items: stretch;
    }

    .kfmm-field:first-child,
    .kfmm-field-email {
        flex: 1 1 100%;
    }

    .kfmm-field-radios {
        justify-content: center;
    }

    .kfmm-field-submit {
        text-align: center;
    }

    .kfmm-submit-btn {
        width: 100%;
    }

    .kfmm-popup-fields {
        flex-direction: column;
    }

    .kfmm-popup-container {
        padding: 30px 24px 24px;
    }
}
