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

/* ─── Container ─────────────────────────────────────────── */
.mr-booking-wrap {
    font-family: 'Outfit', sans-serif;
    max-width: 700px;
    margin: 32px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(11,130,62,0.10), 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid #e5efe9;
}

/* ─── Step indicator ─────────────────────────────────────── */
.mr-steps {
    display: flex;
    align-items: center;
    padding: 20px 32px;
    background: linear-gradient(135deg, #0b823e 0%, #09693200 100%), #0b823e;
    gap: 0;
}
.mr-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    transition: color .3s;
}
.mr-step.active, .mr-step.done {
    color: #fff;
}
.mr-step span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all .3s;
}
.mr-step.active span {
    background: #fff;
    color: #0b823e;
    border-color: #fff;
}
.mr-step.done span {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.6);
}
.mr-step-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.25);
    margin: 0 12px;
}

/* ─── Step content ───────────────────────────────────────── */
.mr-step-content {
    padding: 28px 32px 32px;
    animation: mr-fade-in .3s ease;
}
@keyframes mr-fade-in {
    from { opacity:0; transform:translateY(8px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ─── Property banner ────────────────────────────────────── */
.mr-property-banner {
    background: linear-gradient(135deg, #f0faf4 0%, #e8f5ed 100%);
    border: 1px solid #c3e6cf;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.mr-property-banner img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.mr-prop-type {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0b823e;
    background: rgba(11,130,62,0.1);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
}
.mr-prop-name {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}
.mr-prop-price {
    font-size: 18px;
    font-weight: 700;
    color: #0b823e;
}
.mr-prop-price span {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
}

/* ─── Form fields ────────────────────────────────────────── */
.mr-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.mr-field {
    margin-bottom: 16px;
}
.mr-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.mr-field label span { color: #DD003B; }
.mr-optional { color: #9ca3af !important; font-weight: 400 !important; }
.mr-field input,
.mr-field textarea,
.mr-field select {
    width: 100%;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #111;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    background: #fafafa;
}
.mr-field input:focus,
.mr-field textarea:focus {
    outline: none;
    border-color: #0b823e;
    box-shadow: 0 0 0 3px rgba(11,130,62,0.1);
    background: #fff;
}
.mr-field input.mr-error {
    border-color: #DD003B;
}
.mr-field textarea { resize: vertical; }

/* ─── Error message ──────────────────────────────────────── */
.mr-error-msg {
    background: #fff0f3;
    border: 1px solid #fecdd6;
    color: #DD003B;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* ─── Buttons ────────────────────────────────────────────── */
.mr-btn-next,
.mr-btn-confirm {
    width: 100%;
    background: #0b823e;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, transform .1s;
    margin-top: 8px;
}
.mr-btn-next:hover, .mr-btn-confirm:hover { background: #096e33; }
.mr-btn-next:active, .mr-btn-confirm:active { transform: scale(0.99); }
.mr-btn-next:disabled, .mr-btn-confirm:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}
.mr-btn-back {
    background: transparent;
    border: 1.5px solid #d1d5db;
    color: #6b7280;
    border-radius: 10px;
    padding: 13px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}
.mr-btn-back:hover {
    border-color: #9ca3af;
    color: #374151;
}
.mr-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.mr-btn-row .mr-btn-confirm { flex: 1; margin-top: 0; }

/* ─── Summary table ──────────────────────────────────────── */
.mr-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin: 0 0 16px;
}
.mr-summary-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.mr-summary-table tr td {
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
}
.mr-summary-table tr:nth-child(even) td { background: #f9fafb; }
.mr-summary-table .mr-total-row td {
    background: #0b823e;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}
.mr-summary-table td:first-child { font-weight: 600; color: #374151; width: 40%; }

/* ─── Payment choice ─────────────────────────────────────── */
.mr-payment-choice { margin-top: 24px; }
.mr-payment-choice h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px;
}
.mr-pay-options {
    display: flex;
    gap: 12px;
}
.mr-pay-option {
    flex: 1;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all .2s;
    background: #fafafa;
}
.mr-pay-option input[type=radio] { display: none; }
.mr-pay-option:hover { border-color: #0b823e; background: #f0faf4; }
.mr-pay-option.selected {
    border-color: #0b823e;
    background: #f0faf4;
}
.mr-pay-option strong { display: block; font-size: 14px; color: #111; }
.mr-pay-option small { display: block; font-size: 12px; color: #9ca3af; margin-top: 2px; }
.mr-pay-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.mr-pay-icon.mr-card svg { color: #374151; }

/* ─── Confirmation / Step 3 ──────────────────────────────── */
.mr-confirm-wrap { text-align: center; }
.mr-payment-panel { padding: 16px 0 8px; }
.mr-success-icon { font-size: 52px; margin-bottom: 12px; }
.mr-confirm-wrap h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0b823e;
    margin: 0 0 8px;
}
.mr-ref-label { color: #6b7280; font-size: 13px; margin: 8px 0 6px; }
.mr-ref-badge {
    display: inline-block;
    background: #0b823e;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 10px 28px;
    border-radius: 10px;
    margin: 4px 0 24px;
    font-family: 'Outfit', monospace;
}
.mr-mpesa-steps {
    background: #f0faf4;
    border: 1px solid #c3e6cf;
    border-radius: 12px;
    padding: 20px 24px;
    text-align: left;
    margin: 0 auto;
    max-width: 420px;
}
.mr-mpesa-steps h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #111;
}
.mr-mpesa-steps ol {
    padding-left: 20px;
    margin: 0 0 14px;
}
.mr-mpesa-steps li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #374151;
}
.mr-green { color: #0b823e; }
.mr-note {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}
.mr-card-placeholder {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    padding: 24px;
    margin: 0 auto;
    max-width: 380px;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}
.mr-coming-soon-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

/* ─── Loading spinner ────────────────────────────────────── */
.mr-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mr-spin .7s linear infinite;
    margin-right: 8px;
}
@keyframes mr-spin { to { transform: rotate(360deg); } }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 560px) {
    .mr-step-content { padding: 20px 18px 24px; }
    .mr-steps { padding: 16px 18px; }
    .mr-field-row { grid-template-columns: 1fr; gap: 0; }
    .mr-pay-options { flex-direction: column; }
}
