/*
  Interon quote calculator — styled to match interon-ai.com (site.css).
  Tokens (--ink, --paper, --paper-pure, --hairline, --rule, --accent, --accent-ink, --t-step-*)
  cascade in from the Umbraco page's site.css. Fallbacks match the same values so the widget
  also renders correctly when loaded standalone.
*/

.iqc {
  color: var(--ink, #0a0a0a);
  background: var(--paper, #f5f3ee);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: var(--t-step-0, 1rem);
  line-height: 1.55;
  max-width: 100vw;
  overflow-x: hidden;
}

.iqc *,
.iqc *::before,
.iqc *::after {
  box-sizing: border-box;
}

.iqc button,
.iqc input,
.iqc select,
.iqc textarea {
  font: inherit;
}

.iqc input,
.iqc select,
.iqc textarea {
  color: inherit;
}

.iqc-shell {
  width: min(
    var(--grid-max, 1440px),
    calc(100% - (var(--grid-pad, clamp(16px, 4vw, 64px)) * 2))
  );
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 8vw, 96px);
}

/* -------- Masthead -------- */

.iqc-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--hairline, #d9d6cd);
  background: transparent;
}

.iqc-kicker {
  margin: 0 0 12px;
  color: var(--ink, #0a0a0a);
  font-size: var(--t-step--1, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.iqc h1,
.iqc h2,
.iqc h3 {
  color: var(--ink, #0a0a0a);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.iqc-title {
  max-width: 760px;
  margin: 0;
  font-size: var(--t-step-4, clamp(2.25rem, 4vw, 3.5rem));
  letter-spacing: -0.025em;
}

.iqc-intro {
  max-width: 60ch;
  margin: 20px 0 0;
  color: var(--ink, #0a0a0a);
  font-size: var(--t-step-1, 1.125rem);
  line-height: 1.55;
}

.iqc-hosting-note {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--hairline, #d9d6cd);
  border-bottom: 1px solid var(--hairline, #d9d6cd);
  background: transparent;
}

.iqc-hosting-note strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.iqc-hosting-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--accent-ink, #ffffff);
  background: var(--ink, #0a0a0a);
  font-weight: 500;
  font-size: var(--t-step--1, 0.875rem);
  letter-spacing: 0.04em;
}

.iqc-visual {
  min-height: 100%;
}

.iqc-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border: 1px solid var(--rule, #1a1a1a);
}

/* -------- Main layout -------- */

.iqc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  margin-top: clamp(32px, 5vw, 56px);
}

.iqc-form,
.iqc-result {
  border: 1px solid var(--rule, #1a1a1a);
  background: var(--paper-pure, #ffffff);
}

.iqc-form {
  padding: clamp(20px, 3vw, 32px);
}

.iqc-result {
  position: sticky;
  top: 32px;
  padding: clamp(20px, 3vw, 32px);
}

/* -------- Steps -------- */

.iqc-step {
  padding: 28px 0;
  border-top: 1px solid var(--hairline, #d9d6cd);
}

.iqc-step:first-child {
  padding-top: 0;
  border-top: 0;
}

.iqc-step-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.iqc-step-heading h2 {
  margin: 0;
  font-size: var(--t-step-2, 1.5rem);
  letter-spacing: -0.02em;
}

.iqc-step-number {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--paper, #f5f3ee);
  background: var(--ink, #0a0a0a);
  font-size: var(--t-step--1, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.iqc-helper {
  margin: 8px 0 0;
  color: var(--ink, #0a0a0a);
  opacity: 0.72;
  font-size: var(--t-step--1, 0.875rem);
  line-height: 2.5;
}

/* -------- Options (radio cards) -------- */

.iqc-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.iqc-options.iqc-options-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.iqc-option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--hairline, #d9d6cd);
  margin: -1px 0 0 -1px;
  background: var(--paper-pure, #ffffff);
  cursor: pointer;
  transition: background 0.12s ease;
}

.iqc-option:hover {
  background: var(--paper, #f5f3ee);
}

.iqc-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.iqc-option.is-selected {
  border: 2px solid var(--ink, #0a0a0a);
  padding: 17px;
  background: var(--paper-pure, #ffffff);
  z-index: 1;
}

.iqc-option-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 500;
  font-size: var(--t-step-0, 1rem);
  letter-spacing: -0.01em;
}

.iqc-option-price {
  color: var(--ink, #0a0a0a);
  font-size: var(--t-step--1, 0.875rem);
  font-weight: 500;
  white-space: nowrap;
}

.iqc-option-desc {
  margin: 0;
  color: var(--ink, #0a0a0a);
  opacity: 0.72;
  font-size: var(--t-step--1, 0.875rem);
  line-height: 1.5;
}

.iqc-recommend {
  width: fit-content;
  max-width: 100%;
  padding: 4px 10px;
  color: var(--accent-ink, #ffffff);
  background: var(--accent, #e16c04);
  font-size: var(--t-step--2, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* -------- Check grid (multi-select cards) -------- */

.iqc-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.iqc-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  min-height: 82px;
  padding: 16px;
  border: 1px solid var(--hairline, #d9d6cd);
  margin: -1px 0 0 -1px;
  background: var(--paper-pure, #ffffff);
}

.iqc-check.is-selected {
  border: 2px solid var(--ink, #0a0a0a);
  padding: 15px;
  background: var(--paper-pure, #ffffff);
  z-index: 1;
}

.iqc-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent, #e16c04);
}

.iqc-check-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  font-weight: 500;
  font-size: var(--t-step-0, 1rem);
  letter-spacing: -0.01em;
}

.iqc-quantity {
  grid-column: 2;
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.iqc-check.is-selected .iqc-quantity {
  display: flex;
}

.iqc-quantity label {
  color: var(--ink, #0a0a0a);
  opacity: 0.72;
  font-size: var(--t-step--1, 0.875rem);
}

.iqc-quantity input {
  width: 96px;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--ink, #0a0a0a);
  background: var(--paper-pure, #ffffff);
}

.iqc-quantity input:focus {
  outline: none;
  border-width: 2px;
  padding: 9px 11px;
}

/* -------- Result panel -------- */

.iqc-result-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--accent-ink, #ffffff);
  background: var(--accent, #e16c04);
  font-size: var(--t-step--2, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.iqc-monthly-label,
.iqc-secondary-label {
  margin: 20px 0 6px;
  color: var(--ink, #0a0a0a);
  opacity: 0.72;
  font-size: var(--t-step--1, 0.875rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.iqc-monthly-price {
  margin: 0;
  color: var(--ink, #0a0a0a);
  font-size: var(--t-step-3, clamp(1.75rem, 2.5vw, 2.25rem));
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.iqc-monthly-price span {
  color: var(--ink, #0a0a0a);
  opacity: 0.72;
  font-size: var(--t-step-0, 1rem);
  font-weight: 500;
  letter-spacing: 0;
}

.iqc-activation {
  margin: 0;
  color: var(--ink, #0a0a0a);
  font-size: var(--t-step-2, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.iqc-result-meta {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--hairline, #d9d6cd);
  border-bottom: 1px solid var(--hairline, #d9d6cd);
}

.iqc-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink, #0a0a0a);
  font-size: var(--t-step--1, 0.875rem);
}

.iqc-meta-row strong {
  color: var(--ink, #0a0a0a);
  font-weight: 500;
}

.iqc-inclusions {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.iqc-inclusions li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  color: var(--ink, #0a0a0a);
  font-size: var(--t-step--1, 0.875rem);
  line-height: 1.55;
}

.iqc-inclusions li::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--accent, #e16c04);
}

/* -------- Notices / status -------- */

.iqc-warning,
.iqc-disclaimer,
.iqc-status {
  padding: 14px 16px;
  font-size: var(--t-step--1, 0.875rem);
  line-height: 1.55;
}

.iqc-warning {
  border: 1px solid var(--accent, #e16c04);
  border-left-width: 4px;
  color: var(--ink, #0a0a0a);
  background: var(--paper, #f5f3ee);
}

.iqc-disclaimer {
  margin-top: 16px;
  border-top: 1px solid var(--hairline, #d9d6cd);
  padding: 14px 0 0;
  color: var(--ink, #0a0a0a);
  opacity: 0.72;
  background: transparent;
}

/* -------- Lead form -------- */

.iqc-lead {
  margin-top: 24px;
}

.iqc-lead h3 {
  margin: 0 0 14px;
  font-size: var(--t-step-1, 1.125rem);
  letter-spacing: -0.01em;
}

.iqc-fields {
  display: grid;
  gap: 14px;
}

.iqc-field {
  display: grid;
  gap: 6px;
}

.iqc-field label {
  color: var(--ink, #0a0a0a);
  font-size: var(--t-step--1, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.iqc-field input,
.iqc-field select,
.iqc-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 14px 16px;
  border: 1px solid var(--ink, #0a0a0a);
  color: var(--ink, #0a0a0a);
  background: var(--paper-pure, #ffffff);
  font-family: inherit;
}

.iqc-field input:focus,
.iqc-field select:focus,
.iqc-field textarea:focus {
  outline: none;
  border-width: 2px;
  padding: 13px 15px;
}

.iqc-field input:invalid,
.iqc-field select:invalid,
.iqc-field textarea:invalid {
  border-color: var(--accent, #e16c04);
  border-width: 2px;
  padding: 13px 15px;
}

.iqc-field textarea {
  min-height: 100px;
  resize: vertical;
}

.iqc-domain-field {
  margin-top: 16px;
}

.iqc-domain-input-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.iqc-domain-input-row input {
  flex: 1;
  min-width: 0;
}

.iqc-domain-suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--ink, #0a0a0a);
  border-left: 0;
  color: var(--paper, #f5f3ee);
  background: var(--ink, #0a0a0a);
  font-size: var(--t-step--1, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.iqc-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* -------- Submit button (Interon .btn style) -------- */

.iqc-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  padding: 18px 28px;
  border: 1px solid var(--accent, #e16c04);
  color: var(--accent-ink, #ffffff);
  background: var(--accent, #e16c04);
  font-size: var(--t-step--1, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.12s ease,
    color 0.12s ease,
    border-color 0.12s ease;
}

.iqc-submit:hover,
.iqc-submit:focus-visible {
  outline: none;
  color: var(--accent-ink, #ffffff);
  background: var(--ink, #0a0a0a);
  border-color: var(--ink, #0a0a0a);
}

.iqc-submit:disabled {
  cursor: wait;
  opacity: 0.5;
}

/* -------- Status messages -------- */

.iqc-status {
  display: none;
  margin-top: 14px;
  border: 1px solid var(--hairline, #d9d6cd);
  background: var(--paper, #f5f3ee);
}

.iqc-status.is-visible {
  display: block;
}

.iqc-status.is-error {
  border-color: var(--accent, #e16c04);
  border-left-width: 4px;
  color: var(--ink, #0a0a0a);
  background: var(--paper, #f5f3ee);
}

.iqc-status.is-success {
  border-color: var(--ink, #0a0a0a);
  border-left-width: 4px;
  color: var(--ink, #0a0a0a);
  background: var(--paper-pure, #ffffff);
}

.iqc-loading {
  min-height: 360px;
  display: grid;
  place-items: center;
  color: var(--ink, #0a0a0a);
  opacity: 0.72;
}

/* -------- Responsive -------- */

@media (max-width: 1040px) {
  .iqc-masthead,
  .iqc-layout {
    grid-template-columns: 1fr;
  }

  .iqc-result {
    position: static;
  }

  .iqc-visual img {
    min-height: 260px;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 760px) {
  .iqc-shell {
    width: auto;
    max-width: none;
    margin-right: 16px;
    margin-left: 16px;
    padding-top: 20px;
  }

  .iqc-masthead,
  .iqc-form,
  .iqc-result {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    overflow: hidden;
  }

  .iqc-title {
    max-width: 100%;
    font-size: var(--t-step-3, clamp(1.75rem, 2.5vw, 2.25rem));
  }

  .iqc-intro {
    max-width: 100%;
  }

  .iqc-hosting-note {
    grid-template-columns: 1fr;
  }

  .iqc-options,
  .iqc-options.iqc-options-three,
  .iqc-check-grid {
    grid-template-columns: 1fr;
  }

  .iqc-step-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .iqc-option-title,
  .iqc-check-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .iqc-option-price {
    white-space: normal;
  }
}
