.rf-page {
  padding: 8px 0 80px;
}

.rf-page .container {
  max-width: 1200px;
}

.rf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-areas:
    "intro intro"
    "main aside";
  gap: 20px 28px;
  align-items: start;
}

.rf-intro {
  grid-area: intro;
  margin: 0;
}

.rf-main {
  grid-area: main;
  min-width: 0;
}

.rf-aside {
  grid-area: aside;
  min-width: 0;
}

.rf-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rf-badge--sample {
  background: rgba(11, 31, 58, 0.08);
  color: var(--heading);
}

.rf-badge--enquiry {
  background: rgba(26, 143, 168, 0.08);
  color: var(--accent-hover);
}

.rf-intro p {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.rf-cycle {
  margin: 1.1rem 0 0;
}
.rf-cycle__help {
  margin: 0 0 0.55rem !important;
  font-size: 13px !important;
  color: var(--muted);
}
.rf-cycle__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rf-cycle__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--heading);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
a.rf-cycle__tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.rf-cycle__tab.is-on {
  background: var(--navy, #0B1F3A);
  border-color: var(--navy, #0B1F3A);
  color: #fff;
}

.rf-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.rf-alert--error {
  background: #fdecee;
  border: 1px solid #f3c4cb;
  color: #8a2432;
}

.rf-alert i {
  margin-top: 2px;
}

.rf-form {
  display: grid;
  gap: 18px;
}

.rf-card {
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card, #fff);
  box-shadow: 0 10px 30px rgba(11, 31, 58, 0.05);
}

.rf-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.rf-card__head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--heading);
}

.rf-card__head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.rf-stepn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.rf-label {
  display: block;
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
}

.rf-req {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.rf-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.rf-field {
  margin: 0;
  min-width: 0;
}

.rf-card > .rf-field,
.rf-docs + .rf-field,
.rf-grid + .rf-field,
.rf-chips + .rf-grid,
.rf-field + .rf-field {
  margin-top: 16px;
}

.rf-grid > .rf-field {
  margin-top: 0;
}

.rf-input.form-control,
.rf-form .form-control {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  vertical-align: top;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rf-form select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%235B6573' d='M1.2 1.3L6 6.1l4.8-4.8 1.2 1.2L6 8.5 0 1.5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 36px;
}

.rf-input--area,
.rf-form textarea.form-control {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.rf-form .form-control:hover {
  border-color: #c5ced8;
}

.rf-form .form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.rf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.rf-grid--qty {
  grid-template-columns: minmax(0, 1fr) 140px;
}

.rf-product {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.rf-product.is-filled {
  border-style: solid;
  border-color: rgba(26, 143, 168, 0.35);
  background: linear-gradient(180deg, #fff, var(--accent-soft));
}

.rf-product__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 20px;
  flex: 0 0 auto;
}

.rf-product__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.rf-product__copy > span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.rf-product .has-tooltip,
.rf-product .has-tooltip .hint {
  display: inline;
  border-bottom: 0;
}

.rf-product__copy strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rf-docs {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.rf-docs legend.rf-label {
  display: block;
  float: none;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
}

.rf-docs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.rf-docs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.rf-doc {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 92px;
  height: 100%;
  margin: 0;
  padding: 14px 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.rf-doc:hover {
  border-color: rgba(26, 143, 168, 0.45);
  box-shadow: 0 8px 20px rgba(11, 31, 58, 0.06);
}

.rf-doc input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rf-doc__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 18px;
  flex: 0 0 auto;
}

.rf-doc__body {
  flex: 1 1 auto;
  min-width: 0;
}

.rf-doc__title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
}

.rf-doc__help {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.rf-doc__tick {
  margin-left: auto;
  opacity: 0;
  color: var(--accent);
  font-size: 16px;
  transition: opacity 0.15s ease;
  flex: 0 0 auto;
}

.rf-doc:has(input:checked),
.rf-doc.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(26, 143, 168, 0.12);
}

.rf-doc:has(input:checked) .rf-doc__tick,
.rf-doc.is-on .rf-doc__tick {
  opacity: 1;
}

.rf-doc:has(input:focus-visible) {
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.rf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.rf-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--heading);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rf-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.rf-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.rf-chip--custom {
  border-style: dashed;
}

.rf-captcha {
  margin-top: 18px;
}

.rf-submit {
  width: 100%;
  margin-top: 16px;
  min-height: 50px;
  border-radius: 10px !important;
  font-size: 15px !important;
}

.rf-form.is-submitting .rf-submit,
#rfq-form.is-submitting #rfq-submit {
  cursor: wait;
  opacity: 0.86;
}

.rf-summary {
  position: sticky;
  top: calc(var(--header-height, 72px) + 16px);
  padding: 24px 22px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #0b1f3a 0%, #12314f 100%);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(11, 31, 58, 0.22);
}

.rf-summary__kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7ad0e0;
}

.rf-summary h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #fff;
}

.rf-summary__lead {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.5;
}

.rf-summary__facts {
  margin: 0 0 18px;
  padding: 0;
}

.rf-summary__facts > div {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rf-summary__facts dt {
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7ad0e0;
}

.rf-summary__facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.rf-trust {
  list-style: none;
  margin: 0 0 16px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rf-trust li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
}

.rf-trust i {
  margin-top: 2px;
  color: #7ad0e0;
}

.rf-summary__note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

.rf-success {
  text-align: center;
  padding: 56px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(11, 31, 58, 0.06);
}

.rf-success__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 30px;
}

.rf-success h2 {
  margin: 0 0 8px;
  color: var(--heading);
}

.rf-success p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}
.rf-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 0.35rem;
}
.rf-success__actions .btn-outline {
  text-decoration: none;
}  margin: 0 0 22px;
  color: var(--muted);
}

@media (max-width: 991.98px) {
  .rf-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "main"
      "aside";
  }

  .rf-summary {
    position: static;
  }
}

@media (max-width: 639.98px) {
  .rf-card {
    padding: 18px 16px 20px;
  }

  .rf-docs__grid,
  .rf-grid,
  .rf-grid--qty {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .rf-card,
html[data-theme="dark"] .rf-success,
html[data-theme="dark"] .rf-doc,
html[data-theme="dark"] .rf-chip,
html[data-theme="dark"] .rf-form .form-control {
  background-color: var(--card);
  border-color: var(--line);
  color: var(--text);
}

html[data-theme="dark"] .rf-product {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .rf-product.is-filled,
html[data-theme="dark"] .rf-doc:has(input:checked),
html[data-theme="dark"] .rf-doc.is-on {
  background: rgba(26, 143, 168, 0.12);
}

html[data-theme="dark"] .rf-alert--error {
  background: rgba(138, 36, 50, 0.18);
  border-color: rgba(243, 196, 203, 0.3);
  color: #f3c4cb;
}

html[data-theme="dark"] .rf-badge--sample {
  background: rgba(255, 255, 255, 0.08);
  color: #9fd8e4;
}

html[data-theme="dark"] .rf-cycle__tab:not(.is-on) {
  background: var(--card);
  border-color: var(--line);
  color: var(--heading);
}

html[data-theme="dark"] .rf-form select.form-control {
  background-color: var(--card);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%239fd8e4' d='M1.2 1.3L6 6.1l4.8-4.8 1.2 1.2L6 8.5 0 1.5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
