/* ── WhatsApp Contact Tracker – Styles ── */
.wct-wrapper {
    max-width: 560px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Bouton WhatsApp ── */
.wct-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(37, 211, 102, .35);
}
.wct-whatsapp-btn:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
    color: #fff;
    text-decoration: none;
}
.wct-whatsapp-btn svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

/* ── Séparateur ── */
.wct-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: #999;
    font-size: .875rem;
}
.wct-separator::before,
.wct-separator::after {
    content: '';
    flex: 1;
    border-top: 1px solid #e0e0e0;
}
.wct-separator span {
    padding: 0 14px;
}

/* ── Formulaire ── */
.wct-form-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 20px;
    color: #333;
}

.wct-field {
    margin-bottom: 16px;
}
.wct-field label {
    display: block;
    font-size: .875rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
}
.wct-field label span {
    color: #e53935;
}
.wct-field input,
.wct-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 7px;
    font-size: .95rem;
    font-family: inherit;
    color: #222;
    background: #fafafa;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.wct-field input:focus,
.wct-field textarea:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, .15);
    background: #fff;
}
.wct-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* ── Bouton Envoyer ── */
.wct-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .15s;
    margin-top: 4px;
}
.wct-submit-btn:hover {
    background: #111;
    transform: translateY(-1px);
}
.wct-submit-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

/* Loader spinner */
.wct-btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wct-spin .6s linear infinite;
}
.wct-submit-btn.wct-loading .wct-btn-loader { display: inline-block; }
.wct-submit-btn.wct-loading .wct-btn-text   { opacity: .7; }

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

/* ── Modal overlay ── */
#wct-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
    backdrop-filter: blur(3px);
    animation: wct-fade-in .2s ease;
}
#wct-modal-overlay[hidden] { display: none; }

@keyframes wct-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.wct-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 28px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    animation: wct-slide-up .25s ease;
}

@keyframes wct-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.wct-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #aaa;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color .15s, background .15s;
}
.wct-modal-close:hover { color: #333; background: #f0f0f0; }

.wct-modal-icon {
    width: 52px;
    height: 52px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
}
.wct-modal-icon svg { width: 28px; height: 28px; }

.wct-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.wct-modal-desc {
    text-align: center;
    font-size: .9rem;
    color: #666;
    margin: 0 0 22px;
    line-height: 1.5;
}

.wct-modal-confirm {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
}

.wct-field-error {
    display: block;
    color: #c62828;
    font-size: .8rem;
    margin-top: 4px;
    min-height: 1em;
}

 */
.wct-form-feedback {
    margin-top: 14px;
    padding: 10px 16px;
    border-radius: 7px;
    font-size: .9rem;
    display: none;
}
.wct-form-feedback.wct-success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.wct-form-feedback.wct-error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* -- Bouton seul (shortcode [whatsapp_btn]) -- */
.wct-btn-wrapper {
    display: inline-flex;
}

/* Variante pill : bouton arrondi compact, ideal footer */
.wct-btn-pill .wct-whatsapp-btn {
    border-radius: 50px;
    padding: 12px 22px;
    font-size: .95rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, .4);
}

/* Variante square : bouton rectangulaire */
.wct-btn-square .wct-whatsapp-btn {
    border-radius: 6px;
    padding: 12px 22px;
}

/* Position fixe en bas a droite (optionnel via classe CSS du widget footer) */
.wct-btn-fixed {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}
.wct-btn-fixed .wct-whatsapp-btn {
    border-radius: 50px;
    padding: 14px 20px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, .5);
}
