/* MonresPro – Assistance Achat | Quote Form CSS v2 */

/* -------------------------------------------------------
   Container
------------------------------------------------------- */
.mrpaa-wrap {
    max-width: 820px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a2e;
}

/* -------------------------------------------------------
   Payment status banner (approve/cancel/decline redirect)
------------------------------------------------------- */
.mrpaa-payment-banner {
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* -------------------------------------------------------
   Step indicators
------------------------------------------------------- */
.mrpaa-steps-nav {
    display: flex;
    margin-bottom: 28px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.mrpaa-step-indicator {
    flex: 1;
    padding: 13px 6px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: #f0f4ff;
    color: #6b7280;
    border: none;
    transition: background .2s, color .2s;
}

.mrpaa-step-indicator.active {
    background: #2563eb;
    color: #fff;
}

.mrpaa-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,.12);
    font-size: 11px;
    margin-right: 5px;
    vertical-align: middle;
}

/* -------------------------------------------------------
   Steps
------------------------------------------------------- */
.mrpaa-step { display: none; }
.mrpaa-step.active { display: block; }

/* -------------------------------------------------------
   Cards
------------------------------------------------------- */
.mrpaa-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 26px 30px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.mrpaa-card h3 {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mrpaa-icon { font-size: 20px; }

/* -------------------------------------------------------
   Form elements
------------------------------------------------------- */
.mrpaa-field { margin-bottom: 14px; }

.mrpaa-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #374151;
}

.mrpaa-required { color: #ef4444; margin-left: 2px; }

.mrpaa-field input[type="text"],
.mrpaa-field input[type="email"],
.mrpaa-field input[type="tel"],
.mrpaa-field input[type="number"],
.mrpaa-field input[type="url"],
.mrpaa-field select,
.mrpaa-field textarea,
#mrpaa-currency-vis,
#mrpaa-country-vis {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 13px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #f9fafb;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}

.mrpaa-field input:focus,
.mrpaa-field select:focus,
.mrpaa-field textarea:focus,
#mrpaa-currency-vis:focus,
#mrpaa-country-vis:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
    background: #fff;
}

.mrpaa-field textarea { min-height: 80px; resize: vertical; }

.mrpaa-manual-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* -------------------------------------------------------
   Grids
------------------------------------------------------- */
.mrpaa-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.mrpaa-grid-3 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px 14px;
}

/* -------------------------------------------------------
   URL row
------------------------------------------------------- */
.mrpaa-url-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mrpaa-url-row input { flex: 1; }

/* -------------------------------------------------------
   Buttons
------------------------------------------------------- */
.mrpaa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .15s, transform .1s, box-shadow .15s;
    white-space: nowrap;
    text-decoration: none;
}

.mrpaa-btn:active { transform: scale(.97); }

.mrpaa-btn--primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 6px rgba(37,99,235,.3);
}
.mrpaa-btn--primary:hover   { background: #1d4ed8; }
.mrpaa-btn--primary:disabled { background: #93c5fd; cursor: not-allowed; box-shadow: none; }

.mrpaa-btn--secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1.5px solid #d1d5db;
}
.mrpaa-btn--secondary:hover { background: #e5e7eb; }

.mrpaa-btn--search {
    background: #059669;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(5,150,105,.3);
}
.mrpaa-btn--search:hover    { background: #047857; }
.mrpaa-btn--search:disabled { background: #6ee7b7; cursor: not-allowed; }

.mrpaa-btn--submit {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 15px;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 3px 10px rgba(37,99,235,.35);
    border-radius: 10px;
}
.mrpaa-btn--submit:hover { background: #1d4ed8; }

/* Mobile Money button (green – prioritaire) */
.mrpaa-btn--mobile {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    box-shadow: 0 3px 12px rgba(22,163,74,.45);
    border-radius: 10px;
    font-weight: 700;
}
.mrpaa-btn--mobile:hover    { background: linear-gradient(135deg, #15803d, #166534); }
.mrpaa-btn--mobile:disabled { opacity: .65; cursor: not-allowed; }

/* FlexPay card button (orange – secondaire) */
.mrpaa-btn--flexpay {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 14px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    box-shadow: 0 2px 8px rgba(249,115,22,.3);
    border-radius: 10px;
}
.mrpaa-btn--flexpay:hover    { background: linear-gradient(135deg, #ea580c, #c2410c); }
.mrpaa-btn--flexpay:disabled { opacity: .6; cursor: not-allowed; }

/* Spinner */
.mrpaa-loading { position: relative; padding-right: 36px; }
.mrpaa-loading::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mrpaa-spin .6s linear infinite;
}
@keyframes mrpaa-spin { to { transform: translateY(-50%) rotate(360deg); } }

/* -------------------------------------------------------
   Product rows
------------------------------------------------------- */
.mrpaa-product-row {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 14px;
    position: relative;
    transition: border-color .2s;
}

.mrpaa-product-row:hover { border-color: #93c5fd; }

.mrpaa-product-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.mrpaa-product-row-label {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.mrpaa-remove-product {
    background: none;
    border: none;
    font-size: 16px;
    color: #ef4444;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}
.mrpaa-remove-product:hover { background: #fee2e2; }

/* Per-row status */
.mrpaa-price-status {
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.5;
}

.mrpaa-status--info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
.mrpaa-status--success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.mrpaa-status--error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* -------------------------------------------------------
   Quote summary card
------------------------------------------------------- */
.mrpaa-quote-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(37,99,235,.35);
}

.mrpaa-quote-card h3 {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 700;
    opacity: .9;
    color: #fff;
    border: none;
    padding: 0;
}

.mrpaa-quote-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mrpaa-quote-table td {
    padding: 5px 4px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.mrpaa-quote-table tr:last-child td { border-bottom: none; }
.mrpaa-quote-table td:last-child { text-align: right; font-weight: 600; }

.mrpaa-total-row td {
    padding-top: 12px !important;
    font-size: 15px;
    font-weight: 800;
    border-top: 2px solid rgba(255,255,255,.3) !important;
    border-bottom: none !important;
}

.mrpaa-total-badge {
    display: inline-block;
    background: #fff;
    color: #1e3a8a;
    border-radius: 8px;
    padding: 3px 12px;
    font-weight: 800;
    font-size: 17px;
}

/* -------------------------------------------------------
   Payment options (step 4)
------------------------------------------------------- */
.mrpaa-payment-options { display: flex; flex-direction: column; gap: 14px; }

.mrpaa-pay-option {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 22px;
    background: #fff;
    transition: border-color .2s;
}

.mrpaa-pay-option--featured {
    border-color: #f97316;
    background: linear-gradient(to bottom right, #fff7ed, #fff);
    box-shadow: 0 2px 10px rgba(249,115,22,.15);
}

/* Mobile Money option = green highlight */
.mrpaa-pay-option--mobile {
    border-color: #16a34a !important;
    background: linear-gradient(to bottom right, #f0fdf4, #fff) !important;
    box-shadow: 0 3px 14px rgba(22,163,74,.18) !important;
}

.mrpaa-pay-option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 15px;
}

.mrpaa-pay-badge {
    display: inline-block;
    background: #f97316;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.mrpaa-pay-badge--gray   { background: #6b7280; }
.mrpaa-pay-badge--mobile { background: #16a34a; }
.mrpaa-pay-badge--card   { background: #f97316; }

.mrpaa-pay-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 14px;
    line-height: 1.6;
}

.mrpaa-pay-divider {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    margin: 4px 0;
}

.mrpaa-pay-divider::before,
.mrpaa-pay-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 24px);
    height: 1px;
    background: #e5e7eb;
}
.mrpaa-pay-divider::before { left: 0; }
.mrpaa-pay-divider::after  { right: 0; }

/* -------------------------------------------------------
   Form messages
------------------------------------------------------- */
#mrpaa-form-message {
    padding: 12px 16px;
    border-radius: 9px;
    font-size: 14px;
    margin-bottom: 14px;
    font-weight: 500;
}

.mrpaa-msg--success { background: #ecfdf5; border: 1.5px solid #34d399; color: #065f46; }
.mrpaa-msg--error   { background: #fef2f2; border: 1.5px solid #f87171; color: #991b1b; }

/* -------------------------------------------------------
   Zone info
------------------------------------------------------- */
#mrpaa-zone-info {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    font-style: italic;
}

/* -------------------------------------------------------
   Disclaimer
------------------------------------------------------- */
.mrpaa-disclaimer {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    margin-top: 12px;
    line-height: 1.6;
}

/* -------------------------------------------------------
   Responsive
------------------------------------------------------- */
@media (max-width: 620px) {
    .mrpaa-card       { padding: 18px 14px; }
    .mrpaa-grid-2     { grid-template-columns: 1fr; }
    .mrpaa-grid-3     { grid-template-columns: 1fr 1fr; }
    .mrpaa-url-row    { flex-direction: column; }
    .mrpaa-url-row .mrpaa-btn { width: 100%; justify-content: center; }
    .mrpaa-steps-nav  { flex-direction: column; }
    .mrpaa-pay-option-header { flex-direction: column; align-items: flex-start; gap: 6px; }
}
