@charset "UTF-8";

/* Quote request page */
.quote-hero {
  padding: 64px 0 40px;
}

.quote-hero h1 {
  max-width: 820px;
  margin: 18px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.08;
}

.quote-hero h1 span {
  color: #4f9fc4;
}

.quote-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.quote-body {
  padding: 0 0 96px;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 40px;
}

.quote-form {
  min-width: 0;
  padding: 36px 40px 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 30px 60px -40px rgba(23, 63, 85, .35);
}

.quote-steps {
  display: flex;
  gap: 8px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.quote-steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--line);
  color: #8aa0ab;
  font-size: 13px;
  font-weight: 700;
  transition: color .2s ease, border-color .2s ease;
}

.quote-steps li span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--brand);
  font-size: 12px;
}

.quote-steps li.is-current {
  border-color: var(--brand);
  color: var(--ink);
}

.quote-steps li.is-current span {
  background: var(--brand);
  color: var(--white);
}

.quote-steps li.is-done {
  border-color: var(--accent);
  color: var(--brand);
  cursor: pointer;
}

.quote-steps li.is-done span {
  background: var(--accent);
  font-size: 0;
}

.quote-steps li.is-done span::before {
  content: "\2713";
  font-size: 13px;
}

.quote-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  animation: step-in .35s ease;
}

@keyframes step-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}

.step-title {
  margin: 0 0 6px;
  padding: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.step-title:focus {
  outline: none;
}

.step-help {
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 14px;
}

/* Service picker */
.service-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-option {
  position: relative;
  cursor: pointer;
}

.service-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-option-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px 18px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.service-option-card::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border: 1.5px solid #b9cdd7;
  border-radius: 50%;
  background: var(--white) no-repeat center / 12px;
  transition: background-color .2s ease, border-color .2s ease;
}

.service-option-card svg {
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-option-card strong {
  padding-right: 18px;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.3;
}

.service-option-card small {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.45;
}

.service-option:hover .service-option-card {
  border-color: #9cc4d6;
  transform: translateY(-2px);
}

.service-option input:focus-visible + .service-option-card {
  outline: 3px solid #65a9c9;
  outline-offset: 3px;
}

.service-option input:checked + .service-option-card {
  border-color: var(--brand);
  background: #eaf5fb;
  box-shadow: 0 14px 30px -22px rgba(30, 82, 107, .8);
}

.service-option input:checked + .service-option-card::after {
  border-color: var(--brand);
  background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.service-option-featured .service-option-card {
  background: linear-gradient(160deg, #e3f2fa, var(--paper) 60%);
}

/* Detail blocks */
.detail-block {
  margin: 0 0 22px;
  padding: 24px 24px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  animation: step-in .3s ease;
}

.detail-featured {
  border-color: #9cc4d6;
  background: linear-gradient(180deg, #f0f8fc, var(--white) 140px);
}

.detail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.detail-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.detail-help {
  margin: -8px 0 18px;
  color: var(--ink-soft);
  font-size: 13.5px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  min-width: 0;
}

.field[hidden] {
  display: none;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}

.field-row > .field {
  flex: 1 1 160px;
}

.field-row > .field-grow {
  flex: 2 1 240px;
}

.field-row > .field-short {
  flex: 0 1 130px;
}

.field-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid #cfdfe7;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}

.field select {
  appearance: none;
  padding-right: 40px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%231e526b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aafba;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 4px rgba(151, 211, 239, .45);
}

.field [aria-invalid="true"] {
  border-color: #d9534f;
}

.field-error {
  margin: 0;
  color: #c0392b;
  font-size: 12.5px;
  font-weight: 600;
}

.service-picker + .field-error {
  margin-top: 12px;
}

/* Chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1.5px solid #cfdfe7;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.chip-check span::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid #9fb7c3;
  border-radius: 4px;
  background: no-repeat center / 10px;
  transition: background-color .15s ease, border-color .15s ease;
}

.chip:hover span {
  border-color: #9cc4d6;
}

.chip input:focus-visible + span {
  outline: 3px solid #65a9c9;
  outline-offset: 2px;
}

.chip input:checked + span {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
}

.chip-check input:checked + span::before {
  border-color: var(--white);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5' fill='none' stroke='%231e526b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.chip-brand span {
  border-color: #9cc4d6;
  background: #eaf5fb;
  font-weight: 700;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.check-line input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--brand);
}

.privacy-note {
  margin: 0;
  padding: 16px 18px;
  border-radius: 6px;
  background: var(--paper);
  font-size: 13px;
  line-height: 1.6;
}

.privacy-note a {
  font-weight: 600;
  color: inherit;
}

/* Photos */
.photo-drop {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 16px;
  padding: 18px 20px;
  border: 1.5px dashed #9cc4d6;
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.photo-drop:hover,
.photo-drop:focus-within {
  border-color: var(--brand);
  background: #eaf5fb;
}

.photo-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-drop svg {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-drop span {
  font-size: 14px;
}

.photo-drop small {
  color: var(--ink-soft);
  font-size: 12px;
}

.photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.photo-list li {
  position: relative;
  width: 110px;
}

.photo-list img {
  display: block;
  width: 110px;
  height: 82px;
  border-radius: 6px;
  object-fit: cover;
}

.photo-list span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-list button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 63, 85, .85);
  color: var(--white);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

/* Actions */
.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.quote-form .button {
  border: 1px solid var(--brand);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.button-ghost {
  border-color: var(--line) !important;
  background: transparent;
  color: var(--brand);
}

.button-ghost:hover {
  background: var(--paper);
  color: var(--brand);
}

.button-send.is-loading {
  opacity: .7;
  cursor: progress;
}

.form-status {
  margin: 0 0 8px;
  padding: 14px 16px;
  border-left: 3px solid #d9534f;
  border-radius: 4px;
  background: #fdf0ef;
  color: #8a2a24;
  font-size: 14px;
  line-height: 1.55;
}

.form-status a {
  font-weight: 700;
  text-decoration: underline;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Success */
.quote-success {
  padding: 30px 0 10px;
  text-align: center;
}

.quote-success:focus {
  outline: none;
}

.success-mark {
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
  stroke: #3f8f53;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-mark circle {
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  animation: draw-mark .7s ease forwards;
}

.success-mark path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw-mark .45s .55s ease forwards;
}

@keyframes draw-mark {
  to { stroke-dashoffset: 0; }
}

.quote-success h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -.03em;
}

.quote-success p {
  max-width: 480px;
  margin: 0 auto 26px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.quote-success p a {
  color: var(--brand);
  font-weight: 700;
}

/* Aside */
.quote-aside {
  min-width: 0;
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}

.summary-card,
.aside-card {
  padding: 26px 26px 22px;
  border-radius: 8px;
}

.summary-card {
  border: 1px solid var(--line);
  background: var(--white);
}

.summary-kicker {
  color: #5d7480;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.summary-services {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.summary-services li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  font-weight: 700;
  animation: step-in .25s ease;
}

.summary-services li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.summary-services .summary-empty {
  padding-left: 0;
  color: #8aa0ab;
  font-weight: 500;
}

.summary-services .summary-empty::before {
  content: none;
}

.summary-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0;
  font-size: 13px;
}

.summary-facts:not(:empty) {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.summary-facts dt {
  color: var(--ink-soft);
}

.summary-facts dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.aside-card {
  background: var(--brand-deep);
  color: var(--white);
}

.aside-card strong {
  font-family: var(--font-display);
  font-size: 17px;
}

.aside-card p {
  margin: 8px 0 14px;
  color: #c5dce7;
  font-size: 13.5px;
  line-height: 1.55;
}

.aside-phone {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.aside-phone-small {
  margin-top: 2px;
  color: #c5dce7;
  font-size: 15px;
}

.aside-card .aside-hours {
  margin: 12px 0 6px;
  font-size: 12.5px;
}

.aside-mail {
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
}

@media (max-width: 1000px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .quote-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .quote-hero {
    padding: 40px 0 28px;
  }

  .quote-form {
    padding: 24px 18px 26px;
  }

  .quote-steps li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 11.5px;
  }

  .service-picker {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .service-option-card {
    padding: 16px 14px 14px;
  }

  .service-option-card small {
    display: none;
  }

  .detail-block {
    padding: 20px 16px 4px;
  }

  .step-title {
    font-size: 24px;
  }

  .step-actions .button {
    padding: 0 18px;
  }

  .quote-aside {
    grid-template-columns: 1fr;
  }
}

/* Privacy policy page */
.legal {
  padding: 0 0 96px;
}

.legal-body {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.legal-body > * {
  max-width: 820px;
}

.legal-body > h2:first-child {
  margin-top: 8px;
}

.legal-body h2 {
  margin: 44px 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.legal-body h3 {
  margin: 22px 0 6px;
  color: var(--ink);
  font-size: 16px;
}

.legal-body p,
.legal-body ul {
  margin: 0 0 14px;
}

.legal-body ul {
  padding-left: 22px;
}

.legal-body a {
  color: #1e526b;
  font-weight: 600;
}

.legal-table {
  width: 100%;
  margin: 8px 0 18px;
  border-collapse: collapse;
  font-size: 15px;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #dce7ed;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .legal-table th,
  .legal-table td {
    padding: 10px 8px;
    font-size: 14px;
  }
}
