.fee-hero { padding-block: clamp(22px, 4.1vw, 50px); }
.fee-hero h1 { max-width: 30ch; font-size: clamp(1.85rem, 4.15vw, 3.35rem); }
.fee-content { padding-block: clamp(24px, 4.1vw, 52px) clamp(50px, 6vw, 74px); }
.fee-grid { display: grid; grid-template-columns: .98fr 1.02fr; gap: 1rem; align-items: start; }
.fee-form, .fee-result { min-width: 0; border-radius: var(--radius); overflow: hidden; }
.fee-form { background: var(--white); border: 1px solid var(--line); padding: clamp(.85rem, 2.3vw, 1.6rem); }
.fee-form h2, .fee-total h2 { font-size: 1.16rem; margin-bottom: 1rem; }
.fee-form fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
.fee-form label { display: block; font-weight: 760; font-size: .87rem; margin-bottom: .26rem; }
.fee-form input, .fee-form select { width: 100%; padding: .53rem .62rem; min-height: 46px; border: 1px solid #b8b8a9; border-radius: 7px; color: var(--ink); background: var(--paper); font-size: .91rem; }
.fee-form input[aria-invalid="true"] { border-color: #aa3427; }
.fee-entry { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: .6rem; margin-top: .85rem; }
.fee-entry:has(#fee-unit[hidden]) { grid-template-columns: 1fr; }
#fee-currency { min-width: 88px; }
.fee-error { color: #9e1e18; font-size: .82rem; }
.fee-error:empty { display: none; }
.fee-actions { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .9rem; }
.fee-result { border: 1px solid var(--line); background: var(--white); scroll-margin-top: 1rem; }
.fee-total { padding: clamp(.9rem, 2.35vw, 1.65rem); background: radial-gradient(ellipse at 6% 90%, #2c4b60 0%, transparent 58%), var(--dark); color: var(--white); }
.fee-total p { color: #e0e9e8; font-size: .88rem; }
.fee-total h2 { margin-bottom: .65rem; }
.fee-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; color: var(--gold); line-height: 1.2; font-size: clamp(1.65rem, 4vw, 3rem); font-weight: 850; }
.fee-price span { font-size: .42em; font-weight: 700; }
.fee-total .fee-in-rial { margin: .25rem 0 .65rem; }
.fee-breakdown { padding: .95rem clamp(.65rem, 2vw, 1.35rem); }
.fee-breakdown h3 { font-size: 1rem; margin-bottom: .55rem; }
.fee-breakdown table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: right; font-size: .75rem; line-height: 1.6; }
.fee-breakdown th, .fee-breakdown td { border-bottom: 1px solid var(--line); padding: .42rem .3rem; vertical-align: top; overflow-wrap: anywhere; }
.fee-breakdown th { background: var(--cream); font-weight: 760; }
.fee-breakdown th:first-child { width: 41%; }
.fee-breakdown th:last-child { width: 26%; }
.fee-breakdown td:last-child { font-weight: 720; font-variant-numeric: tabular-nums; }
.fee-breakdown .field-hint { margin: .65rem 0 0; }
.fee-guide { max-width: 780px; margin-top: clamp(34px, 6vw, 65px); }
.fee-guide h2 { font-size: clamp(1.45rem, 3vw, 1.95rem); margin-bottom: .45rem; }
.fee-guide > p { margin-bottom: 1rem; }
.fee-guide details { padding: .65rem .1rem; border-top: 1px solid var(--line); }
.fee-guide details p { margin-block: .42rem .16rem; }
.fee-guide summary { width: fit-content; font-weight: 740; }
.fee-sources { margin-top: 1rem; background: var(--cream); border-radius: var(--radius); padding: .9rem 1rem; }
.fee-sources h3 { font-size: 1.02rem; }
.fee-sources p { margin-top: .3rem; font-size: .88rem; }
.fee-sources ul { display: flex; flex-wrap: wrap; gap: .45rem 1.15rem; list-style: none; margin: .45rem 0 0; padding: 0; font-size: .84rem; }
.fee-sources a { color: var(--bronze); text-decoration: underline; text-underline-offset: .17em; }

@media (max-width: 660px) {
  .fee-grid { grid-template-columns: minmax(0,1fr); }
  .fee-breakdown table { font-size: .68rem; }
  .fee-actions .button { font-size: .79rem; padding-inline: .61rem; }
  #fee-currency { min-width: 68px; }
}
