/* ============================================================
   MegaForm Built-in Widgets CSS v1.0
   Covers: Signature, AdvancedFile, Repeater, Rating, Likert,
           NPS, ImageChoice, RichText, Payment, Geolocation, Appointment
   ============================================================ */

/* ============================================================
   1. E-SIGNATURE
   ============================================================ */
.mfw-sig-wrap { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fff; }
.mfw-sig-tabs { display: flex; border-bottom: 1px solid #e5e7eb; }
.mfw-sig-tab { flex: 1; padding: 10px; text-align: center; border: none; background: #f9fafb; cursor: pointer; font-size: 13px; font-weight: 600; color: #6b7280; transition: all .2s; }
.mfw-sig-tab.active { background: #fff; color: #4f46e5; border-bottom: 2px solid #4f46e5; }
.mfw-sig-tab:hover:not(.active) { background: #f3f4f6; }
.mfw-sig-canvas { width: 100%; display: block; cursor: crosshair; touch-action: none; border-bottom: 1px dashed #d1d5db; }
.mfw-sig-actions { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; }
.mfw-sig-clear { border: 1px solid #d1d5db; background: #fff; color: #6b7280; padding: 4px 14px; border-radius: 6px; cursor: pointer; font-size: 12px; transition: all .15s; }
.mfw-sig-clear:hover { background: #fef2f2; border-color: #fca5a5; color: #dc2626; }
.mfw-sig-ts { font-size: 11px; color: #10b981; font-style: italic; }
.mfw-sig-type-area { padding: 16px; }
.mfw-sig-typed-input { width: 100%; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; }
.mfw-sig-typed-preview { min-height: 60px; display: flex; align-items: center; justify-content: center; margin-top: 12px; font-family: 'Dancing Script', 'Brush Script MT', cursive; font-size: 36px; font-style: italic; color: #1a1a2e; padding: 12px; border: 1px dashed #d1d5db; border-radius: 8px; }

/* ============================================================
   2. ADVANCED FILE UPLOAD
   ============================================================ */
.mfw-upload-zone { border: 2px dashed #d1d5db; border-radius: 12px; padding: 28px; text-align: center; cursor: pointer; transition: all .2s; background: #fafafa; position: relative; }
.mfw-upload-zone:hover, .mfw-upload-zone.mfw-dragover { border-color: #6366f1; background: #f5f3ff; }
.mfw-upload-icon { font-size: 36px; margin-bottom: 8px; }
.mfw-upload-text { font-size: 14px; color: #374151; }
.mfw-upload-text strong { color: #4f46e5; }
.mfw-upload-hint { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.mfw-upload-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.mfw-upload-extras { display: flex; gap: 8px; margin-top: 8px; }
.mfw-upload-camera-btn { border: 1px solid #d1d5db; background: #fff; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; transition: all .15s; }
.mfw-upload-camera-btn:hover { background: #f9fafb; border-color: #6366f1; }
.mfw-upload-list { margin-top: 10px; }
.mfw-upload-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 8px; margin-top: 6px; background: #fff; }
.mfw-upload-item.error { border-color: #fca5a5; background: #fef2f2; }
.mfw-upload-thumb { width: 40px; height: 40px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
.mfw-upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mfw-upload-thumb-icon { font-size: 20px; }
.mfw-upload-meta { flex: 1; min-width: 0; }
.mfw-upload-name { font-size: 13px; font-weight: 500; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mfw-upload-size { font-size: 11px; color: #9ca3af; }
.mfw-upload-error { font-size: 11px; color: #dc2626; }
.mfw-upload-progress { height: 4px; background: #e5e7eb; border-radius: 2px; margin-top: 4px; overflow: hidden; }
.mfw-upload-progress-fill { height: 100%; background: #4f46e5; border-radius: 2px; transition: width .3s; }
.mfw-upload-remove { border: none; background: none; color: #9ca3af; cursor: pointer; font-size: 16px; padding: 4px; line-height: 1; }
.mfw-upload-remove:hover { color: #dc2626; }
.mfw-upload-max { text-align: center; padding: 8px; font-size: 12px; color: #f59e0b; }

/* ============================================================
   3. REPEATER / CONFIGURABLE LIST
   ============================================================ */
.mfw-repeater { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fff; }
.mfw-repeater-table-scroll { overflow-x: auto; }
.mfw-repeater-table { width: 100%; border-collapse: collapse; }
.mfw-repeater-table th { padding: 8px 10px; font-size: 12px; font-weight: 600; color: #6b7280; text-align: left; background: #f9fafb; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
.mfw-repeater-table td { padding: 6px 8px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.mfw-repeater-action-col { width: 36px; text-align: center; }
.mfw-rep-input { width: 100%; padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; background: #fff; }
.mfw-rep-input:focus { border-color: #6366f1; outline: none; box-shadow: 0 0 0 2px rgba(99,102,241,.1); }
.mfw-rep-textarea { min-height: 50px; resize: vertical; }
.mfw-rep-check { width: 16px; height: 16px; accent-color: #4f46e5; }
.mfw-repeater-remove { border: none; background: none; color: #d1d5db; cursor: pointer; font-size: 14px; padding: 4px; border-radius: 4px; }
.mfw-repeater-remove:hover { color: #dc2626; background: #fef2f2; }
.mfw-repeater-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-top: 1px solid #e5e7eb; background: #f9fafb; }
.mfw-repeater-add { border: 1px dashed #6366f1; background: #f5f3ff; color: #4f46e5; padding: 6px 16px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; transition: all .15s; }
.mfw-repeater-add:hover { background: #4f46e5; color: #fff; }
.mfw-repeater-count { font-size: 11px; color: #9ca3af; }
/* Card layout */
.mfw-repeater-cards { padding: 10px; }
.mfw-repeater-card { border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; margin-bottom: 8px; background: #fff; }
.mfw-repeater-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: #6b7280; }
.mfw-repeater-card-field { margin-bottom: 8px; }
.mfw-repeater-card-field label { display: block; font-size: 11px; font-weight: 600; color: #6b7280; margin-bottom: 2px; }

/* ============================================================
   4. STAR RATING
   ============================================================ */
.mfw-rating-wrap { padding: 4px 0; }
.mfw-rating-labels { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 11px; color: #9ca3af; }
.mfw-rating-items { display: flex; gap: 4px; align-items: center; }
.mfw-rating-item { transition: all .15s; user-select: none; }
.mfw-rating-item:hover { transform: scale(1.2); }
.mfw-rating-item.active { color: #fbbf24 !important; }
.mfw-rating-value { font-size: 12px; color: #6b7280; margin-top: 4px; }

/* ============================================================
   5. LIKERT SCALE
   ============================================================ */
.mfw-likert-scroll { overflow-x: auto; }
.mfw-likert-table { width: 100%; border-collapse: collapse; }
.mfw-likert-table th, .mfw-likert-table td { padding: 10px 8px; border-bottom: 1px solid #f3f4f6; }
.mfw-likert-col-header { font-size: 11px; font-weight: 600; color: #6b7280; text-align: center; min-width: 70px; }
.mfw-likert-row-label { font-size: 13px; color: #374151; font-weight: 500; min-width: 150px; }
.mfw-likert-cell { text-align: center; }
.mfw-likert-cell input[type="radio"] { width: 18px; height: 18px; accent-color: #4f46e5; cursor: pointer; }

/* ============================================================
   6. NPS
   ============================================================ */
.mfw-nps-wrap { padding: 4px 0; }
.mfw-nps-question { font-size: 15px; font-weight: 600; color: #374151; margin-bottom: 12px; }
.mfw-nps-scale { display: flex; gap: 4px; flex-wrap: wrap; }
.mfw-nps-btn { width: 40px; height: 40px; border-radius: 8px; border: 2px solid #e5e7eb; background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .15s; }
.mfw-nps-btn:hover { transform: scale(1.1); }
.mfw-nps-btn.detractor { color: #dc2626; }
.mfw-nps-btn.detractor:hover, .mfw-nps-btn.detractor.selected { background: #dc2626; color: #fff; border-color: #dc2626; }
.mfw-nps-btn.passive { color: #f59e0b; }
.mfw-nps-btn.passive:hover, .mfw-nps-btn.passive.selected { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.mfw-nps-btn.promoter { color: #10b981; }
.mfw-nps-btn.promoter:hover, .mfw-nps-btn.promoter.selected { background: #10b981; color: #fff; border-color: #10b981; }
.mfw-nps-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: #9ca3af; }
.mfw-nps-feedback { margin-top: 10px; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.mfw-nps-feedback.detractor { background: #fef2f2; color: #991b1b; }
.mfw-nps-feedback.passive { background: #fffbeb; color: #92400e; }
.mfw-nps-feedback.promoter { background: #ecfdf5; color: #065f46; }

/* ============================================================
   7. IMAGE CHOICE
   ============================================================ */
.mfw-imgchoice-grid { display: grid; grid-template-columns: repeat(var(--mfw-ic-cols, 3), 1fr); gap: 12px; }
@media (max-width: 600px) { .mfw-imgchoice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .mfw-imgchoice-grid { grid-template-columns: 1fr; } }
.mfw-imgchoice-card { border: 2px solid #e5e7eb; border-radius: 12px; overflow: hidden; cursor: pointer; transition: all .2s; background: #fff; position: relative; }
.mfw-imgchoice-card:hover { border-color: #a5b4fc; box-shadow: 0 4px 12px rgba(99,102,241,.1); transform: translateY(-2px); }
.mfw-imgchoice-card.selected { border-color: var(--mfw-ic-accent, #4f46e5); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.mfw-imgchoice-bordered .mfw-imgchoice-card { border-width: 2px; }
.mfw-imgchoice-shadow .mfw-imgchoice-card { border: none; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.mfw-imgchoice-shadow .mfw-imgchoice-card.selected { box-shadow: 0 0 0 3px var(--mfw-ic-accent, #4f46e5); }
.mfw-imgchoice-img { height: 120px; overflow: hidden; background: #f3f4f6; }
.mfw-imgchoice-img img { width: 100%; height: 100%; object-fit: cover; }
.mfw-imgchoice-placeholder { display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; color: #d1d5db; }
.mfw-imgchoice-info { padding: 10px 12px; }
.mfw-imgchoice-label { font-size: 13px; font-weight: 600; color: #374151; }
.mfw-imgchoice-desc { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.mfw-imgchoice-price { font-size: 14px; font-weight: 700; color: #4f46e5; margin-top: 4px; }
.mfw-imgchoice-check { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--mfw-ic-accent, #4f46e5); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.mfw-imgchoice-card.selected .mfw-imgchoice-check { opacity: 1; }

/* ============================================================
   8. RICH TEXT EDITOR
   ============================================================ */
.mfw-rte-wrap { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.mfw-rte-editor { background: #fff; }
.mfw-rte-loading { padding: 20px; text-align: center; color: #9ca3af; font-size: 13px; }
.mfw-rte-wrap .ql-toolbar { border: none !important; border-bottom: 1px solid #e5e7eb !important; background: #f9fafb; }
.mfw-rte-wrap .ql-container { border: none !important; font-size: 14px; }

/* ============================================================
   9. PAYMENT
   ============================================================ */
.mfw-payment { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; }
.mfw-payment-breakdown { padding: 16px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.mfw-payment-line { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; color: #6b7280; }
.mfw-payment-total { font-size: 16px; font-weight: 700; color: #111827; border-top: 1px solid #e5e7eb; margin-top: 8px; padding-top: 8px; }
.mfw-payment-buttons { padding: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.mfw-pay-btn { flex: 1; padding: 12px; border-radius: 8px; border: 2px solid #e5e7eb; background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; text-align: center; transition: all .2s; min-width: 140px; }
.mfw-pay-btn:hover { border-color: #6366f1; background: #f5f3ff; }
.mfw-pay-stripe { color: #635bff; }
.mfw-pay-paypal-btn { color: #003087; }
.mfw-pay-icon { margin-right: 6px; }
.mfw-payment-status { padding: 0 16px; }
.mfw-payment-success { padding: 12px 16px; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 8px; color: #065f46; font-size: 13px; font-weight: 500; margin: 8px 0; }
.mfw-stripe-form { padding: 16px; border-top: 1px solid #e5e7eb; }
.mfw-stripe-element { border: 1px solid #d1d5db; border-radius: 8px; padding: 12px; margin-bottom: 10px; background: #fff; }
.mfw-stripe-error { color: #dc2626; font-size: 12px; margin-bottom: 8px; }
.mfw-pay-submit { background: #4f46e5; color: #fff; border: none; padding: 10px 24px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; }
.mfw-pay-submit:hover { background: #4338ca; }
.mfw-pay-submit:disabled { opacity: .5; cursor: wait; }
.mfw-pay-cancel { background: none; border: 1px solid #d1d5db; padding: 10px 16px; border-radius: 8px; cursor: pointer; font-size: 13px; margin-left: 8px; }

/* ============================================================
   10. GEOLOCATION
   ============================================================ */
.mfw-geo { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fff; }
.mfw-geo-consent { padding: 24px; text-align: center; background: #f9fafb; }
.mfw-geo-consent-icon { font-size: 32px; margin-bottom: 8px; }
.mfw-geo-consent-text { font-size: 13px; color: #6b7280; max-width: 400px; margin: 0 auto 12px; }
.mfw-geo-consent-btn { background: #4f46e5; color: #fff; border: none; padding: 10px 24px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; }
.mfw-geo-consent-btn:hover { background: #4338ca; }
.mfw-geo-content { padding: 16px; }
.mfw-geo-actions { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mfw-geo-detect { border: 1px solid #d1d5db; background: #fff; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; }
.mfw-geo-detect:hover { background: #f9fafb; border-color: #4f46e5; }
.mfw-geo-status { font-size: 12px; }
.mfw-geo-status.success { color: #10b981; }
.mfw-geo-status.error { color: #dc2626; }
.mfw-geo-status.loading { color: #f59e0b; }
.mfw-geo-coords { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.mfw-geo-coord-row label { display: block; font-size: 11px; font-weight: 600; color: #6b7280; margin-bottom: 2px; }
.mfw-geo-coord-row input { width: 100%; padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 12px; background: #f9fafb; color: #6b7280; }
.mfw-geo-address { margin-bottom: 10px; }
.mfw-geo-address label { display: block; font-size: 11px; font-weight: 600; color: #6b7280; margin-bottom: 2px; }
.mfw-geo-address input { width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; }

/* ============================================================
   11. APPOINTMENT SCHEDULER
   ============================================================ */
.mfw-appt { position: relative; border: 1px solid #e5e7eb; border-radius: 24px; background: #fff; box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08); overflow: hidden; }
.mfw-appt-shell { padding: 18px; }
.mfw-appt-main { display: grid; grid-template-columns: minmax(280px, 1.08fr) minmax(220px, 0.92fr); gap: 18px; align-items: start; }
.mfw-appt-panel { border: 1px solid #e8edf7; border-radius: 20px; background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); }
.mfw-appt-panel-left { padding: 16px; }
.mfw-appt-panel-right { padding: 16px; }
.mfw-appt-datebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 0 16px; border: 1px solid #dbe5ff; border-radius: 16px; background: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.6); }
.mfw-appt-datevalue { font-size: 15px; font-weight: 600; color: #1f2a44; letter-spacing: 0.01em; }
.mfw-appt-dateicon { width: 38px; height: 38px; border-radius: 12px; border: 1px solid #dbe5ff; background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%); color: #5b74f2; cursor: pointer; }
.mfw-appt-dateicon:hover { background: #eef4ff; }
.mfw-appt-dateicon-glyph { font-size: 18px; line-height: 1; }
.mfw-appt-picker-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.mfw-appt-select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #dbe5ff; border-radius: 14px; background: #fff; font-size: 15px; font-weight: 600; color: #1f2a44; outline: none; }
.mfw-appt-select:focus { border-color: #8ea7ff; box-shadow: 0 0 0 3px rgba(92, 118, 255, 0.12); }
.mfw-appt-calendar { margin-top: 14px; }
.mfw-cal-title { margin-bottom: 10px; font-size: 13px; font-weight: 700; color: #7a88a6; letter-spacing: 0.08em; text-transform: uppercase; }
.mfw-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.mfw-cal-header { text-align: center; font-size: 12px; font-weight: 700; color: #8a98b6; padding: 6px 0 8px; }
.mfw-cal-empty { min-height: 42px; }
.mfw-cal-day { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 14px; background: #f7f9fe; color: #25314f; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease; }
.mfw-cal-day:hover:not(.disabled) { transform: translateY(-1px); border-color: #d7e3ff; background: #eef4ff; color: #4763f6; box-shadow: 0 8px 18px rgba(71, 99, 246, 0.12); }
.mfw-cal-day.disabled { background: #fafbfe; color: #c4ccdd; cursor: not-allowed; box-shadow: none; }
.mfw-cal-day.today { border-color: #b9c8ff; color: #4763f6; }
.mfw-cal-day.selected { border-color: #4f73ff; background: linear-gradient(180deg, #5d80ff 0%, #4a6ff7 100%); color: #fff; box-shadow: 0 14px 26px rgba(79, 115, 255, 0.24); }
.mfw-appt-right-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.mfw-appt-selected-date { min-height: 34px; font-size: 15px; font-weight: 700; color: #25314f; display: flex; align-items: center; }
.mfw-appt-inline-nav { display: flex; gap: 10px; }
.mfw-cal-prev, .mfw-cal-next { width: 38px; height: 38px; border-radius: 999px; border: 1px solid #e3e9f7; background: linear-gradient(180deg, #ffffff 0%, #f4f7fe 100%); color: #64748b; cursor: pointer; font-size: 22px; line-height: 1; }
.mfw-cal-prev:hover, .mfw-cal-next:hover { background: #eef4ff; color: #4763f6; }
.mfw-appt-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mfw-appt-slot { min-height: 56px; padding: 0 16px; border: 1px solid #98adff; border-radius: 16px; background: #fff; color: #4f73ff; font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease; }
.mfw-appt-slot:hover { transform: translateY(-1px); border-color: #4f73ff; background: #eef4ff; box-shadow: 0 12px 24px rgba(79, 115, 255, 0.14); }
.mfw-appt-slot.selected { color: #fff; border-color: #4f73ff; background: linear-gradient(180deg, #5d80ff 0%, #4a6ff7 100%); box-shadow: 0 14px 28px rgba(79, 115, 255, 0.24); }
.mfw-appt-slot.booked { border-color: #e5e7eb; background: #f8fafc; color: #a1a7b4; cursor: not-allowed; text-decoration: line-through; box-shadow: none; }
.mfw-appt-no-slots { padding: 18px 0 4px; font-size: 14px; color: #8a98b6; }
.mfw-appt-timezone { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: #55627d; font-size: 14px; font-weight: 600; }
.mfw-appt-timezone-icon { font-size: 17px; line-height: 1; color: #6f7ea3; }
.mfw-appt-confirm { display: none; margin-top: 18px; padding: 18px; border: 1px solid #d8e4ff; border-radius: 18px; background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); }
.mfw-appt-confirm-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; color: #22304f; }
.mfw-appt-confirm-icon { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: linear-gradient(180deg, #5d80ff 0%, #4a6ff7 100%); color: #fff; }
.mfw-appt-summary { margin-top: 14px; display: grid; gap: 12px; }
.mfw-appt-summary-row { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start; }
.mfw-appt-summary-label { font-size: 13px; font-weight: 700; color: #7a88a6; text-transform: uppercase; letter-spacing: 0.06em; }
.mfw-appt-summary-value { font-size: 15px; font-weight: 700; color: #22304f; }
.mfw-appt-change { margin-top: 16px; min-height: 42px; padding: 0 16px; border: 1px solid #d9e3ff; border-radius: 14px; background: #fff; color: #394867; font-size: 14px; font-weight: 700; cursor: pointer; }
.mfw-appt-change:hover { background: #f8fbff; border-color: #bfd0ff; }
.mfw-appt-badge { position: absolute; right: 18px; bottom: 18px; display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border: 1px solid #d7deef; border-radius: 999px; background: rgba(244, 247, 254, 0.95); color: #6f7c97; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .mfw-nps-btn { width: 34px; height: 34px; font-size: 12px; }
    .mfw-geo-coords { grid-template-columns: 1fr; }
    .mfw-payment-buttons { flex-direction: column; }
    .mfw-pay-btn { min-width: 100%; }
    .mfw-repeater-table { font-size: 12px; }
    .mfw-appt-shell { padding: 14px; }
    .mfw-appt-main { grid-template-columns: 1fr; }
    .mfw-appt-panel-left, .mfw-appt-panel-right { padding: 14px; }
    .mfw-appt-right-head { flex-direction: column; align-items: flex-start; }
    .mfw-appt-inline-nav { align-self: flex-end; }
    .mfw-appt-slots { grid-template-columns: 1fr; }
    .mfw-appt-slot { min-height: 50px; font-size: 14px; }
    .mfw-appt-summary-row { grid-template-columns: 1fr; gap: 4px; }
    .mfw-appt-badge { position: static; margin-top: 14px; }
}


/* Appointment compact refresh v20260403-02 */
.mfw-appt { border-radius: 0; box-shadow: none; overflow: visible; }
.mfw-appt-shell { padding: 0; }
.mfw-appt-trigger { display: block; }
.mfw-appt-datebar { min-height: 42px; padding: 0 10px; border-radius: 0; box-shadow: none; }
.mfw-appt-dateicon, .mfw-appt-select, .mfw-cal-day, .mfw-cal-prev, .mfw-cal-next, .mfw-appt-slot, .mfw-appt-change, .mfw-appt-confirm, .mfw-appt-confirm-icon, .mfw-appt-panel { border-radius: 0 !important; }
.mfw-appt-dateicon { width: 30px; height: 30px; background: #fff; }
.mfw-appt-popover { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: min(560px, calc(100vw - 32px)); padding: 10px; border: 1px solid #dbe5ff; background: #fff; box-shadow: 0 12px 28px rgba(15,23,42,.12); }
.mfw-appt.is-open .mfw-appt-popover { display: block; }
.mfw-appt-popover[hidden] { display: none !important; }
.mfw-appt-main { gap: 10px; grid-template-columns: minmax(240px, 1fr) minmax(180px, .95fr); }
.mfw-appt-panel { background: #fff; }
.mfw-appt-panel-left, .mfw-appt-panel-right { padding: 10px; }
.mfw-appt-select { height: 38px; padding: 0 10px; }
.mfw-cal-grid { gap: 6px; }
.mfw-cal-day { min-height: 34px; background: #fff; }
.mfw-cal-day.selected { background: #4a6ff7; box-shadow: none; }
.mfw-cal-prev, .mfw-cal-next { width: 30px; height: 30px; font-size: 18px; }
.mfw-appt-slot { min-height: 38px; padding: 0 10px; box-shadow: none; }
.mfw-appt-slot:hover, .mfw-appt-slot.selected { box-shadow: none; transform: none; }
.mfw-appt-confirm { margin-top: 12px; padding: 12px; }
.mfw-appt-badge { display: none !important; }
@media (max-width: 600px) {
  .mfw-appt-popover { width: min(420px, calc(100vw - 24px)); }
}

/* PaymentPro runtime v20260404-03 */
.mfw-payment-wrap { --mfw-accent:#4f46e5; }
.mfw-payment-card { border:1px solid #e6eaf2; border-radius:18px; background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%); padding:16px; box-shadow:0 16px 34px rgba(15,23,42,.05); }
.mfw-payment-top { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px; align-items:end; }
.mfw-payment-header { display:grid; gap:4px; }
.mfw-payment-title { font-size:20px; font-weight:800; color:#0f172a; line-height:1.18; }
.mfw-payment-description { font-size:13px; color:#64748b; line-height:1.5; }
.mfw-payment-summary { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.mfw-payment-amount-box { min-width:190px; padding:12px 14px; border:1px solid #dbe3f0; border-radius:14px; background:#f8fafc; }
.mfw-payment-amount-label { display:block; font-size:11px; font-weight:800; color:#64748b; text-transform:uppercase; letter-spacing:.08em; }
.mfw-payment-amount { display:block; margin-top:4px; font-size:22px; font-weight:900; color:#0f172a; letter-spacing:-.02em; }
.mfw-payment-status { display:inline-flex; align-items:center; justify-content:center; min-height:36px; padding:0 14px; border-radius:999px; font-size:12px; font-weight:800; border:1px solid #dbe3f0; background:#f8fafc; color:#475569; }
.mfw-payment-status[data-status="paid"] { border-color:#bbf7d0; background:#ecfdf5; color:#166534; }
.mfw-payment-status[data-status="pending"] { border-color:#fde68a; background:#fff7ed; color:#c2410c; }
.mfw-payment-status[data-status="failed"] { border-color:#fecaca; background:#fef2f2; color:#b91c1c; }
.mfw-payment-provider-switch { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:14px; }
.mfw-payment-provider-btn { display:grid; gap:3px; text-align:left; padding:12px 14px; border:1px solid #dbe3f0; border-radius:14px; background:#fff; cursor:pointer; transition:all .18s ease; }
.mfw-payment-provider-btn:hover { border-color:var(--mfw-accent); box-shadow:0 10px 20px rgba(79,70,229,.07); }
.mfw-payment-provider-btn.is-active { border-color:var(--mfw-accent); background:linear-gradient(180deg,#ffffff 0%,#f6f7ff 100%); box-shadow:0 10px 20px rgba(79,70,229,.10); }
.mfw-payment-provider-brand { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:800; color:#0f172a; }
.mfw-payment-provider-mark,
.mfw-payment-method-mark { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:999px; font-size:11px; font-weight:900; line-height:1; }
.mfw-payment-provider-mark.is-stripe,
.mfw-payment-method-mark.is-stripe { background:#eef2ff; color:#4338ca; }
.mfw-payment-provider-mark.is-paypal,
.mfw-payment-method-mark.is-paypal { background:#eff6ff; color:#1d4ed8; }
.mfw-payment-provider-meta { font-size:12px; color:#64748b; }
.mfw-payment-stage { margin-top:14px; padding:14px; border:1px solid #e5eaf3; border-radius:16px; background:#fff; }
.mfw-payment-method { display:none; }
.mfw-payment-method.is-active { display:block; }
.mfw-payment-method-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.mfw-payment-method-name { display:flex; align-items:center; gap:8px; font-size:15px; font-weight:800; color:#0f172a; }
.mfw-payment-method-note { font-size:12px; color:#64748b; }
.mfw-payment-stripe-element { min-height:52px; border:1px solid #dbe3f0; border-radius:12px; padding:11px 13px; background:#fff; }
.mfw-payment-btn { margin-top:12px; width:100%; min-height:46px; padding:0 18px; border:none; border-radius:12px; background:linear-gradient(135deg,var(--mfw-accent) 0%,#4338ca 100%); color:#fff; font-size:15px; font-weight:800; cursor:pointer; box-shadow:0 12px 24px rgba(79,70,229,.18); transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.mfw-payment-btn:hover { transform:translateY(-1px); box-shadow:0 16px 28px rgba(79,70,229,.24); }
.mfw-payment-btn:disabled { opacity:.55; cursor:wait; transform:none; box-shadow:none; }
.mfw-payment-paypal-buttons { min-height:42px; }
.mfw-payment-inline-msg { min-height:18px; margin-top:12px; font-size:12px; font-weight:700; color:#64748b; }
.mfw-payment-inline-msg.is-success { color:#166534; }
.mfw-payment-inline-msg.is-error { color:#b91c1c; }
.mfw-payment-inline-msg.is-warn { color:#c2410c; }
.mfw-payment-inline-msg.is-info { color:#475569; }
.mfw-payment-mini-error { padding:11px 13px; border:1px solid #fecaca; border-radius:12px; background:#fef2f2; color:#b91c1c; font-size:12px; font-weight:700; }
.mfw-payment-mini-hint { display:flex; align-items:center; min-height:52px; padding:11px 13px; border:1px dashed #dbe3f0; border-radius:12px; background:#f8fafc; color:#475569; font-size:12px; font-weight:700; line-height:1.4; }
.mfw-payment-mini-hint.is-info { border-color:#bfdbfe; background:#eff6ff; color:#1d4ed8; }
.mfw-payment-mini-hint.is-warn { border-color:#fde68a; background:#fffbeb; color:#b45309; }
.mfw-payment-mini-hint.is-error { border-color:#fecaca; background:#fef2f2; color:#b91c1c; }
@media (max-width: 760px) {
  .mfw-payment-top { grid-template-columns:1fr; }
  .mfw-payment-summary { justify-content:flex-start; }
  .mfw-payment-amount-box { min-width:0; width:100%; }
  .mfw-payment-provider-switch { grid-template-columns:1fr; }
  .mfw-payment-method-head { flex-direction:column; align-items:flex-start; }
}
  .mfw-payment-summary { justify-content:flex-start; }
  .mfw-payment-amount-box { min-width:0; width:100%; }
  .mfw-payment-provider-switch { grid-template-columns:1fr; }
  .mfw-payment-method-head { flex-direction:column; align-items:flex-start; }
  .mfw-payment-amount { font-size:28px; }
}
