/* ============================================================
   Message Form Plugin - Styles front-end
   Theme: Livre d'or original
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

.mfp-wrapper {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Titre */
.mfp-title {
    text-align: center;
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: #333;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

/* Container */
.mfp-form-container {
    padding: 20px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    animation: mfpFadeIn 0.5s ease-in-out;
}

@keyframes mfpFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Notification slide-down */
.mfp-response {
    position: fixed;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,.2);
    z-index: 9999;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    border: none;
    display: none;
}

.mfp-response.mfp-response--success {
    background-color: #28a745;
    top: 50px;
}

.mfp-response.mfp-response--error {
    background-color: #e74c3c;
    top: 50px;
}

/* Notices */
.mfp-notice {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: .9rem;
}
.mfp-notice.mfp-error   { background: #fde8e8; color: #dc3545; }
.mfp-notice.mfp-warning { background: #fff3cd; color: #856404; }

/* Champs */
.mfp-field {
    margin-bottom: 0;
}

/* Labels */
.mfp-label {
    display: block;
    font-weight: bold;
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

.mfp-required {
    color: #dc3545;
    margin-left: 2px;
}

/* Inputs, textarea, select */
.mfp-input,
.mfp-textarea,
.mfp-select {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    color: #1A428E95;
    background: #fff;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.mfp-input:focus,
.mfp-textarea:focus,
.mfp-select:focus {
    border-color: rgba(26,66,142,0.58);
    box-shadow: none;
}

.mfp-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Select wrapper */
.mfp-select-wrapper {
    position: relative;
}
.mfp-select-arrow {
    display: none;
}

/* Photo participant */
#mfp-photo-participant {
    display: block;
    margin: 10px auto 20px auto;
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    transition: opacity 0.5s ease;
}

/* Compteur caracteres */
.mfp-char-count {
    text-align: right;
    font-size: .75rem;
    color: #888;
    margin-top: -12px;
    margin-bottom: 15px;
}

/* Honeypot */
.mfp-honeypot {
    opacity: 0;
    position: absolute;
    top: 0; left: 0;
    height: 0; width: 0;
    z-index: -1;
    overflow: hidden;
}

/* Bouton */
.mfp-field--submit {
    margin-top: 5px;
    margin-bottom: 0;
}

.mfp-btn {
    display: block;
    width: 100%;
    text-align: center;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #1A428E95;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 10px;
    box-shadow: none;
}

.mfp-btn:hover {
    background-color: #45a049;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

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

.mfp-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

.mfp-btn-text,
.mfp-btn-icon { display: inline; }

/* Spinner */
.mfp-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mfp-spin .7s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}

@keyframes mfp-spin {
    to { transform: rotate(360deg); }
}

/* Notice reCAPTCHA */
.mfp-recaptcha-notice {
    font-size: .72rem;
    color: #888;
    margin-top: -10px;
    margin-bottom: 15px;
    text-align: center;
}
.mfp-recaptcha-notice a { color: #888; text-decoration: underline; }

/* Responsive */
@media (max-width: 600px) {
    .mfp-wrapper { margin: 20px auto; padding: 0 10px; }
    #mfp-photo-participant { width: 150px; height: 150px; }
}
