.brokerage-page {
  --brokerage-ink: #10233d;
  --brokerage-muted: #61738c;
  --brokerage-line: #d5e0eb;
  --brokerage-soft: #f5f8fb;
  --brokerage-accent: #087f70;
  --brokerage-accent-dark: #05665b;
  --brokerage-warm: #fff6e8;
  color: var(--brokerage-ink);
  letter-spacing: 0;
}

.brokerage-page [hidden] {
  display: none !important;
}

.brokerage-hero {
  margin: 0 0 1.5rem;
}

.brokerage-hero h1 {
  margin: 0.2rem 0 0.7rem;
  color: #101827;
  font-size: 2.8rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.brokerage-hero > p:not(.brokerage-eyebrow) {
  max-width: 52rem;
  margin: 0;
  color: #4e627d;
  font-size: 1.08rem;
  line-height: 1.75;
}

.brokerage-eyebrow,
.brokerage-section-heading > p {
  margin: 0;
  color: var(--brokerage-accent-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.brokerage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.brokerage-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid #c8d7e4;
  border-radius: 4px;
  background: #fff;
  color: #42556e;
  font-size: 0.82rem;
}

.brokerage-calculator {
  margin-bottom: 1.5rem;
  padding: 1.35rem;
  border: 1px solid #cbd9e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 47, 75, 0.06);
}

.brokerage-section-heading {
  margin-bottom: 1.15rem;
}

.brokerage-section-heading h2 {
  margin: 0.15rem 0 0;
  color: var(--brokerage-ink);
  font-size: 1.55rem;
  line-height: 1.3;
}

#brokerage-form {
  display: grid;
  gap: 1.25rem;
}

.brokerage-choice-group,
.brokerage-vat-choice {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.brokerage-choice-group legend,
.brokerage-field label,
.brokerage-check-field label {
  display: block;
  margin-bottom: 0.5rem;
  color: #1b304b;
  font-size: 0.94rem;
  font-weight: 700;
}

.brokerage-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.brokerage-segment-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brokerage-segment label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.brokerage-page .brokerage-segment input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  clip-path: inset(50%);
  margin: 0;
  padding: 0;
  border: 0;
}

.brokerage-segment span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.55rem;
  border: 1px solid #c9d7e5;
  border-radius: 6px;
  background: #fff;
  color: #30445f;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.brokerage-segment input:checked + span {
  border-color: var(--brokerage-accent);
  background: #e8f5f2;
  color: #045e54;
}

.brokerage-segment input:focus-visible + span {
  outline: 3px solid rgba(8, 127, 112, 0.22);
  outline-offset: 2px;
}

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

.brokerage-field,
.brokerage-check-field {
  min-width: 0;
}

.brokerage-money-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 3.15rem;
  overflow: hidden;
  border: 1px solid #bdccdc;
  border-radius: 6px;
  background: #fff;
}

.brokerage-money-control:focus-within {
  border-color: var(--brokerage-accent);
  box-shadow: 0 0 0 3px rgba(8, 127, 112, 0.12);
}

.brokerage-money-control input,
.brokerage-field select {
  width: 100%;
  min-width: 0;
  height: 3.15rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #14253d;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: none;
}

.brokerage-field select {
  border: 1px solid #bdccdc;
  border-radius: 6px;
  background: #fff;
}

.brokerage-money-control input:focus,
.brokerage-field select:focus {
  outline: none;
  box-shadow: none;
}

.brokerage-money-control > span {
  padding: 0 0.9rem;
  color: #53667e;
  font-size: 0.92rem;
  font-weight: 700;
}

.brokerage-help {
  margin: 0.42rem 0 0;
  color: var(--brokerage-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.brokerage-error {
  min-height: 1.1rem;
  margin: 0.35rem 0 0;
  color: #b42318;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}

.brokerage-grid-wide {
  grid-column: 1 / -1;
}

.brokerage-check-field {
  display: grid;
  align-content: center;
  gap: 0.65rem;
  min-height: 3.15rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cbd8e4;
  border-radius: 6px;
  background: var(--brokerage-soft);
}

.brokerage-check-field label {
  margin: 0;
  line-height: 1.5;
  cursor: pointer;
}

.brokerage-check-field input {
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.45rem;
  vertical-align: -0.2rem;
}

.brokerage-quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.brokerage-page .brokerage-quick-buttons button {
  min-height: 2.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #c8d6e3;
  border-radius: 5px;
  background: #fff;
  color: #36506d;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  height: auto;
}

.brokerage-quick-buttons button:hover,
.brokerage-quick-buttons button:focus-visible {
  border-color: var(--brokerage-accent);
  color: var(--brokerage-accent-dark);
}

.brokerage-advanced {
  border-top: 1px solid var(--brokerage-line);
  border-bottom: 1px solid var(--brokerage-line);
}

.brokerage-advanced summary {
  min-height: 3.1rem;
  padding: 0.8rem 0;
  color: #1c3857;
  font-weight: 700;
  cursor: pointer;
}

.brokerage-advanced-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 0 1rem;
}

.brokerage-vat-choice {
  grid-column: 1 / -1;
}

.brokerage-form-actions {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(7rem, 1fr);
  gap: 0.65rem;
}

.brokerage-primary,
.brokerage-secondary {
  min-height: 3rem;
  margin: 0;
  border-radius: 6px;
  font-weight: 700;
}

.brokerage-page .brokerage-primary {
  border-color: var(--brokerage-accent);
  background: var(--brokerage-accent);
  color: #fff;
}

.brokerage-page .brokerage-primary:hover {
  border-color: var(--brokerage-accent-dark);
  background: var(--brokerage-accent-dark);
}

.brokerage-page .brokerage-secondary {
  border: 1px solid #b9cad9;
  background: #fff;
  color: #27425f;
}

.brokerage-page .brokerage-secondary:hover,
.brokerage-page .brokerage-secondary:focus-visible {
  border-color: var(--brokerage-accent);
  background: #f5fbfa;
  color: var(--brokerage-accent-dark);
}

.brokerage-page .brokerage-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.brokerage-result-panel {
  min-height: 11rem;
  margin-top: 1.3rem;
  padding: 1.25rem;
  border: 1px solid #b9d7d1;
  border-left: 5px solid var(--brokerage-accent);
  border-radius: 6px;
  background: #f4fbf9;
  outline: none;
}

.brokerage-result-label {
  margin: 0;
  color: #28645d;
  font-size: 0.86rem;
  font-weight: 700;
}

#brokerage-total {
  display: block;
  margin: 0.25rem 0 0.4rem;
  color: #0b302d;
  font-size: 2.5rem;
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

#brokerage-result-summary {
  margin: 0;
  color: #50677b;
  line-height: 1.6;
}

.brokerage-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 1rem 0;
  border-top: 1px solid #c8ded9;
}

.brokerage-result-row {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 0.85rem 0.7rem 0.85rem 0;
  border-bottom: 1px solid #d4e5e1;
}

.brokerage-result-row:nth-child(even) {
  padding-right: 0;
  padding-left: 0.7rem;
}

.brokerage-result-row span {
  color: #526980;
  font-size: 0.78rem;
}

.brokerage-result-row strong {
  margin: 0.2rem 0;
  color: #132d46;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.brokerage-result-row small {
  color: #677a8f;
  font-size: 0.74rem;
  line-height: 1.45;
}

.brokerage-notice-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: #53677d;
  font-size: 0.8rem;
  line-height: 1.6;
}

.brokerage-trust-note {
  margin: 0 0 2.25rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid #d69d34;
  background: var(--brokerage-warm);
}

.brokerage-trust-note strong {
  color: #694610;
}

.brokerage-trust-note p {
  margin: 0.3rem 0 0;
  color: #65583f;
  line-height: 1.65;
}

.brokerage-content-section {
  padding: 2.2rem 0;
  border-top: 1px solid var(--brokerage-line);
}

.brokerage-content-section h2 {
  margin: 0 0 0.8rem;
  color: #10233d;
  font-size: 1.65rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.brokerage-content-section h3 {
  margin: 0 0 0.45rem;
  color: #1a3553;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.brokerage-content-section p,
.brokerage-content-section li {
  color: #52667e;
  line-height: 1.78;
}

.brokerage-flow {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0;
  padding-left: 1.4rem;
}

.brokerage-table-wrap {
  overflow-x: auto;
  border: 1px solid #cfdae5;
  border-radius: 6px;
}

.brokerage-rate-table {
  width: 100%;
  min-width: 31rem;
  margin: 0;
  border-collapse: collapse;
}

.brokerage-rate-table th,
.brokerage-rate-table td {
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid #dfe7ef;
  text-align: left;
}

.brokerage-rate-table th {
  background: #eef4f7;
  color: #243d59;
  font-size: 0.86rem;
}

.brokerage-rate-table td {
  color: #52667e;
  font-size: 0.88rem;
}

.brokerage-rate-table tr:last-child td {
  border-bottom: 0;
}

.brokerage-example {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #d5e0e8;
  background: var(--brokerage-soft);
}

.brokerage-example p {
  margin: 0.25rem 0 0;
}

.brokerage-info-grid,
.brokerage-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.brokerage-info-grid section {
  padding: 1rem 0;
  border-bottom: 1px solid #d9e2eb;
}

.brokerage-info-grid p {
  margin: 0;
}

.brokerage-faq-list details {
  border-bottom: 1px solid #d7e1eb;
}

.brokerage-faq-list summary {
  padding: 1rem 0;
  color: #19334f;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.brokerage-faq-list details p {
  margin: 0;
  padding: 0 0 1rem;
}

.brokerage-related-grid a {
  display: grid;
  align-content: start;
  min-height: 7rem;
  padding: 1rem;
  border: 1px solid #cbd9e6;
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
}

.brokerage-related-grid a:hover,
.brokerage-related-grid a:focus-visible {
  border-color: var(--brokerage-accent);
  background: #f5fbfa;
}

.brokerage-related-grid strong {
  color: #17314c;
  font-size: 1rem;
}

.brokerage-related-grid span {
  margin-top: 0.35rem;
  color: #6a7b90;
  font-size: 0.82rem;
  line-height: 1.55;
}

.brokerage-sources ul {
  margin-bottom: 1rem;
  padding-left: 1.2rem;
}

.brokerage-sources a {
  color: #087366;
  text-underline-offset: 0.18rem;
}

.brokerage-legal-note {
  padding: 0.9rem 1rem;
  background: #f4f6f8;
  color: #596a7e !important;
  font-size: 0.84rem;
}

.brokerage-amount-reading {
  min-height: 1.4em;
  margin: 0.4rem 0 0;
  color: #086c60;
  font-size: 0.9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.brokerage-one-party {
  margin: 0.7rem 0 0;
  color: #234d48;
  font-size: 0.86rem;
  line-height: 1.6;
}

.brokerage-monthly-flow {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid #bdd7d1;
}

.brokerage-monthly-flow p {
  margin: 0.35rem 0;
  color: #25463f;
  font-size: 0.9rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.brokerage-result-panel[data-state="exceeds"] {
  border-color: #b35619;
  background: #fff8ef;
}

.brokerage-result-panel[data-state="exceeds"] .brokerage-notice-list li:first-child {
  color: #93320e;
  font-weight: 700;
}

.brokerage-table-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0 0 0.7rem;
}

.brokerage-page .brokerage-table-tabs button {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  height: auto;
  padding: 0.6rem;
  border: 1px solid #c6d5e1;
  border-radius: 5px;
  background: #fff;
  color: #304659;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
}

.brokerage-page .brokerage-table-tabs button[aria-selected="true"] {
  border-color: #087f70;
  background: #e9f5f2;
  color: #05665b;
}

.brokerage-rate-table caption {
  padding: 0.65rem 0.8rem;
  color: #284357;
  font-weight: 700;
  text-align: left;
}

.brokerage-rate-table tr.is-active td {
  background: #e6f5ef;
  color: #084f42;
  font-weight: 700;
  box-shadow: inset 0 2px #318e77, inset 0 -2px #318e77;
}

.brokerage-page button:focus-visible,
.brokerage-page summary:focus-visible,
.brokerage-table-wrap:focus-visible {
  outline: 3px solid #5d9eaa;
  outline-offset: 2px;
}

@media screen and (max-width: 736px) {
  .brokerage-hero h1 {
    font-size: 2rem;
  }

  .brokerage-hero > p:not(.brokerage-eyebrow) {
    font-size: 1rem;
  }

  .brokerage-calculator {
    padding: 1rem;
  }

  .brokerage-field-grid,
  .brokerage-advanced-body,
  .brokerage-breakdown,
  .brokerage-info-grid,
  .brokerage-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .brokerage-result-row,
  .brokerage-result-row:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
  }

  .brokerage-vat-choice,
  .brokerage-grid-wide {
    grid-column: auto;
  }

  .brokerage-content-section {
    padding: 1.7rem 0;
  }

  .brokerage-content-section h2 {
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 430px) {
  #brokerage-total { font-size: 2rem; }
  .brokerage-table-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brokerage-vat-choice .brokerage-segment { grid-template-columns: minmax(0, 1fr); }
  .modern-subpage #content.brokerage-page {
    padding: 14px;
  }

  .brokerage-segment-three {
    grid-template-columns: minmax(0, 1fr);
  }

  .brokerage-segment-three span {
    min-height: 2.8rem;
  }

  .brokerage-form-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .brokerage-quick-buttons button {
    flex: 1 1 calc(50% - 0.4rem);
  }

  .brokerage-meta span {
    width: 100%;
  }

  .brokerage-result-panel {
    padding: 1rem;
  }
}
