/* assets/css/kas-popup.css */

.kas-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.kas-popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    width: 90%;
    max-width: 450px;
    text-align: center;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translate(-50%, -60%);
}

.kas-popup-overlay.kas-popup-visible,
.kas-popup-container.kas-popup-visible {
    display: block;
    opacity: 1;
}

.kas-popup-container.kas-popup-visible {
     transform: translate(-50%, -50%);
}

.kas-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.kas-popup-close:hover {
    color: #333;
}

.kas-popup-container h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 22px;
}

.kas-popup-container p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.kas-popup-form .kas-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 15px;
    box-sizing: border-box; /* Important */
    font-size: 16px;
}

.kas-popup-form .kas-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: #018f01;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.kas-popup-form .kas-button:hover {
    background-color: #ff7700;
}

.kas-popup-message {
    padding: 15px;
    margin-top: 15px;
    border-radius: 6px;
    display: none;
}
.kas-popup-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}
.kas-popup-message.error {
    background-color: #ffebee;
    color: #c62828;
}

/* Modification du bouton pour utiliser le vert WhatsApp */
.kas-popup-form .kas-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    background-color: #25D366; /* Vert WhatsApp */
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kas-popup-form .kas-button:hover {
    background-color: #1ebe57; /* Vert plus foncé au survol */
}

.kas-popup-form .kas-button:active {
    transform: scale(0.98);
}

/* NOUVEAU : Design de la ligne Indicatif + Numéro */
.kas-phone-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.kas-popup-form .kas-select {
    width: 35%;
    padding: 12px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background-color: #f8f9fa;
    cursor: pointer;
    outline: none;
}

.kas-popup-form .kas-select:focus {
    border-color: #25D366;
}

.kas-popup-form .kas-input {
    width: 65%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    margin-bottom: 0; /* Écrase la marge par défaut car on gère avec le parent */
    outline: none;
}

.kas-popup-form .kas-input:focus {
    border-color: #25D366;
    box-shadow: 0 0 5px rgba(37, 211, 102, 0.3);
}