:root {
  --qg-navy: #002e49;
  --qg-navy-deep: #001f32;
  --qg-sand: #f9bf8f;
  --qg-red: #d62828;
  --qg-white: #ffffff;
  --qg-ink: #102f41;
  --qg-copy: #526873;
  --qg-line: #d7e1e6;
  --qg-soft: #f4f7f8;
  --qg-success: #22613c;
  --qg-shadow: 0 18px 48px rgba(0, 46, 73, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--qg-white);
  color: var(--qg-ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.qg-page {
  min-width: 0;
  overflow: clip;
  padding-top: 194px;
  background: var(--qg-white);
}

.qg-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.qg-kicker {
  margin: 0 0 14px;
  color: var(--qg-red);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.qg-intro {
  position: relative;
  overflow: hidden;
  background: var(--qg-navy);
  color: var(--qg-white);
}

.qg-intro::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.14;
  background-image:
    radial-gradient(circle at 18% 115%, transparent 0 155px, var(--qg-sand) 156px 157px, transparent 158px),
    radial-gradient(circle at 18% 115%, transparent 0 215px, var(--qg-sand) 216px 217px, transparent 218px),
    radial-gradient(circle at 92% -15%, transparent 0 180px, var(--qg-sand) 181px 182px, transparent 183px);
}

.qg-intro-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 72px;
  align-items: end;
  padding-block: 58px 52px;
}

.qg-intro .qg-kicker {
  color: var(--qg-sand);
}

.qg-intro h1 {
  max-width: 760px;
  margin: 0;
  color: var(--qg-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5vw, 4.7rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.qg-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.7;
}

.qg-intro-help {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 24px;
}

.qg-intro-help p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.5;
}

.qg-text-link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: 9px;
  color: var(--qg-white);
  font-size: 0.9rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

.qg-text-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
}

.qg-text-link:hover,
.qg-text-link:focus-visible {
  color: var(--qg-sand);
}

.qg-process {
  border-bottom: 1px solid var(--qg-line);
  background: var(--qg-white);
}

.qg-process ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: 0;
  padding-block: 0;
  list-style: none;
}

.qg-process li {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 1px solid var(--qg-line);
  padding: 12px 20px;
  color: #6a7e87;
}

.qg-process li:first-child {
  border-left: 0;
}

.qg-process li.is-current {
  color: var(--qg-navy);
}

.qg-process-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--qg-line);
  border-radius: 9px;
  background: var(--qg-soft);
}

.qg-process-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qg-process li.is-current .qg-process-icon {
  border-color: rgba(214, 40, 40, 0.2);
  background: rgba(214, 40, 40, 0.08);
  color: var(--qg-red);
}

.qg-process-copy {
  min-width: 0;
}

.qg-process-copy small {
  display: block;
  margin-bottom: 3px;
  color: #8a9ba3;
  font-size: 0.61rem;
  font-weight: 800;
  text-transform: uppercase;
}

.qg-process strong {
  font-size: 0.78rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.qg-builder {
  background: var(--qg-soft);
  padding-block: 64px 84px;
}

.qg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 32px;
  align-items: start;
}

.qg-form {
  scroll-margin-top: 210px;
  border: 1px solid var(--qg-line);
  background: var(--qg-white);
  box-shadow: 0 8px 28px rgba(0, 46, 73, 0.06);
}

.qg-form-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 34px;
  border-bottom: 1px solid var(--qg-line);
}

.qg-form-heading h2,
.qg-policy h2,
.qg-confirmation h2 {
  margin: 0;
  color: var(--qg-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.qg-form-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.1;
}

.qg-form-heading > p {
  flex: 0 0 auto;
  margin: 0;
  color: #71838c;
  font-size: 0.75rem;
}

.qg-form-heading > p span {
  color: var(--qg-red);
}

.qg-alert {
  margin: 24px 34px 0;
  border-left: 3px solid var(--qg-red);
  padding: 12px 14px;
  background: #fff2f2;
  color: #8c2020;
  font-size: 0.9rem;
  line-height: 1.5;
}

.qg-form-section {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 22px;
  border-bottom: 1px solid var(--qg-line);
  padding: 34px;
}

.qg-form-section:last-child {
  border-bottom: 0;
}

.qg-section-icon {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 40, 40, 0.18);
  border-radius: 10px;
  background: rgba(249, 191, 143, 0.18);
  color: var(--qg-red);
}

.qg-section-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qg-section-icon span {
  position: absolute;
  right: -5px;
  bottom: -5px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--qg-red);
  color: var(--qg-white);
  font-size: 0.55rem;
  font-weight: 900;
}

.qg-section-heading {
  margin-bottom: 24px;
}

.qg-section-heading h3 {
  margin: 0;
  color: var(--qg-navy);
  font-size: 1.18rem;
  line-height: 1.3;
}

.qg-section-heading p {
  margin: 8px 0 0;
  color: var(--qg-copy);
  font-size: 0.9rem;
  line-height: 1.6;
}

.qg-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.qg-field-grid-four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qg-field {
  display: block;
  min-width: 0;
}

.qg-field-wide {
  grid-column: 1 / -1;
}

.qg-field > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--qg-navy);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.4;
}

.qg-field em {
  color: var(--qg-red);
  font-style: normal;
}

.qg-field small {
  color: #81919a;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.qg-field input,
.qg-field select,
.qg-field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #bdccd3;
  border-radius: 7px;
  padding: 12px 13px;
  background: var(--qg-white);
  color: var(--qg-navy);
  font-size: 0.96rem;
  line-height: 1.4;
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
}

.qg-field textarea {
  min-height: 126px;
  resize: vertical;
}

.qg-field input:hover,
.qg-field select:hover,
.qg-field textarea:hover {
  border-color: #8ea4ae;
}

.qg-field input:focus,
.qg-field select:focus,
.qg-field textarea:focus {
  outline: none;
  border-color: var(--qg-navy);
  box-shadow: 0 0 0 3px rgba(249, 191, 143, 0.42);
}

.qg-field input[aria-invalid="true"],
.qg-field select[aria-invalid="true"] {
  border-color: var(--qg-red);
  background: #fff8f8;
}

.qg-field select:disabled {
  cursor: not-allowed;
  background: #edf2f4;
  color: #71838c;
}

.qg-child-ages:not(:empty) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  border-top: 1px solid var(--qg-line);
  padding-top: 18px;
}

.qg-tour-preview {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  border-top: 1px solid var(--qg-line);
  padding-top: 20px;
}

.qg-tour-preview[hidden] {
  display: none;
}

.qg-tour-preview img {
  width: 124px;
  height: 82px;
  object-fit: cover;
  border-radius: 5px;
  background: var(--qg-soft);
}

.qg-tour-preview span {
  display: block;
  color: var(--qg-red);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.qg-tour-preview strong {
  display: block;
  margin-top: 5px;
  color: var(--qg-navy);
  font-size: 1rem;
  line-height: 1.35;
}

.qg-tour-preview p {
  margin: 6px 0 0;
  color: var(--qg-copy);
  font-size: 0.82rem;
  line-height: 1.45;
}

.qg-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.qg-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid var(--qg-line);
  padding-top: 22px;
  color: var(--qg-copy);
  font-size: 0.84rem;
  line-height: 1.6;
}

.qg-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--qg-red);
}

.qg-consent a {
  color: var(--qg-navy);
  font-weight: 800;
  text-underline-offset: 3px;
}

.qg-summary {
  position: sticky;
  top: 210px;
  border-radius: 14px;
  padding: 28px;
  background: var(--qg-navy);
  color: var(--qg-white);
  box-shadow: var(--qg-shadow);
}

.qg-summary-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qg-summary-topline p {
  margin: 0;
  color: var(--qg-sand);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.qg-summary-topline span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 5px 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.65rem;
  font-weight: 800;
}

.qg-summary h2 {
  margin: 20px 0 0;
  color: var(--qg-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.qg-summary-date {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  line-height: 1.55;
}

.qg-estimate {
  margin: 24px 0 0;
  border-block: 1px solid rgba(255, 255, 255, 0.18);
  padding-block: 8px;
}

.qg-estimate > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
}

.qg-estimate dt {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
}

.qg-estimate dd {
  margin: 0;
  text-align: right;
  color: var(--qg-white);
  font-size: 0.8rem;
  font-weight: 800;
}

.qg-estimate > div:nth-child(2) dd {
  color: var(--qg-sand);
  font-size: 1.15rem;
}

.qg-estimate-note {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  line-height: 1.6;
}

.qg-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--qg-red);
  color: var(--qg-white);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease-out, transform 180ms ease-out;
}

.qg-submit:hover:not(:disabled) {
  background: #b91f1f;
  transform: translateY(-1px);
}

.qg-submit:focus-visible,
.qg-button:focus-visible,
.qg-summary-help:focus-visible,
.qg-text-link:focus-visible {
  outline: 3px solid var(--qg-sand);
  outline-offset: 3px;
}

.qg-submit:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.qg-summary-help {
  display: block;
  width: fit-content;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.qg-policy {
  padding-block: 90px;
  background: var(--qg-white);
}

.qg-policy-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 72px;
  align-items: end;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--qg-line);
}

.qg-policy h2 {
  max-width: 690px;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.03;
}

.qg-policy-heading > p {
  margin: 0;
  color: var(--qg-copy);
  font-size: 1rem;
  line-height: 1.75;
}

.qg-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--qg-line);
}

.qg-policy-grid article {
  position: relative;
  min-height: 230px;
  padding: 34px 32px 34px 82px;
  border-left: 1px solid var(--qg-line);
}

.qg-policy-grid article:first-child {
  border-left: 0;
}

.qg-policy-icon {
  position: absolute;
  top: 35px;
  left: 28px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 40, 40, 0.2);
  border-radius: 9px;
  background: rgba(249, 191, 143, 0.18);
  color: var(--qg-red);
}

.qg-policy-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qg-policy-grid small {
  color: var(--qg-red);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.qg-policy-grid h3 {
  margin: 12px 0 0;
  color: var(--qg-navy);
  font-size: 1.12rem;
  line-height: 1.3;
}

.qg-policy-grid p {
  margin: 12px 0 0;
  color: var(--qg-copy);
  font-size: 0.88rem;
  line-height: 1.65;
}

.qg-policy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.qg-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.qg-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--qg-navy);
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease-out, color 180ms ease-out, transform 180ms ease-out;
}

.qg-button:hover {
  transform: translateY(-1px);
}

.qg-button-primary {
  border-color: var(--qg-red);
  background: var(--qg-red);
  color: var(--qg-white);
}

.qg-button-secondary {
  background: var(--qg-white);
  color: var(--qg-navy);
}

.qg-confirmation {
  padding-block: 70px;
  background: var(--qg-soft);
}

.qg-confirmation-panel {
  max-width: 820px;
  margin-inline: auto;
  border: 1px solid var(--qg-line);
  padding: 42px;
  background: var(--qg-white);
  text-align: center;
  box-shadow: var(--qg-shadow);
}

.qg-confirmation-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--qg-success);
  color: var(--qg-white);
  font-size: 1.5rem;
  font-weight: 900;
}

.qg-confirmation h2 {
  font-size: 2.4rem;
}

.qg-confirmation-panel > p:not(.qg-kicker) {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--qg-copy);
  line-height: 1.65;
}

.qg-confirmation dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0 0;
  border-block: 1px solid var(--qg-line);
}

.qg-confirmation dl div {
  padding: 20px;
  border-left: 1px solid var(--qg-line);
}

.qg-confirmation dl div:first-child {
  border-left: 0;
}

.qg-confirmation dt {
  color: var(--qg-copy);
  font-size: 0.74rem;
}

.qg-confirmation dd {
  margin: 7px 0 0;
  color: var(--qg-navy);
  font-size: 1rem;
  font-weight: 900;
}

.qg-confirmation-note {
  font-size: 0.78rem;
}

.qg-noscript {
  margin: 0;
  padding: 16px;
  background: #fff2f2;
  color: #8c2020;
  text-align: center;
}

@media (max-width: 980px) {
  .qg-intro-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .qg-intro-help {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    align-items: center;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding: 20px 0 0;
  }

  .qg-intro-help p,
  .qg-text-link {
    margin: 0;
  }

  .qg-layout {
    grid-template-columns: 1fr;
  }

  .qg-summary {
    position: static;
    max-width: none;
  }

  .qg-policy-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .qg-policy-grid article {
    padding-inline: 72px 22px;
  }

  .qg-policy-icon {
    left: 20px;
  }
}

@media (max-width: 1100px) {
  .qg-page {
    padding-top: 0;
  }

  .qg-form {
    scroll-margin-top: 24px;
  }

  .qg-summary {
    top: 24px;
  }
}

@media (max-width: 760px) {
  .qg-shell {
    width: min(100% - 28px, 1180px);
  }

  .qg-intro-grid {
    padding-block: 42px 38px;
  }

  .qg-intro h1 {
    max-width: 600px;
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .qg-process {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .qg-process ol {
    width: 650px;
  }

  .qg-process li {
    min-height: 62px;
    padding: 9px 14px;
  }

  .qg-builder {
    padding-block: 30px 52px;
  }

  .qg-form-heading {
    align-items: start;
    padding: 24px 20px;
  }

  .qg-form-heading > p {
    display: none;
  }

  .qg-alert {
    margin-inline: 20px;
  }

  .qg-form-section {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 20px;
  }

  .qg-section-icon {
    width: 42px;
    height: 42px;
  }

  .qg-field-grid,
  .qg-field-grid-four {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .qg-field-wide {
    grid-column: auto;
  }

  .qg-child-ages:not(:empty) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qg-summary {
    border-radius: 10px;
    padding: 24px 20px;
  }

  .qg-policy {
    padding-block: 56px;
  }

  .qg-policy-heading {
    grid-template-columns: 1fr;
  }

  .qg-policy-grid {
    grid-template-columns: 1fr;
  }

  .qg-policy-grid article {
    min-height: 0;
    padding: 28px 20px 28px 72px;
    border-left: 0;
    border-top: 1px solid var(--qg-line);
  }

  .qg-policy-grid article:first-child {
    border-top: 0;
  }

  .qg-policy-icon {
    top: 28px;
  }

  .qg-confirmation-panel {
    padding: 30px 20px;
  }

  .qg-confirmation dl {
    grid-template-columns: 1fr;
  }

  .qg-confirmation dl div {
    border-left: 0;
    border-top: 1px solid var(--qg-line);
  }

  .qg-confirmation dl div:first-child {
    border-top: 0;
  }
}

@media (max-width: 430px) {
  .qg-lead {
    font-size: 0.96rem;
  }

  .qg-intro-help {
    display: block;
  }

  .qg-intro-help p {
    margin-bottom: 12px;
  }

  .qg-text-link {
    margin-top: 9px;
  }

  .qg-tour-preview {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .qg-tour-preview img {
    width: 88px;
    height: 76px;
  }

  .qg-contact-actions {
    display: grid;
  }

  .qg-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
