/* ==========================================================
   MERESBIZTOS / AJANLATKERO
   Scope: .mbq only. No global theme/header/service-page changes.
   1. Base  2. Services  3. Fields  4. Summary  5. Feedback
   6. Responsive layouts
   ========================================================== */

/* 1. Base and typography */
.mbq {
    --q-bg: #0b1017;
    --q-panel: #10161e;
    --q-text: #f3f5f8;
    --q-muted: #adb7c5;
    --q-orange: #ff7a00;
    --q-line: rgba(255, 255, 255, .10);
    --q-danger: #ffb1a6;
    max-width: 1240px;
    margin: 0 auto;
    padding: 46px 24px 64px;
    color: var(--q-text);
    font: 400 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: dark;
    text-align: left;
}
.mbq *, .mbq *::before, .mbq *::after { box-sizing: border-box; }
.mbq [hidden] { display: none !important; }
.mbq h1, .mbq h2, .mbq h3, .mbq p { margin: 0; }
.mbq button, .mbq input, .mbq select, .mbq textarea { font: inherit; }
.mbq a { color: var(--q-orange); text-decoration: none; }
.mbq a:hover { text-decoration: underline; }
.mbq a:focus-visible, .mbq button:focus-visible, .mbq summary:focus-visible {
    outline: 2px solid var(--q-orange); outline-offset: 4px;
}
.mbq fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.mbq .mbq-eyebrow {
    display: block; margin: 0 0 12px; color: var(--q-orange);
    font-size: 12px; font-weight: 800; letter-spacing: .12em;
}
.mbq .mbq-hero { margin-bottom: 30px; }
.mbq .mbq-hero h1 { font-size: clamp(36px, 4.5vw, 57px); letter-spacing: -.04em; line-height: 1.08; margin-bottom: 18px; }
.mbq .mbq-hero h1 span { color: var(--q-muted); }
.mbq .mbq-hero > p { max-width: 750px; font-size: 16px; line-height: 1.7; color: var(--q-muted); }
.mbq .mbq-hero-note { display: flex; align-items: baseline; gap: 9px; color: var(--q-muted); font-size: 12px; margin-top: 18px; }
.mbq .mbq-hero-note > span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--q-orange); flex-shrink: 0; }
.mbq .mbq-panel { border: 1px solid var(--q-line); border-radius: 20px; padding: 26px; background: linear-gradient(135deg, rgba(255,255,255,.025), rgba(255,255,255,.008)); min-width: 0; }
.mbq .mbq-section-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 23px; }
.mbq .mbq-section-heading h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 5px; }
.mbq .mbq-section-heading p { color: var(--q-muted); font-size: 13px; }
.mbq .mbq-number {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px;
    width: 36px; height: 36px; border: 1px solid rgba(255,122,0,.36); border-radius: 50%;
    color: var(--q-orange); background: rgba(255,122,0,.08); font-size: 12px; font-weight: 800;
}
.mbq .mbq-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 2. Service selector: real radio buttons behind visual cards */
.mbq .mbq-service-panel { margin-bottom: 20px; }
.mbq .mbq-service-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mbq .mbq-choice { display: block; position: relative; min-width: 0; cursor: pointer; }
.mbq .mbq-choice > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mbq .mbq-choice-face {
    display: flex; flex-direction: column; height: 100%; min-height: 150px; padding: 18px;
    border: 1px solid var(--q-line); border-radius: 14px; background: rgba(255,255,255,.015);
    transition: border-color .15s, background .15s;
}
.mbq .mbq-choice-top { display: flex; justify-content: space-between; align-items: center; color: var(--q-orange); margin-bottom: 13px; }
.mbq .mbq-choice-check { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid var(--q-line); border-radius: 50%; color: transparent; font-size: 13px; }
.mbq .mbq-choice-face > strong { display: block; font-size: 18px; line-height: 1.3; margin-bottom: 6px; }
.mbq .mbq-choice-face > small { color: var(--q-muted); font-size: 12px; line-height: 1.5; }
.mbq .mbq-choice:hover .mbq-choice-face { border-color: rgba(255,122,0,.40); }
.mbq .mbq-choice input:checked + .mbq-choice-face { border-color: var(--q-orange); background: linear-gradient(145deg,rgba(255,122,0,.13),rgba(255,122,0,.025)); }
.mbq .mbq-choice input:checked + .mbq-choice-face .mbq-choice-check { color: #121417; background: var(--q-orange); border-color: var(--q-orange); }
.mbq .mbq-choice input:focus-visible + .mbq-choice-face { outline: 2px solid var(--q-orange); outline-offset: 3px; }
.mbq .mbq-unsure { display: flex; gap: 10px; align-items: center; margin-top: 18px; color: var(--q-muted); font-size: 13px; cursor: pointer; padding: 6px 0; }
.mbq input[type="checkbox"], .mbq input[type="radio"] { accent-color: var(--q-orange); width: 18px; height: 18px; flex-shrink: 0; margin: 0; }

/* 3. Field layout */
.mbq .mbq-workspace { display: grid; grid-template-columns: minmax(0,1fr) 282px; gap: 20px; align-items: start; }
.mbq .mbq-form-column { display: grid; gap: 20px; min-width: 0; }
.mbq .mbq-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 16px; }
.mbq .mbq-field { min-width: 0; scroll-margin-top: 130px; }
.mbq .mbq-wide { grid-column: 1 / -1; }
.mbq .mbq-label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 700; line-height: 1.45; }
.mbq .mbq-required { color: var(--q-orange); }
.mbq .mbq-field input:not([type="checkbox"]):not([type="radio"]),
.mbq .mbq-field select, .mbq .mbq-field textarea {
    display: block; width: 100%; min-width: 0; min-height: 46px; margin: 0; padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.15); border-radius: 10px;
    background: #0a1017; color: var(--q-text); font-size: 14px; line-height: 1.4;
    box-shadow: none; transition: border-color .15s;
}
.mbq .mbq-field select { cursor: pointer; padding-right: 30px; }
.mbq .mbq-field textarea { resize: vertical; min-height: 100px; }
.mbq .mbq-field input:focus, .mbq .mbq-field select:focus, .mbq .mbq-field textarea:focus {
    outline: 2px solid rgba(255,122,0,.35); outline-offset: 1px; border-color: var(--q-orange);
}
.mbq .mbq-help { display: block; margin-top: 7px; color: var(--q-muted); font-size: 12px; line-height: 1.55; }
.mbq .mbq-help:empty { display: none; }
.mbq .mbq-subtitle { font-size: 17px; line-height: 1.4; margin: 25px 0 18px; padding-top: 24px; border-top: 1px solid var(--q-line); color: var(--q-orange); }
.mbq .mbq-checks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.mbq .mbq-check { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid var(--q-line); border-radius: 10px; font-size: 13px; line-height: 1.4; cursor: pointer; }
.mbq .mbq-check:has(input:checked) { border-color: rgba(255,122,0,.6); background: rgba(255,122,0,.06); }
.mbq .mbq-more { margin-top: 24px; border: 1px solid var(--q-line); border-radius: 12px; overflow: hidden; }
.mbq .mbq-more summary { padding: 15px; cursor: pointer; font-size: 13px; font-weight: 700; }
.mbq .mbq-more summary span { font-weight: 400; color: var(--q-muted); font-size: 12px; margin-left: 8px; }
.mbq .mbq-more-inner { padding: 6px 16px 18px; }
.mbq .mbq-extras { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--q-line); }

/* Uploads */
.mbq .mbq-upload { position: relative; margin-top: 26px; border: 1px dashed rgba(255,122,0,.34); border-radius: 14px; padding: 19px; background: rgba(255,122,0,.025); }
.mbq .mbq-upload h3 { font-size: 15px; margin-bottom: 8px; }
.mbq .mbq-upload h3 span { display: inline-block; color: var(--q-muted); font-size: 12px; font-weight: 400; margin-left: 5px; }
.mbq .mbq-upload > p { font-size: 13px; color: var(--q-muted); margin-bottom: 14px; }
.mbq .mbq-upload-button { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 15px; border: 1px solid var(--q-line); border-radius: 9px; background: #151b23; font-size: 13px; font-weight: 700; cursor: pointer; }
.mbq .mbq-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mbq .mbq-upload:focus-within .mbq-upload-button { outline: 2px solid var(--q-orange); outline-offset: 3px; }
.mbq .mbq-file-list { list-style: none; padding: 0; margin: 12px 0 0; }
.mbq .mbq-file-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--q-line); font-size: 12px; }
.mbq .mbq-file-list li > span { min-width: 0; overflow-wrap: anywhere; }
.mbq .mbq-file-list button { flex-shrink: 0; background: none; color: var(--q-orange); border: 0; min-height: 36px; font-size: 12px; cursor: pointer; }

/* 4. Live summary; on mobile it sits before the submit section */
.mbq .mbq-summary-track { min-width: 0; align-self: stretch; }
.mbq .mbq-summary { max-height: calc(100dvh - 130px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #49505c transparent; position: sticky; top: 110px; min-width: 0; padding: 22px; border: 1px solid rgba(255,122,0,.25); border-radius: 18px; background: radial-gradient(circle at 100% 0,rgba(255,122,0,.08),transparent 65%), #0e141c; }
.mbq .mbq-summary h2 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 18px; }
.mbq .mbq-summary-service { font-size: 16px; font-weight: 750; padding-bottom: 16px; border-bottom: 1px solid var(--q-line); }
.mbq .mbq-summary dl { margin: 0; }
.mbq .mbq-summary dl > div { padding: 11px 0; border-bottom: 1px solid var(--q-line); }
.mbq .mbq-summary dt { color: var(--q-muted); font-size: 11px; margin: 0 0 3px; }
.mbq .mbq-summary dd { margin: 0; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.mbq .mbq-summary-note { color: var(--q-muted); font-size: 12px; margin: 16px 0 12px; line-height: 1.65; }
.mbq .mbq-summary-edit { font-size: 12px; font-weight: 700; }
.mbq .mbq-summary-next { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--q-line); font-size: 13px; }
.mbq .mbq-summary-next p { color: var(--q-muted); font-size: 12px; line-height: 1.6; margin-top: 7px; }

/* 5. Submission, validation and receipt */
.mbq .mbq-submit-panel { grid-column: 1 / -1; }
.mbq .mbq-privacy { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; cursor: pointer; }
.mbq .mbq-privacy input { margin-top: 2px; }
.mbq .mbq-privacy a { text-decoration: underline; }
.mbq .mbq-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 22px; }
.mbq .mbq-submit-row > p { color: var(--q-muted); font-size: 12px; max-width: 400px; }
.mbq .mbq-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 52px; flex-shrink: 0; padding: 13px 25px;
    border: 1px solid transparent; border-radius: 11px; background: linear-gradient(135deg,#ff8a12,#ff6900);
    color: #121417; font-size: 15px; font-weight: 800; cursor: pointer;
}
.mbq .mbq-submit:hover { filter: brightness(1.07); }
.mbq .mbq-submit:disabled { opacity: .55; cursor: not-allowed; }
.mbq .mbq-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mbq .mbq-error { display: block; color: var(--q-danger); font-size: 12px; line-height: 1.5; margin-top: 7px; }
.mbq .mbq-invalid input:not([type="checkbox"]):not([type="radio"]), .mbq .mbq-invalid select, .mbq .mbq-invalid textarea { border-color: var(--q-danger); }
.mbq .mbq-feedback, .mbq .mbq-notice { border: 1px solid rgba(255,160,135,.45); background: rgba(255,130,100,.06); border-radius: 12px; padding: 17px; font-size: 14px; margin: 18px 0; }
.mbq .mbq-feedback ul { margin: 10px 0 0; padding-left: 20px; }
.mbq .mbq-feedback li { margin-top: 6px; }
.mbq .mbq-feedback a { color: var(--q-danger); }
.mbq .mbq-connection { font-size: 12px; color: var(--q-muted); margin-top: 10px; }
.mbq .mbq-phone-note { margin-top: 22px; color: var(--q-muted); font-size: 14px; text-align: center; }
.mbq .mbq-phone-note a { display: inline-block; margin-left: 8px; font-weight: 750; }
.mbq .mbq-success { max-width: 800px; margin: 30px auto; padding: 40px; scroll-margin-top: 110px; }
.mbq .mbq-success-icon { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; background: rgba(255,122,0,.14); border: 1px solid rgba(255,122,0,.5); color: var(--q-orange); font-size: 28px; border-radius: 50%; margin-bottom: 22px; }
.mbq .mbq-success h2 { font-size: clamp(26px,4vw,36px); line-height: 1.2; letter-spacing: -.025em; margin-bottom: 18px; }
.mbq .mbq-success > p { color: var(--q-muted); }
.mbq .mbq-reference { display: block; margin: 20px 0 !important; padding: 14px; border: 1px solid var(--q-line); border-radius: 10px; overflow-wrap: anywhere; }
.mbq .mbq-reference strong { color: var(--q-text); }

/* 6. Tablet */
@media (max-width: 960px) {
    .mbq .mbq-workspace { grid-template-columns: minmax(0,1fr); }
    .mbq .mbq-summary { position: static; max-height: none; overflow: visible; }
    .mbq .mbq-summary dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
    .mbq .mbq-summary-next { display: none; }
    .mbq .mbq-summary-note { max-width: 680px; }
    .mbq .mbq-choice-face { padding: 14px; }
}
@media (max-width: 600px) {
    .mbq { padding: 28px 14px 40px; }
    .mbq .mbq-hero h1 { font-size: clamp(32px,8.6vw,44px); }
    .mbq .mbq-hero > p { font-size: 15px; }
    .mbq .mbq-hero-note { font-size: 12px; line-height: 1.6; }
    .mbq .mbq-panel { padding: 19px 16px; border-radius: 16px; }
    .mbq .mbq-section-heading { gap: 11px; margin-bottom: 20px; }
    .mbq .mbq-section-heading h2 { font-size: 20px; }
    .mbq .mbq-section-heading p { font-size: 12px; }
    .mbq .mbq-service-choices { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .mbq .mbq-choice-face { min-height: 150px; padding: 14px; }
    .mbq .mbq-choice-face > strong { font-size: 17px; }
    .mbq .mbq-choice-face > small { font-size: 12px; }
    .mbq .mbq-fields { grid-template-columns: minmax(0,1fr); gap: 18px; }
    .mbq .mbq-label { font-size: 14px; }
    .mbq .mbq-field input:not([type="checkbox"]):not([type="radio"]), .mbq .mbq-field select, .mbq .mbq-field textarea { font-size: 16px; min-height: 48px; }
    .mbq .mbq-checks { grid-template-columns: minmax(0,1fr); }
    .mbq .mbq-check { font-size: 14px; min-height: 46px; align-items: center; }
    .mbq .mbq-help { font-size: 12px; }
    .mbq .mbq-upload { padding: 15px; }
    .mbq .mbq-submit-row { flex-direction: column; align-items: stretch; gap: 16px; }
    .mbq .mbq-submit { width: 100%; padding-inline: 16px; }
    .mbq .mbq-summary { padding: 20px; }
    .mbq .mbq-summary dl { grid-template-columns: minmax(0,1fr); }
    .mbq .mbq-more summary span { display: block; margin-left: 0; margin-top: 4px; }
    .mbq .mbq-success { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .mbq *, .mbq *::before, .mbq *::after { transition: none !important; scroll-behavior: auto !important; }
}
