:root {
  color-scheme: light;
  --bg: #f6f8f7;
  --ink: #172033;
  --muted: #5b6677;
  --line: #d7dfdf;
  --panel: #ffffff;
  --soft: #eef5f2;
  --primary: #0f766e;
  --primary-strong: #0a5f58;
  --rust: #a95638;
  --amber: #d7a35f;
  --navy: #17324d;
  --danger: #b42318;
  --success: #0b6b4f;
  --shadow: 0 18px 48px rgba(21, 35, 52, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    Inter,
    "Segoe UI",
    Arial,
    sans-serif;
  letter-spacing: 0;
}

body.lang-ru {
  font-family:
    "Segoe UI",
    Arial,
    sans-serif;
}

body.lang-vi,
body.lang-id,
body.lang-de,
body.lang-fr {
  font-family:
    Inter,
    "Segoe UI",
    Arial,
    sans-serif;
}

body.lang-ko {
  font-family:
    "Malgun Gothic",
    "Apple SD Gothic Neo",
    "Segoe UI",
    Arial,
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(360px, 1.12fr);
  align-items: stretch;
}

.visual-pane {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 4vw, 58px);
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(215, 163, 95, 0.08)),
    #f2f6f3;
  border-right: 1px solid var(--line);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.26);
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(23, 50, 77, 0.08);
}

.eyebrow {
  margin: 22px 0 14px;
  color: var(--rust);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  margin: 22px 0 0;
  max-width: 660px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.visual-asset {
  width: min(100%, 560px);
  margin: 26px 0 0;
  border: 1px solid rgba(23, 50, 77, 0.1);
  box-shadow: var(--shadow);
  background: #fff;
}

.route-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.5;
}

.route-list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
}

.route-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--primary);
}

.route-list li:nth-child(2)::before {
  background: var(--amber);
}

.route-list li:nth-child(3)::before {
  background: var(--rust);
}

.market-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.market-strip span {
  border: 1px solid rgba(23, 50, 77, 0.16);
  background: rgba(255, 255, 255, 0.62);
  padding: 8px 10px;
  color: #354052;
  font-size: 13px;
  font-weight: 700;
}

.form-pane {
  padding: clamp(20px, 4.5vw, 58px);
  display: flex;
  justify-content: center;
  align-items: start;
}

.form-wrap {
  width: min(760px, 100%);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.form-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.24;
  letter-spacing: 0;
}

.lang-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.lang-switcher a {
  min-width: 40px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.lang-switcher a[aria-current="page"] {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.form-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3.5vw, 32px);
}

.rfq-form {
  display: grid;
  gap: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: #2c3849;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.required {
  color: var(--rust);
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
  border-radius: 0;
}

textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.hint {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.field-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
}

.source-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce7e4;
  background: var(--soft);
  color: #314254;
  font-size: 13px;
  line-height: 1.5;
}

.source-box strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.status {
  min-height: 26px;
  color: var(--danger);
  line-height: 1.55;
}

.status.success {
  color: var(--success);
  font-weight: 800;
}

.submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.submit-button {
  min-width: 180px;
  min-height: 48px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.submit-button:hover:not(:disabled) {
  background: var(--primary-strong);
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.privacy-note {
  max-width: 360px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.privacy-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guard-note {
  margin-top: 18px;
  padding: 13px 14px;
  border-left: 4px solid var(--amber);
  background: #fff9ee;
  color: #65420d;
  line-height: 1.6;
  font-size: 13px;
}

.rfq-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.rfq-footer-brand {
  color: var(--ink);
  font-weight: 900;
}

.rfq-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 8px 0;
}

.rfq-footer a {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.rfq-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rfq-footer p {
  margin: 0;
}

.rfq-footer .footer-record {
  margin-top: 10px;
  text-align: center;
}

.rfq-footer .footer-record a {
  color: var(--amber);
  font-weight: 900;
}

@media (max-width: 980px) {
  .page {
    grid-template-columns: 1fr;
  }

  .visual-pane {
    position: static;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .visual-asset {
    max-height: 340px;
    object-fit: cover;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 16px;
  }

  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .lang-switcher {
    justify-content: flex-start;
  }

  .field-grid,
  .source-box {
    grid-template-columns: 1fr;
  }

  .submit-row {
    align-items: stretch;
  }

  .submit-button {
    width: 100%;
  }
}
