/* ============================================================
   WC Contact Form — Styles du formulaire (frontend)
   ============================================================ */

/* ── Wrapper ──────────────────────────────────────────────── */
.wccf-wrapper {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
}

/* ── Titre ────────────────────────────────────────────────── */
.wccf-title {
    margin: 0 0 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* ── Description ──────────────────────────────────────────── */
.wccf-description {
    margin: -.5rem 0 1.25rem;
    font-size: .875rem;
    color: #666;
    line-height: 1.5;
}

/* ── Champs ───────────────────────────────────────────────── */
.wccf-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    width: 100%;
}

.wccf-field label {
    margin-bottom: .35rem;
    font-size: .875rem;
    font-weight: 500;
    color: #333;
}

.wccf-required {
    color: #e00;
    margin-left: 2px;
}

.wccf-input {
    padding: .6rem .85rem;
    border: 1.5px solid #ccc;
    border-radius: 5px;
    font-size: .95rem;
    color: #1a1a1a;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.wccf-input:focus {
    border-color: #96588a; /* WooCommerce purple */
    box-shadow: 0 0 0 3px rgba(150, 88, 138, .15);
}

.wccf-input.wccf-input--error {
    border-color: #cc1818;
    box-shadow: 0 0 0 3px rgba(204, 24, 24, .1);
}

.wccf-input.wccf-input--valid {
    border-color: #2b9e2b;
}

/* ── Messages d'erreur inline ─────────────────────────────── */
.wccf-error {
    display: block;
    margin-top: .3rem;
    font-size: .8rem;
    color: #cc1818;
    min-height: 1.1em;
}

/* ── Honeypot (invisible) ─────────────────────────────────── */
.wccf-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
    tab-index: -1;
}

/* ── Bouton ───────────────────────────────────────────────── */
.wccf-submit-wrap {
    margin-top: 1.25rem;
    width: 100%;
}

.wccf-btn--submit {
    display: block;
    width: 100%;
    padding: .75rem 1.6rem;
    background: #96588a;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    text-align: center;
    box-sizing: border-box;
}

.wccf-btn--submit:hover:not(:disabled) {
    background: #7b4574;
}

.wccf-btn--submit:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* ── Erreur serveur ───────────────────────────────────────── */
.wccf-server-error {
    margin-top: .8rem;
    padding: .7rem 1rem;
    background: #fce4e4;
    border: 1px solid #f5c2c2;
    border-radius: 5px;
    color: #900;
    font-size: .875rem;
}

/* ── Message de remerciement ──────────────────────────────── */
.wccf-thank-you {
    text-align: center;
    padding: 2rem 1rem;
}

.wccf-thank-you__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: #2b9e2b;
    color: #fff;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    animation: wccf-pop .4s ease;
}

@keyframes wccf-pop {
    0%   { transform: scale(.5); opacity: 0; }
    80%  { transform: scale(1.1); }
    100% { transform: scale(1);   opacity: 1; }
}

.wccf-thank-you__title {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: .5rem;
}

.wccf-thank-you__msg {
    font-size: .95rem;
    color: #555;
    margin: 0;
}
