/* Custom quotes: one choice at a time, using the shared Rebo visual language. */
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/assets/PlusJakartaSans-400.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/assets/PlusJakartaSans-600.ttf') format('truetype'); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/assets/PlusJakartaSans-700.ttf') format('truetype'); font-style: normal; font-weight: 700; font-display: swap; }

body.quote-page {
  --quote-ink: #0c1a33;
  --quote-muted: #707780;
  --quote-line: #e5e7e9;
  --quote-surface: #f5f5f3;
  --quote-ease: cubic-bezier(.22, 1, .36, 1);
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  background: #fdfcfb;
  color: var(--quote-ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.quote-page *,
.quote-page *::before,
.quote-page *::after { box-sizing: border-box; }
.quote-page button,
.quote-page input,
.quote-page select,
.quote-page textarea { font: inherit; }
.quote-page button,
.quote-page a { -webkit-tap-highlight-color: transparent; }
:where(.quote-page) button { color: inherit; cursor: pointer; }
.quote-page button:disabled { cursor: default; opacity: .42; }
:where(.quote-page) a { color: inherit; }
.quote-page [hidden] { display: none !important; }
.quote-page :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid #7190bc;
  outline-offset: 4px;
}
.quote-skip { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--quote-ink); color: #fff !important; font-size: 12px; font-weight: 600; text-decoration: none; transform: translateY(calc(-100% - 24px)); }
.quote-skip:focus { transform: none; }

.quote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1520px;
  min-height: 86px;
  margin: 0 auto;
  padding: 22px 40px;
}
.quote-logo { display: inline-flex; align-items: center; flex: none; }
.quote-logo img { display: block; width: 108px; height: auto; }
.quote-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--quote-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color .18s, background .18s;
}
.quote-exit:hover { color: var(--quote-ink); background: #f0f0ed; }
.quote-exit svg { width: 18px; height: 18px; }

.quote-app {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 20px 32px 72px;
}
.quote-progress { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0 0 42px; }
.quote-progress-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #dedfdf;
  transition: width .28s var(--quote-ease), background .28s;
}
.quote-progress-dot.is-active { width: 25px; background: var(--quote-ink); }
.quote-progress-dot.is-done { background: #8c97a7; }
.quote-stage { width: 100%; margin: 0 auto; }
.quote-stage--enter { animation: quote-page-in .28s var(--quote-ease) both; }
.quote-stage[data-direction="back"],
.quote-stage--enter[data-direction="back"] { --quote-slide: -16px; }
.quote-title {
  max-width: 760px;
  margin: 0 auto 34px;
  color: var(--quote-ink);
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.055em;
  text-align: center;
  text-wrap: balance;
}
.quote-title:focus { outline: 0; }
.quote-kicker { margin: -15px auto 23px; color: var(--quote-muted); font-size: 12px; font-weight: 500; line-height: 1.5; text-align: center; }
.quote-stage:is([data-step="event"], [data-step="details"]) { max-width: 660px; }
.quote-stage[data-step="extras"] { max-width: 700px; }
.quote-stage[data-step="login"] { max-width: 420px; }
.quote-stage[data-step="quote"] { max-width: 510px; }

.quote-event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quote-event-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 164px;
  padding: 12px;
  border: 1px solid var(--quote-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 2px 6px #0c1a3302;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .24s var(--quote-ease);
}
.quote-event-art { position: relative; display: block; width: 96px; height: 96px; pointer-events: none; }
.quote-event-card[aria-pressed="true"] { border-color: var(--quote-ink); background: #f1f3f6; box-shadow: inset 0 0 0 1px var(--quote-ink); }
.quote-other-reveal { display: grid; grid-template-rows: 1fr; opacity: 1; transform: none; animation: quote-other-reveal-in .26s var(--quote-ease) both; }
.quote-other-reveal > div { min-height: 0; margin: -6px; padding: 6px; overflow: hidden; }
.quote-event-form .quote-other-event { width: min(100%, 480px); margin: 22px auto 0; text-align: left; }
.quote-event-form .quote-event-actions { width: min(100%, 220px); margin-top: 24px; }
.quote-event-actions .quote-next { width: 100%; }

.quote-extras-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; max-width: 470px; margin: 0 auto; }
.quote-extra-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  min-height: 181px;
  padding: 27px 15px 23px;
  border: 1px solid var(--quote-line);
  border-radius: 18px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.quote-extra-card > svg { width: 35px; height: 35px; stroke-width: 1.4; }
.quote-extra-card > img { width: 56px; height: 56px; object-fit: contain; }
.quote-extra-card :is(h2, h3, strong) { margin: 0; font-size: inherit; font-weight: 600; }
.quote-extra-card small { margin-top: -9px; color: var(--quote-muted); font-size: 11px; font-weight: 500; }
.quote-extra-card[aria-pressed="true"] { border-color: var(--quote-ink); background: #f1f3f6; box-shadow: inset 0 0 0 1px var(--quote-ink); }
.quote-extra-check { position: absolute; top: 11px; right: 11px; display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid #d4d9e0; border-radius: 50%; background: #fff; color: transparent; }
.quote-extra-check svg { width: 11px; height: 11px; }
.quote-extra-card[aria-pressed="true"] .quote-extra-check { border-color: var(--quote-ink); background: var(--quote-ink); color: #fff; }

.quote-actions { display: flex; align-items: center; justify-content: center; gap: 12px; width: min(100%, 410px); margin: 32px auto 0; }
.quote-button,
.quote-next,
.quote-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 49px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  transition: color .18s, background .18s, border-color .18s, box-shadow .18s;
}
.quote-button,
.quote-next,
.quote-back,
.quote-summary > .quote-button {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.quote-next,
.quote-button.primary { border-color: var(--quote-ink); background: var(--quote-ink); color: #fff; }
.quote-next { min-width: 170px; }
.quote-next:hover:not(:disabled),
.quote-button.primary:hover:not(:disabled) { border-color: #243858; background: #243858; box-shadow: 0 4px 12px #0c1a3312; }
.quote-back,
.quote-button.secondary { border-color: #dadde1; background: transparent; color: var(--quote-ink); }
.quote-back { min-width: 82px; padding-inline: 19px; }
.quote-back:hover:not(:disabled),
.quote-button.secondary:hover:not(:disabled) { border-color: #aab3c0; background: #f3f4f4; }
.quote-actions svg,
.quote-button svg { width: 16px; height: 16px; flex: none; }
.quote-status,
.quote-error { max-width: 460px; margin: 18px auto 0; font-size: 12px; line-height: 1.6; text-align: center; overflow-wrap: anywhere; }
.quote-status { color: var(--quote-muted); }
.quote-status:empty,
.quote-error:empty { margin: 0; }
.quote-error { color: #9d3545; }
.quote-error a { text-underline-offset: 3px; }

.quote-contact-form { display: grid; gap: 17px; }
.quote-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; }
.quote-field label,
label.quote-field { color: #394355; font-size: 12px; font-weight: 600; line-height: 1.4; }
.quote-optional { color: #9ba1aa; font-weight: 400; }
.quote-field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #dcdee2;
  border-radius: 11px;
  background: #fff;
  color: var(--quote-ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color .18s;
}
.quote-field select[name="durationMinutes"] {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1a33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-size: 18px;
  background-repeat: no-repeat;
}
@media (forced-colors: active) {
  .quote-field select[name="durationMinutes"] { appearance: auto; background-image: none; }
}
.quote-field :is(input, textarea)::placeholder { color: #a0a5ad; }
.quote-field :is(input, select, textarea):focus { border-color: #8d9bb0; }
.quote-field input[aria-invalid="true"] { border-color: #b96570; }
.quote-field input:is([type="date"], [type="time"]) { appearance: none; -webkit-appearance: none; min-height: 48px; }
.quote-field input[type="date"]::-webkit-date-and-time-value,
.quote-field input[type="time"]::-webkit-date-and-time-value { text-align: left; }
.quote-contact-form > .quote-button { width: 100%; margin-top: 3px; }
.quote-details-form { display: grid; gap: 17px; width: min(100%, 420px); margin: 0 auto; }
.quote-details-form .quote-actions { margin-top: 10px; }
.quote-details-form textarea { resize: vertical; }
.quote-no-event { display: flex; align-items: center; gap: 9px; width: fit-content; min-height: 32px; color: #394355; font-size: 14px; cursor: pointer; }
.quote-no-event input { width: 17px; height: 17px; margin: 0; accent-color: var(--quote-ink); flex: none; }
.quote-schedule-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.quote-schedule-fields :disabled { background-color: #f4f5f6; color: #6e7683; }

.quote-summary { padding: 26px 28px; border: 1px solid var(--quote-line); border-radius: 22px; background: #fff; box-shadow: 0 6px 24px #0c1a3304; }
.quote-summary-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 15px; color: var(--quote-ink); font-size: 13px; font-weight: 600; }
.quote-summary-heading .quote-duration { display: inline-flex; flex: none; margin: 0; }
.quote-summary-robots { display: grid; gap: 3px; padding: 0 0 12px; }
.quote-summary-robots .quote-summary-line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 7px 0; }
.quote-summary-robots img { display: block; width: 52px; height: 64px; object-fit: contain; }
.quote-summary-robots .quote-summary-line > span { color: var(--quote-ink); font-weight: 500; }
.quote-summary-line strong { max-width: 140px; }
.quote-summary-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 8px 0; color: #727a85; font-size: 12px; line-height: 1.5; }
.quote-summary-line > :last-child { color: var(--quote-ink); text-align: right; }
.quote-summary-line strong { font-weight: 600; }
.quote-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 23px; border-top: 1px solid var(--quote-line); color: var(--quote-ink); font-size: 14px; font-weight: 600; line-height: 1.4; }
.quote-total strong { font-size: clamp(24px, 3.7vw, 32px); font-weight: 600; letter-spacing: -.055em; text-align: right; }
.quote-duration { display: table; margin: -19px auto 24px; padding: 5px 10px; border: 1px solid #e6e8eb; border-radius: 999px; background: #f5f6f7; color: #737e8e; font-size: 10px; font-weight: 500; line-height: 1.4; }
.quote-note { margin: 16px auto 0; color: #858c96; font-size: 11px; font-weight: 400; line-height: 1.6; text-align: center; text-wrap: pretty; }
.quote-summary .quote-note { text-align: left; }
.quote-event-summary { margin: 15px 0 0; color: #87909e; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.quote-email-status { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--quote-surface); color: var(--quote-ink); font-size: 13px; line-height: 1.5; }
.quote-email-status strong { font-weight: 600; }
.quote-email-status p { margin: 4px 0 0; color: #4c5768; text-wrap: pretty; }
.quote-summary > .quote-button { display: flex; width: 100%; margin-top: 23px; }
.quote-editor-fields,
.quote-editor-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.quote-editor-fields { display: grid; gap: 20px; }
.quote-editor-group legend { margin-bottom: 4px; padding: 0; color: var(--quote-ink); font-size: 13px; font-weight: 700; }
.quote-editor-robot,
.quote-editor-extra { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.quote-editor-robot { justify-content: space-between; min-height: 48px; }
.quote-editor-robot select { width: 66px; min-height: 40px; padding: 6px 9px; }
.quote-editor-extra { min-height: 44px; color: var(--quote-ink); font-size: 13px; cursor: pointer; }
.quote-editor-extra input { width: 16px; height: 16px; flex: none; margin: 0; accent-color: var(--quote-ink); }
.quote-editor-extra small { margin-inline-start: auto; color: var(--quote-muted); text-align: right; }
.quote-editor-extra:has(input:disabled) { opacity: .5; cursor: default; }
.quote-editor-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.quote-editor-actions .quote-button { min-width: 0; padding-inline: 12px; }
.quote-editor-details { justify-self: center; min-height: 44px; padding: 0 8px; border: 0; background: none; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.quote-success { padding: 18px 0; color: var(--quote-ink); text-align: center; }
.quote-success > svg { width: 52px; height: 52px; margin: 0 auto 20px; }
.quote-success h2 { margin: 0 0 12px; font-size: 25px; font-weight: 600; letter-spacing: -.045em; }
.quote-success p { margin: 0 0 22px; color: var(--quote-muted); font-size: 13px; line-height: 1.6; }
.quote-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 220px; color: var(--quote-muted); font-size: 13px; }
.quote-loading::before { content: ""; width: 17px; height: 17px; flex: none; border: 1.5px solid #dde1e7; border-top-color: var(--quote-ink); border-radius: 50%; animation: quote-spin .75s linear infinite; }

@media (hover: hover) and (pointer: fine) {
  .quote-event-card:hover { border-color: #a4afbd; transform: translateY(-2px); box-shadow: 0 6px 16px #0c1a3305; }
  .quote-extra-card:hover { border-color: #a4afbd; background: #f8f9f9; }
  .quote-extra-card[aria-pressed="true"]:hover { background: #edf0f4; }
}

@keyframes quote-page-in { from { opacity: 0; transform: translateX(var(--quote-slide, 16px)); } to { opacity: 1; transform: none; } }
@keyframes quote-other-reveal-in { from { grid-template-rows: 0fr; opacity: 0; transform: translateY(-6px); } to { grid-template-rows: 1fr; opacity: 1; transform: none; } }
@keyframes quote-mobile-event-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes quote-spin { to { transform: rotate(360deg); } }

@media (min-width: 701px) and (max-height: 780px) {
  .quote-app:has(.quote-stage[data-step="event"]) { padding-top: 12px; }
  .quote-app:has(.quote-stage[data-step="event"]) .quote-progress { margin-bottom: 24px; }
  .quote-stage[data-step="event"] .quote-title { margin-bottom: 24px; font-size: 40px; }
  .quote-stage[data-step="event"] .quote-event-actions { margin-top: 18px; }
  .quote-app:has(.quote-stage[data-step="robots"]) .quote-progress { margin-bottom: 30px; }
  .quote-stage[data-step="robots"] .quote-title { margin-bottom: 24px; }
  .quote-stage[data-step="robots"] .quote-actions { margin-top: 24px; }
}

@media (max-width: 700px) {
  .quote-header { min-height: 76px; padding: 20px 23px; }
  .quote-logo img { width: 96px; }
  .quote-app { padding: 19px 22px 52px; }
  .quote-stage[data-step="event"].quote-stage--enter { animation-name: quote-mobile-event-in; }
  .quote-event-form .quote-event-actions { display: none; }
  .quote-event-form.has-event-selection { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  .quote-event-form.has-event-selection .quote-event-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: flex;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 14px max(18px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
    border-top: 1px solid #e8eaee;
    background: #fffffff7;
    box-shadow: 0 -6px 24px #0c1a3304;
    backdrop-filter: blur(12px);
  }
  .quote-event-form.has-event-selection .quote-event-actions .quote-next { flex: 1; width: 100%; min-width: 0; max-width: none; min-height: 50px; }
  .quote-progress { margin-bottom: 34px; }
  .quote-title { margin-bottom: 28px; font-size: 34px; }
}

@media (max-width: 520px) {
  .quote-header { min-height: 70px; padding: 16px 18px; }
  .quote-logo img { width: 89px; }
  .quote-exit { min-height: 36px; padding-inline: 9px; font-size: 11px; }
  .quote-app { padding: 22px 18px 40px; }
  .quote-progress { gap: 7px; margin-bottom: 31px; }
  .quote-title { font-size: 31px; line-height: 1.15; }
  .quote-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .quote-event-card { min-height: 146px; padding: 12px 10px; gap: 8px; border-radius: 15px; font-size: 12px; }
  .quote-event-art { width: 84px; height: 84px; }
  .quote-event-form .quote-other-event { margin-top: 20px; }
  .quote-extras-grid { grid-template-columns: 1fr; gap: 10px; max-width: 350px; margin: 0 auto; }
  .quote-extra-card { min-height: 113px; gap: 9px; padding: 18px 38px; border-radius: 15px; }
  .quote-extra-card > svg { width: 28px; height: 28px; }
  .quote-extra-card > img { width: 43px; height: 43px; }
  .quote-extra-card small { margin-top: -4px; }
  .quote-actions { gap: 10px; margin-top: 27px; }
  .quote-next { flex: 1; min-width: 0; max-width: 250px; }
  .quote-button, .quote-next, .quote-back { min-height: 48px; }
  .quote-contact-form { gap: 16px; }
  .quote-field :is(input, select, textarea) { font-size: 16px; }
  .quote-summary { padding: 22px 20px; border-radius: 18px; }
  .quote-summary-robots .quote-summary-line { gap: 10px; }
  .quote-summary-line { font-size: 11px; }
  .quote-total { padding-top: 20px; }
  .quote-duration { margin-top: -14px; }
}

@media (max-width: 359px) {
  .quote-app { padding-inline: 15px; }
  .quote-header { padding-inline: 15px; }
  .quote-title { font-size: 28px; }
  .quote-schedule-fields { grid-template-columns: 1fr; }
  .quote-summary { padding-inline: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .quote-page *, .quote-page *::before, .quote-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .quote-stage { opacity: 1; transform: none; }
}
