/* Homepage request form and contact verification UI. */

.quick-request-fallback[hidden],
.site-intake-modal[hidden],
.site-intake-modal__code[hidden] {
  display: none !important;
}

.quick-request-fallback {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(166, 56, 56, 0.18);
  border-radius: 14px;
  background: rgba(166, 56, 56, 0.055);
  color: #6d3030;
  font-size: 13px;
  line-height: 1.45;
}

.quick-request-fallback a {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: #08784d;
  color: #fff;
  font-weight: 800;
}

.quick-request-card--redesigned {
  min-width: 0;
  max-width: 100%;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(16, 26, 20, 0.12);
}

.quick-request-card--redesigned .quick-request-form,
.quick-request-card--redesigned .quick-upload-field,
.quick-request-card--redesigned .quick-file-box,
.quick-request-card--redesigned .quick-file-drop,
.quick-request-card--redesigned .quick-field,
.quick-request-card--redesigned .quick-contact,
.quick-request-card--redesigned .quick-contact__body {
  min-width: 0;
  max-width: 100%;
}

.quick-request-card--redesigned .hero-flow-card__top {
  justify-content: flex-start;
  margin-bottom: 10px;
}

.quick-request-card--redesigned .hero-flow-card__tag {
  min-height: 29px;
  padding-inline: 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0;
}

.quick-request-card--redesigned .hero-flow-card__title {
  max-width: none;
  margin-bottom: 4px;
  font-size: 27px;
  line-height: 1.06;
  letter-spacing: -0.038em;
}

.quick-request-card--redesigned .quick-request-intro {
  margin-bottom: 13px;
  color: #717c77;
  font-size: 13px;
  line-height: 1.38;
}

.quick-request-card--redesigned .quick-request-form {
  gap: 10px;
}

.quick-request-card--redesigned .quick-upload-field,
.quick-request-card--redesigned .quick-field,
.quick-request-card--redesigned .quick-contact {
  display: grid;
  gap: 5px;
}

.quick-request-card--redesigned .quick-section-label,
.quick-request-card--redesigned .quick-field > span,
.quick-request-card--redesigned .quick-contact__head > span:first-child {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 820;
  line-height: 1.22;
}

.quick-request-card--redesigned .quick-file-box {
  border-radius: 16px;
}

.quick-request-card--redesigned .quick-file-drop {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 4px 13px;
  min-height: 82px;
  padding: 13px 15px;
  border: 1px dashed rgba(13, 165, 104, 0.46);
  border-radius: 16px;
  background: rgba(232, 247, 239, 0.42);
}

.quick-request-card--redesigned .quick-file-drop > span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  box-shadow: 0 8px 18px rgba(15, 159, 98, 0.1);
}

.quick-request-card--redesigned .quick-file-drop > span::before,
.quick-request-card--redesigned .quick-file-drop > span::after {
  display: none;
}

.quick-request-card--redesigned .quick-file-drop > span svg {
  display: block;
  width: 24px;
  height: 24px;
}

.quick-request-card--redesigned .quick-file-drop strong {
  font-size: 13px;
  line-height: 1.25;
}

.quick-request-card--redesigned .quick-file-drop small {
  color: #7a837f;
  font-size: 11.5px;
  line-height: 1.3;
}

.quick-request-card--redesigned .quick-field textarea {
  min-height: 62px;
  padding: 11px 13px;
  border-radius: 13px;
  resize: none;
}

.quick-request-card--redesigned .quick-contact__head {
  min-height: auto;
}

.quick-request-card--redesigned .quick-contact__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.quick-request-card--redesigned .quick-contact__channels {
  padding: 3px;
  border-radius: 12px;
}

.quick-request-card--redesigned .quick-contact__channels label span {
  min-width: 52px;
  min-height: 38px;
  border-radius: 9px;
  font-size: 14px;
}

.quick-request-card--redesigned .quick-contact__id {
  min-width: 0;
  min-height: 44px;
  padding-inline: 13px;
  border-radius: 13px;
}

.site-intake-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #52675f;
  font-size: 13px;
  line-height: 1.5;
}

.site-intake-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #0da568;
  cursor: pointer;
}

.site-intake-consent label {
  cursor: pointer;
}

.site-intake-consent a {
  color: #08784d;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-intake-consent a:focus-visible {
  outline: 2px solid rgba(13, 165, 104, 0.35);
  outline-offset: 2px;
  border-radius: 2px;
}

.quick-request-card--redesigned .site-intake-consent {
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  color: #5f6c66;
  font-size: 11.5px;
  line-height: 1.34;
}

.quick-request-card--redesigned .site-intake-consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.quick-request-card--redesigned .quick-request-submit {
  min-height: 48px;
  border-radius: 13px;
  font-size: 15px;
  box-shadow: 0 12px 28px rgba(13, 165, 104, 0.18);
}

.quick-request-submit.is-loading {
  cursor: wait;
  opacity: 0.78;
}

.quick-request-submit.is-success {
  background: #08784d;
  cursor: default;
}

.quick-request-card--redesigned .quick-request-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #97a09b;
  font-size: 11px;
  line-height: 1.3;
}

.quick-request-card--redesigned .quick-request-note::before {
  content: "";
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Crect x='3' y='7' width='10' height='7' rx='2' stroke='%2397a09b' stroke-width='1.4'/%3E%3Cpath d='M5 7V5a3 3 0 0 1 6 0v2' stroke='%2397a09b' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: 0.8;
}

.quick-request-note.is-error {
  color: #a63838;
}

.quick-request-note.is-success {
  color: #08784d;
  font-weight: 700;
}

.site-intake-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.site-intake-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 26, 20, 0.64);
}

.site-intake-modal__dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 28px;
  background: #fff;
  padding: 34px;
  box-shadow: 0 28px 90px rgba(3, 32, 22, 0.28);
}

.site-intake-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #eef7f3;
  color: #173c30;
  font-size: 24px;
  cursor: pointer;
}

.site-intake-modal__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  background: #e4f7ef;
  color: #08784d;
  font-size: 28px;
  font-weight: 800;
}

.site-intake-modal__eyebrow {
  margin: 0 0 8px;
  color: #0a8f5b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-intake-modal__title {
  margin: 0 42px 12px 0;
  font-size: clamp(25px, 5vw, 34px);
  line-height: 1.08;
}

.site-intake-modal__text {
  margin: 0;
  color: #4b625a;
  line-height: 1.6;
}

.site-intake-modal__code {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding: 12px 12px 12px 16px;
  border: 1px solid #d9ebe4;
  border-radius: 16px;
  background: #f7fbf9;
}

.site-intake-modal__code strong {
  overflow-wrap: anywhere;
  color: #173c30;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.04em;
}

.site-intake-modal__copy {
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  border-radius: 12px;
  background: #e4f7ef;
  color: #08784d;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.site-intake-modal__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 16px;
  background: #f2f7f5;
  color: #335047;
  font-size: 14px;
}

.site-intake-modal__status::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #0da568;
  box-shadow: 0 0 0 5px rgba(13, 165, 104, 0.12);
}

.site-intake-modal__actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.site-intake-modal__actions .button {
  width: 100%;
  justify-content: center;
}

.site-intake-modal__check {
  min-height: 44px;
  padding: 9px;
  border: 0;
  background: transparent;
  color: #08784d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (min-width: 961px) {
  .hero--premium {
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    min-height: 0;
    padding-block: clamp(12px, 1.7vh, 18px);
  }

  .hero--premium > .container,
  .hero--premium .hero__grid,
  .hero-studio {
    height: 100%;
    min-height: 0;
  }

  .hero--premium .hero__grid {
    grid-template-columns: minmax(0, 0.96fr) minmax(460px, 1.04fr);
    gap: clamp(34px, 2.8vw, 48px);
  }

  .hero--premium .hero__actions .button {
    white-space: nowrap;
  }

  .hero-flow-card.quick-request-card--redesigned {
    width: min(100%, 460px);
    margin-left: 0;
    padding: 19px 18px;
  }
}

@media (min-width: 961px) and (max-height: 760px) {
  .hero-flow-card.quick-request-card--redesigned {
    padding: 17px;
  }

  .quick-request-card--redesigned .hero-flow-card__top {
    margin-bottom: 8px;
  }

  .quick-request-card--redesigned .hero-flow-card__title {
    font-size: 25px;
  }

  .quick-request-card--redesigned .quick-request-intro {
    margin-bottom: 10px;
    font-size: 12.5px;
  }

  .quick-request-card--redesigned .quick-request-form {
    gap: 8px;
  }

  .quick-request-card--redesigned .quick-file-drop {
    min-height: 74px;
    padding-block: 11px;
  }

  .quick-request-card--redesigned .quick-field textarea {
    min-height: 56px;
  }

  .quick-request-card--redesigned .quick-contact__channels label span {
    min-height: 36px;
  }

  .quick-request-card--redesigned .quick-contact__id {
    min-height: 42px;
  }

  .quick-request-card--redesigned .quick-request-submit {
    min-height: 44px;
  }

  .quick-request-card--redesigned .site-intake-consent {
    font-size: 11px;
  }
}

@media (max-width: 960px) {
  .hero--premium {
    height: auto;
    min-height: calc(100svh - var(--header-height));
  }

  .hero--premium .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .hero--premium .hero__content,
  .hero--premium .hero__visual {
    min-width: 0;
  }

  .hero--premium .hero__visual {
    min-height: 0;
  }

  .hero--premium .hero-artifact {
    display: none;
  }

  .hero-flow-card.quick-request-card--redesigned {
    width: min(100%, 560px);
    margin-inline: auto;
    padding: 20px 18px;
    border-radius: 22px;
  }

  .quick-request-card--redesigned .hero-flow-card__title {
    font-size: 26px;
  }
}

@media (max-width: 760px) {
  #services .premium-services-grid .service-card:nth-child(n + 5) {
    display: grid !important;
  }
}

@media (max-width: 560px) {
  .hero-flow-card.quick-request-card--redesigned {
    padding: 18px 16px;
  }

  .quick-request-card--redesigned .hero-flow-card__title {
    font-size: 24px;
  }

  .quick-request-card--redesigned .quick-request-intro {
    margin-bottom: 11px;
  }

  .quick-request-card--redesigned .quick-contact__body {
    grid-template-columns: 1fr;
  }

  .quick-request-card--redesigned .quick-contact__channels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .quick-request-card--redesigned .quick-contact__channels label span {
    width: 100%;
  }

  .quick-request-card--redesigned .quick-file-drop {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px 11px;
    min-height: 76px;
    padding: 11px 12px;
  }

  .quick-request-card--redesigned .quick-file-drop > span {
    width: 38px;
    height: 38px;
  }

  .quick-request-card--redesigned .quick-file-drop > span svg {
    width: 22px;
    height: 22px;
  }

  .quick-request-card--redesigned .site-intake-consent {
    font-size: 11px;
  }

  .quick-request-fallback a {
    width: 100%;
    min-height: 46px;
  }

  .site-intake-modal {
    align-items: end;
    padding: 12px;
  }

  .site-intake-modal__dialog {
    width: 100%;
    max-height: calc(100svh - 24px);
    padding: 28px 22px 24px;
    border-radius: 24px;
  }

  .site-intake-modal__code {
    grid-template-columns: 1fr;
  }

  .site-intake-consent {
    font-size: 13px;
  }
}
