.cost-calculation-section{background:#eef4f8;padding-block:clamp(36px,6vw,76px)}
.cost-card{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:clamp(20px,3vw,40px);background:#fff;padding:clamp(16px,3vw,32px);border:1px solid #dce6ee;border-radius:18px;color:#19324a}
.cost-form fieldset{min-width:0;border:0;margin:0 0 18px;padding:0 0 16px;border-bottom:1px solid #e1e9f0}
.cost-form legend{color:#19324a;font-size:1.05rem;font-weight:750;margin:0 0 10px;padding:0}
.cost-fields,.cost-box{display:grid;gap:10px;grid-template-columns:repeat(4,minmax(0,1fr))}
.cost-fields.cost-contact{grid-template-columns:repeat(3,minmax(0,1fr))}
.cost-form label{display:block;min-width:0;color:#31465b;font-size:.9rem;font-weight:600;margin:0}
.cost-form input,.cost-form select,.cost-box output{display:block;width:100%;min-width:0;min-height:40px;margin-top:4px;border:1px solid #bfcfdb;border-radius:7px;background:#fff;padding:8px;color:#19324a;font:inherit}
.cost-form .fee-branch-picker{position:relative}.cost-form .fee-picker-chevron{position:absolute;right:10px;top:10px;pointer-events:none}
.cost-form .fee-branch-options{position:absolute;top:100%;left:0;right:0;z-index:12;max-height:220px;overflow:auto;background:#fff;border:1px solid #bfcfdb;border-radius:7px;box-shadow:0 8px 18px #19324a25}
.cost-form .fee-branch-options button{display:block;width:100%;background:#fff;border:0;padding:8px;text-align:left;color:#19324a;cursor:pointer}
.cost-form .fee-branch-options button:hover,.cost-form .fee-branch-options .highlight{background:#eaf3fa}
.cost-form .fee-branch-empty{padding:8px}
.cost-form [hidden],.cost-breakdown[hidden]{display:none!important}
.cost-box{grid-template-columns:repeat(5,minmax(0,1fr)) auto;align-items:end;margin-bottom:10px}
.cost-box output{background:#eef4f8}.cost-remove{min-width:34px;min-height:40px}
.cost-help,.cost-feedback{font-size:.86rem;line-height:1.5;color:#476176;margin:6px 0}
.cost-form .cost-food-switch{max-width:180px;margin-bottom:8px}
.cost-card .cost-primary,.cost-card .cost-secondary{display:inline-flex;align-items:center;padding:9px 14px;border-radius:7px;font-size:.9rem;font-weight:700;line-height:1.4}
.cost-card .cost-primary{background:#bf3a16;border:1px solid #bf3a16;color:#fff}
.cost-card .cost-secondary{border:1px solid #bfcfdb;background:#fff;color:#19324a}
.cost-card button:disabled{cursor:not-allowed;opacity:.55}
.cost-result{align-self:start;background:#102b40;color:#fff;padding:clamp(18px,3vw,28px);border-radius:12px}
.cost-result h3{margin:0 0 14px;color:#fff;font-size:1.25rem}
.cost-breakdown{font-size:.9rem;margin:0 0 14px}
.cost-breakdown div,.cost-total{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.cost-breakdown div{padding:5px 0}.cost-breakdown dd{margin:0;text-align:right}
.cost-total{border-top:1px solid #688298;padding-top:14px;font-weight:650}
.cost-total output{font-size:clamp(1.2rem,2.5vw,1.8rem);font-weight:750;text-align:right}
.cost-branch{margin-top:20px;border-top:1px solid #688298;padding-top:12px}
.cost-branch p{margin:0 0 10px;font-size:.9rem;line-height:1.5}
@media(max-width:940px){.cost-card{grid-template-columns:1fr}.cost-result{margin-top:0}}
@media(max-width:550px){.cost-fields,.cost-fields.cost-contact,.cost-box{grid-template-columns:repeat(2,minmax(0,1fr))}}

.cost-box-number,.cost-feedback:empty{display:none}
.cost-feedback-error{color:#a32822}
@media(max-width:600px){
  .cost-page-hero{padding:24px 0}
  .cost-page-hero p{display:none}
  .cost-page-hero h1{margin:0;font-size:clamp(25px,7vw,36px);line-height:1.15}
  .cost-calculation-section{padding:24px 0}
  .cost-calculation-section>.container{width:100%;padding-inline:12px}
  .cost-calculation-section .section-header{margin-bottom:14px}
  .cost-calculation-section .section-header h2{margin-bottom:0;font-size:clamp(25px,7vw,34px);line-height:1.15}
  .cost-card-public{gap:16px;border-radius:14px;padding:14px;box-shadow:0 4px 14px #17324a10}
  .cost-card-public .cost-form fieldset{margin-bottom:14px;padding-bottom:14px}
  .cost-card-public .cost-form legend{margin-bottom:8px;font-size:16px;line-height:1.25}
  .cost-card-public .cost-fields,.cost-card-public .cost-fields.cost-contact{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .cost-card-public .cost-contact>label:last-child{grid-column:1/-1}
  .cost-card-public .cost-form label{font-size:13px;line-height:1.2}
  .cost-card-public .cost-form input,.cost-card-public .cost-form select,.cost-card-public .cost-box output{min-height:44px;font-size:16px;line-height:1.2;padding:9px 8px}
  .cost-card-public .cost-form select[name="origin_country"],.cost-card-public .cost-form select[name="package_type"],.cost-card-public .cost-form select[name="service_speed"]{white-space:nowrap}
  .cost-card-public .cost-form .fee-branch-picker input{padding-right:22px}
  .cost-card-public .cost-form .fee-branch-options{min-width:100%;width:max-content;max-width:min(70vw,300px);left:auto;right:0}
  .cost-card-public .cost-form .fee-branch-options button{min-height:44px;font-size:15px}
  .cost-card-public .cost-help{font-size:13px;line-height:1.35}
  .cost-card-public .cost-box{position:relative;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:10px;background:#f4f8fb;border:1px solid #dce6ee;border-radius:10px}
  .cost-card-public .cost-box-number{display:block;grid-column:1/-1;line-height:32px;font-size:14px;font-weight:750}
  .cost-card-public .cost-box>label{grid-column:span 2}
  .cost-card-public .cost-box>label:nth-of-type(n+4){grid-column:span 3}
  .cost-card-public .cost-box output{color:#102b40;font-weight:750;background:#e8f0f6}
  .cost-card-public .cost-remove{position:absolute;top:4px;right:5px;width:44px;min-height:44px;background:transparent;border:0;color:#a32822;font-size:22px}
  .cost-card-public .cost-food-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:none;margin:0}
  .cost-card-public .cost-food-switch select{width:108px;margin:0}
  .cost-card-public [data-cost-foods]:not([hidden]){margin-top:10px}
  .cost-card-public .cost-primary,.cost-card-public .cost-secondary{min-height:44px}
  .cost-card-public .cost-primary{width:100%;justify-content:center;font-size:15px}
  .cost-card-public .cost-result{padding:15px;border-radius:10px;scroll-margin-block:90px 24px}
  .cost-card-public .cost-result h3{margin-bottom:10px;font-size:18px}
  .cost-card-public .cost-total{padding-top:10px}.cost-card-public .cost-total output{font-size:21px}
  .cost-card-public .cost-branch{margin-top:12px;padding-top:10px}
  .cost-card-public .cost-branch .btn{width:100%;justify-content:center}
}

.cost-calculation-section{
  background:linear-gradient(155deg,#f5f9fc 0%,#eaf2f8 100%);
}
.cost-card-public .cost-total output{font-variant-numeric:tabular-nums}
.cost-card-public :is(input,select,button,a):focus-visible{outline:2px solid #2582ac;outline-offset:2px}
.cost-card-public .cost-result :is(button,a):focus-visible{outline-color:#a9e2ff}
@media(min-width:601px){
  .cost-page-hero{padding:40px 0 48px;background:linear-gradient(120deg,#102b40,#163c56)}
  .cost-page-hero h1{margin-bottom:0}
  .cost-calculation-page{padding-top:32px}
  .cost-calculation-section .section-header{margin-bottom:28px}
  .cost-card-public{border-color:#d7e3ed;box-shadow:0 18px 46px #102b4010}
  .cost-card-public .cost-form fieldset{border:1px solid #e0e9f1;border-radius:12px;padding:12px 14px 14px;margin-bottom:15px}
  .cost-card-public .cost-form legend{padding:0 6px;margin:0;font-size:1rem}
  .cost-card-public .cost-form input,.cost-card-public .cost-form select{background:#f9fbfd;border-color:#c9d7e3}
  .cost-card-public .cost-box{position:relative;padding:10px 12px;background:#f3f7fa;border-radius:8px}
  .cost-card-public .cost-result{background:linear-gradient(155deg,#102b40,#164866);box-shadow:0 10px 20px #102b4026;padding:clamp(22px,3vw,34px)}
  .cost-card-public .cost-result h3{font-size:1.4rem;margin-bottom:18px}
  .cost-card-public .cost-total{background:#ffffff12;border:1px solid #ffffff36;border-radius:9px;padding:14px;flex-wrap:wrap}
  .cost-card-public .cost-total output{color:#fff;font-size:1.8rem}
  .cost-card-public .cost-branch{margin-top:18px}
}
@media(min-width:941px){
  .cost-card-public{grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:32px}
  .cost-card-public .cost-result{position:sticky;top:100px}
}

.cost-fields.cost-discount{grid-template-columns:repeat(2,minmax(0,1fr));max-width:430px}
.cost-breakdown .cost-profit,.cost-breakdown .cost-loss{margin-top:8px;border-top:1px solid #688298;padding-top:10px;font-weight:750}
.cost-breakdown .cost-profit dd{color:#a7f3d0}
.cost-breakdown .cost-loss dd{color:#fecaca}
