/* ════════════════════════════════════════════════
   MIREB QUICK ORDER FORM — Styles
   ════════════════════════════════════════════════ */

/* ── Bouton déclencheur ─────────────────────────── */
.mqof-trigger-wrap {
    margin: 16px 0 8px;
}

/* ════════════════════════════════════════════════
   BOUTON COMMANDER RAPIDEMENT — Animé
   ════════════════════════════════════════════════ */

@keyframes mqof-pulse-ring {
    0%   { transform: scale(1);   box-shadow: 0 0 0 0   rgba(124,58,237,0.7); }
    50%  { transform: scale(1.02);box-shadow: 0 0 0 14px rgba(124,58,237,0);  }
    100% { transform: scale(1);   box-shadow: 0 0 0 0   rgba(124,58,237,0);  }
}

@keyframes mqof-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

@keyframes mqof-glow {
    0%, 100% { box-shadow: 0 4px 20px rgba(124,58,237,0.4), 0 0 30px rgba(236,72,153,0.2); }
    50%       { box-shadow: 0 8px 35px rgba(124,58,237,0.7), 0 0 50px rgba(236,72,153,0.4); }
}

.mqof-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #7c3aed 100%);
    background-size: 200% auto;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    width: 100%;
    position: relative;
    overflow: hidden;

    /* Animations combinées */
    animation:
        mqof-pulse-ring 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite,
        mqof-shimmer    3s linear infinite,
        mqof-glow       2.5s ease-in-out infinite;

    transition: transform 0.2s ease, filter 0.2s ease;
}

/* Effet brillant qui passe */
.mqof-trigger-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: rgba(255,255,255,0.15);
    transform: skewX(-20deg);
    animation: mqof-shine 3s infinite;
}

@keyframes mqof-shine {
    0%   { left: -75%; }
    40%  { left: 125%; }
    100% { left: 125%; }
}

.mqof-trigger-btn:hover {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.1);
    animation-play-state: paused;
    box-shadow: 0 12px 40px rgba(124,58,237,0.6), 0 0 60px rgba(236,72,153,0.3);
}

.mqof-trigger-btn.active {
    background: linear-gradient(135deg, #374151, #1f2937);
    background-size: auto;
    animation: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Icône — légère rotation au hover */
.mqof-trigger-btn svg {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.5));
}
.mqof-trigger-btn:hover svg {
    transform: scale(1.2) rotate(-5deg);
}

.mqof-arrow {
    font-size: 12px;
    transition: transform 0.3s;
    margin-left: auto;
}

.mqof-trigger-btn.active .mqof-arrow {
    transform: rotate(180deg);
}

/* ── Conteneur formulaire ───────────────────────── */
.mqof-form-container {
    margin: 0 0 24px;
    border: 2px solid #ede9fe;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(124,58,237,0.10);
    animation: mqofSlideDown 0.35s ease;
}

@keyframes mqofSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mqof-form {
    background: #fff;
    padding: 28px;
}

/* ── Header ─────────────────────────────────────── */
.mqof-form-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ede9fe;
}

.mqof-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 6px;
}

.mqof-title svg {
    color: #7c3aed;
    flex-shrink: 0;
}

.mqof-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* ── Grille de champs ───────────────────────────── */
.mqof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .mqof-grid {
        grid-template-columns: 1fr;
    }
    .mqof-form {
        padding: 18px;
    }
}

.mqof-field--full {
    grid-column: 1 / -1;
}

/* ── Labels & Inputs ────────────────────────────── */
.mqof-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.mqof-field .req {
    color: #ef4444;
}

.mqof-field input[type="text"],
.mqof-field input[type="tel"],
.mqof-field input[type="number"],
.mqof-field input[type="email"],
.mqof-field select,
.mqof-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    color: #1f2937;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.mqof-field input:focus,
.mqof-field select:focus,
.mqof-field textarea:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
    background: #fff;
}

.mqof-field input.mqof-error,
.mqof-field select.mqof-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

/* ── Téléphone avec icône ───────────────────────── */
.mqof-phone-wrap {
    position: relative;
}

.mqof-phone-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7c3aed;
    display: flex;
    align-items: center;
}

.mqof-phone-wrap input {
    padding-left: 40px !important;
}

/* ── Quantité ───────────────────────────────────── */
.mqof-qty-wrap {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fafafa;
}

.mqof-qty-btn {
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    color: #7c3aed;
    transition: background 0.2s;
    flex-shrink: 0;
}

.mqof-qty-btn:hover {
    background: #ede9fe;
}

.mqof-qty-wrap input[type="number"] {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: none !important;
    background: transparent !important;
    -moz-appearance: textfield;
}

.mqof-qty-wrap input::-webkit-inner-spin-button,
.mqof-qty-wrap input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* ── Total ──────────────────────────────────────── */
.mqof-total-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.mqof-total {
    font-size: 26px;
    font-weight: 900;
    color: #7c3aed;
    padding: 8px 0;
}

.mqof-total .woocommerce-Price-currencySymbol {
    font-size: 18px;
}

/* ── Textarea ───────────────────────────────────── */
.mqof-field textarea {
    resize: vertical;
    min-height: 72px;
}

/* ── Footer & Submit ────────────────────────────── */
.mqof-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mqof-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(5,150,105,0.30);
}

.mqof-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(5,150,105,0.40);
    background: linear-gradient(135deg, #047857, #065f46);
}

.mqof-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

@keyframes mqof-spin {
    to { transform: rotate(360deg); }
}
.mqof-spin {
    animation: mqof-spin 0.9s linear infinite;
}

.mqof-privacy {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* ── Message réponse ────────────────────────────── */
.mqof-response {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.mqof-response.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.mqof-response.error {
    background: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fca5a5;
}
