/* Request a Quote page — ported from _dev/site/10 (all classes prefixed .iq-).
   Blue accents from the prototype are mapped to the theme brand tokens. */

/* Shared by the quote page (.iq-page) and the contact form (.iq-contact). */
.iq-page,
.iq-contact {
  --iq-primary: var(--c-primary);
  --iq-primary-dark: var(--c-primary-hover);
  --iq-ink: var(--c-text-strong);
  --iq-muted: var(--c-text-muted);
  --iq-card: #ffffff;
  --iq-border: var(--c-border);
  --iq-radius: var(--radius-lg);
  --iq-radius-sm: var(--radius-sm);
  --iq-shadow: var(--shadow-card);
  padding-bottom: 1rem;
}

.iq-page { background: #f4f7fd; }

.iq-page img { max-width: 100%; display: block; }

.iq-page select.iq-input option { color: var(--iq-ink); }

/* ---------- hero ---------- */

.iq-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #f2f7ff 0%, #eaf1ff 45%, #dcebff 100%);
}

.iq-hero__photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 66%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.iq-hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #f4f7fd 0%, rgba(234, 241, 255, 0.92) 28%, rgba(234, 241, 255, 0.35) 52%, rgba(234, 241, 255, 0) 72%);
}

.iq-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 68px;
  padding-bottom: 170px;
}

.iq-hero__text { max-width: 460px; }

.iq-hero__title {
  margin: 16px 0 0;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 700;
}

.iq-hero__desc {
  margin: 16px 0 0;
  max-width: 400px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--iq-muted);
}

/* ---------- shared bits ---------- */

.iq-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--iq-primary);
}

.iq-eyebrow__line {
  width: 28px;
  height: 2px;
  background: var(--iq-primary);
  flex: none;
}

.iq-section-title {
  margin: 12px 0 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--iq-ink);
}

.iq-section-desc {
  margin: 12px 0 0;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--iq-muted);
}

/* ---------- inquiry type cards ---------- */

.iq-types { padding-top: 76px; }

.iq-types__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 36px;
}

.iq-type-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px;
  border: 1px solid var(--iq-border);
  border-radius: var(--iq-radius);
  background: var(--iq-card);
  box-shadow: var(--iq-shadow);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.iq-type-card:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, 0.1); }

.iq-type-card.is-selected {
  border-color: var(--iq-primary);
  background: #f1f5fb;
}

.iq-type-card__radio {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--c-border-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iq-type-card.is-selected .iq-type-card__radio { border-color: var(--iq-primary); }

.iq-type-card.is-selected .iq-type-card__radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--iq-primary);
}

.iq-type-card__img {
  width: 96px;
  height: 96px;
  flex: none;
  object-fit: cover;
  border-radius: 6px;
}

.iq-type-card__body { display: block; min-width: 0; }

.iq-type-card__icon {
  width: 20px;
  height: 20px;
  color: var(--iq-primary);
}

.iq-type-card__title {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--iq-ink);
}

.iq-type-card__desc {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--iq-muted);
}

/* ---------- forms ---------- */

.iq-forms { padding-top: 32px; }

.iq-forms__grid {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 24px;
  align-items: start;
}

.iq-card {
  border: 1px solid var(--iq-border);
  border-radius: var(--iq-radius);
  background: var(--iq-card);
  box-shadow: var(--iq-shadow);
  padding: 24px;
}

.iq-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--iq-ink);
}

.iq-card__sub {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--iq-muted);
}

/* fields */

.iq-fields { margin-top: 24px; display: grid; gap: 20px; }

.iq-fields--two { grid-template-columns: repeat(2, 1fr); align-items: start; }

.iq-field { display: block; }

.iq-field__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--iq-ink);
}

.iq-req { color: #dc2626; font-style: normal; }

.iq-input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 9px 12px;
  border: 1px solid var(--iq-border);
  border-radius: var(--iq-radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--iq-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.iq-input::placeholder { color: var(--c-text-subtle); }

.iq-input:focus {
  outline: none;
  border-color: var(--iq-primary);
  box-shadow: 0 0 0 3px rgba(8, 54, 105, 0.15);
}

select.iq-input {
  appearance: none;
  -webkit-appearance: none;
  color: var(--c-text-subtle);
  cursor: pointer;
  padding-right: 36px;
}

select.iq-input.filled { color: var(--iq-ink); }

.iq-select { position: relative; display: block; }

.iq-select__chevron {
  position: absolute;
  right: 12px;
  bottom: 11px;
  width: 15px;
  height: 15px;
  color: var(--iq-muted);
  pointer-events: none;
}

.iq-input-wrap { position: relative; display: block; }

.iq-input-wrap__icon {
  position: absolute;
  right: 12px;
  bottom: 11px;
  width: 15px;
  height: 15px;
  color: var(--iq-muted);
  pointer-events: none;
}

.iq-textarea-wrap { position: relative; display: block; }

.iq-textarea { resize: none; padding-bottom: 24px; min-height: 150px; }

.iq-textarea-wrap__count {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 11px;
  color: var(--c-text-subtle);
  pointer-events: none;
}

.iq-phone { display: flex; gap: 8px; }

.iq-select--code { width: 84px; flex: none; }

.iq-select--code .iq-input { margin-top: 6px; padding-right: 28px; color: var(--iq-ink); }

.iq-select--code .iq-select__chevron { right: 8px; }

/* upload */

.iq-upload-block { margin-top: 24px; }

.iq-upload-block__title { margin: 0; font-size: 14px; font-weight: 600; color: var(--iq-ink); }

.iq-upload-block__note {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--iq-muted);
}

.iq-upload {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 16px;
  border: 2px dashed var(--c-border-strong);
  border-radius: var(--iq-radius);
  background: rgba(8, 54, 105, 0.04);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.iq-upload:hover,
.iq-upload:focus-visible,
.iq-upload.is-dragover {
  border-color: var(--iq-primary);
  background: #eef3fa;
  outline: none;
}

.iq-upload__icon { width: 28px; height: 28px; color: var(--iq-primary); }

.iq-upload__text { font-size: 13.5px; color: var(--iq-primary); }

.iq-upload__formats { font-size: 11.5px; color: var(--iq-muted); }

.iq-file-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.iq-file-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--iq-border);
  border-radius: var(--iq-radius-sm);
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
  font-size: 12px;
  color: var(--iq-ink);
}

.iq-file-list svg { width: 15px; height: 15px; flex: none; color: var(--iq-primary); }

/* contact / submit */

.iq-submit-area { margin-top: 28px; }

.iq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: var(--iq-radius-sm);
  background: var(--iq-primary);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.iq-btn:hover { background: var(--iq-primary-dark); }

.iq-btn[disabled] { opacity: 0.7; cursor: default; }

.iq-btn svg { width: 16px; height: 16px; }

.iq-alert {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--iq-radius-sm);
  font-size: 13px;
  line-height: 1.55;
}

.iq-alert[hidden] {
  display: none;
}

.iq-alert svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

.iq-alert--success {
  border: 1px solid rgba(8, 54, 105, 0.3);
  background: rgba(8, 54, 105, 0.08);
  color: var(--iq-primary);
}

.iq-alert--error {
  display: block;
  border: 1px solid rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.07);
  color: #b91c1c;
}

/* ---------- help footer ---------- */

.iq-help-wrap { margin-top: 4px; margin-bottom: 3.5rem; }

.iq-help {
  position: relative;
  overflow: hidden;
  border-radius: var(--iq-radius);
  background: #eaf1ff;
  box-shadow: var(--iq-shadow);
}

.iq-help__photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 21%;
  min-width: 180px;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.iq-help__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 44px 48px;
}

.iq-help__need { display: flex; align-items: flex-start; gap: 18px; }

.iq-help__headset { width: 40px; height: 40px; flex: none; color: var(--iq-primary); }

.iq-help__title { margin: 0; font-size: 16px; font-weight: 600; color: var(--iq-ink); }

.iq-help__desc {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--iq-muted);
}

.iq-help__contacts {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 190px;
}

.iq-help__contact { display: flex; align-items: center; gap: 12px; }

.iq-help__contact > svg { width: 18px; height: 18px; flex: none; color: var(--iq-primary); }

.iq-help__contact-label { margin: 0; font-size: 13px; font-weight: 500; color: var(--iq-ink); }

.iq-help__contact-value {
  font-size: 13px;
  color: var(--iq-primary);
  text-decoration: none;
}

.iq-help__contact-value:hover { text-decoration: underline; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .iq-hero__inner { padding-bottom: 96px; }
  .iq-forms__grid { grid-template-columns: 1fr; }
  .iq-types__grid { grid-template-columns: 1fr; }
  .iq-help__inner { flex-direction: column; align-items: flex-start; gap: 28px; padding: 32px; }
  .iq-help__contacts { margin-left: 0; flex-wrap: wrap; gap: 24px; padding-right: 190px; }
}

@media (max-width: 640px) {
  .iq-types { padding-top: 48px; }
  .iq-fields--two { grid-template-columns: 1fr; }
  .iq-hero__photo { opacity: 0.45; }
  .iq-hero__title { font-size: 30px; }
  .iq-type-card { gap: 16px; }
  .iq-type-card__img { width: 72px; height: 72px; }
  .iq-help__photo { opacity: 0.5; }
  .iq-help__contacts { padding-right: 0; }
}
