:root {
  --application-title-size:clamp(28px,3.6vw,40px);
  --application-lead-height:22px;
  --application-header-height:calc(66px + var(--application-title-size) * 1.15 + var(--application-lead-height) + 24px);
  scroll-padding-top:calc(var(--application-header-height) + 12px);
}
.application {padding-block:14px 64px}
.site-header .return {margin-inline-start:auto}
.application-header h1 {padding-block:12px 4px;font-size:var(--application-title-size);line-height:1.15;text-align:center}
.application-header .lead {min-height:calc(var(--application-lead-height) + 8px);padding:0 8px 8px;font-size:13px;line-height:22px;text-align:center;text-wrap:balance}
@media(max-width:319px) { :root {--application-lead-height:44px} }
.application-layout {display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:22px;align-items:start}
.application-fields {display:grid;gap:16px;min-width:0}
.apply-panel {background:#fffef9;border:1px solid #d9d7cc;border-radius:14px;padding:clamp(16px,2.5vw,28px)}
.apply-panel h2 {font-size:22px;margin-bottom:15px}
.apply-panel fieldset {margin:0 0 18px;padding:0;border:0;min-width:0}
.apply-panel fieldset:last-child {margin-bottom:0}
.apply-panel legend {padding:0;margin-bottom:8px;font-weight:650}
.application .option-grid.three {grid-template-columns:repeat(3,minmax(0,1fr))}
.application .option-grid label {grid-template-columns:1fr;gap:4px;padding:12px}
.application .option-grid strong {font-size:14px}
.application .option-grid label:has(:disabled) {background:#edede6;color:#686861;cursor:default}
.application .option-grid label:has(:checked)::before {content:none}
#addon-options {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
#addon-options label {
  align-content:space-between;
  min-height:76px;
  padding:10px clamp(8px,1vw,12px);
}
#addon-options strong {text-wrap:balance}
#addon-options label:not(:has(:checked)) {border-color:#858f7f;background:#fffef9}
#addon-options label:not(:has(:checked)) small {color:#52604e}
#addon-options label:not(:has(:checked)):hover {border-color:#52634f;background:#eef1e9}
#device-options {grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
#device-options label {grid-template-columns:minmax(0,1fr) auto;gap:4px 10px}
#device-options .device-stock {grid-area:2/2;text-align:right}
#device-options .device-price {grid-area:1/2;white-space:nowrap}
.application .option-grid .period-choice {padding:0 0 11px;overflow:hidden;gap:0}
.period-choice .period-cap {grid-area:1/1;padding:8px 11px;background:var(--period-bg);color:var(--period-text);font-size:13px;font-weight:700}
.application .period-choice .period-rent {grid-area:2/1;padding:8px 11px 2px;font-size:clamp(16px,2vw,22px)}
.application .period-choice .period-average {grid-area:3/1;padding:0 11px;font-size:11px}
.period-choice:has(:checked) .period-cap::after {content:"✓";float:right}
#addon-note,#email-hint,#wechat-hint,.demo-notice {font-size:13px;margin-top:8px}
.apply-panel .team-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;background:#eef0e8;border-radius:10px;padding:13px}
.team-options label[for],.team-options legend {display:block;font-size:13px;font-weight:650;margin-bottom:7px}
.team-options .stepper button {flex:0 0 clamp(31px,6vw,44px)}
.team-options .team-plans label {position:relative;flex:1;cursor:pointer}
.team-options .team-plans {margin:0}
.application-fields section>label {display:block;margin-top:16px;font-size:14px;font-weight:600}
.application-fields section>label small {font-weight:400}
.application-fields section>label :is(input,textarea) {display:block;width:100%;margin-top:5px;padding:10px;border:1px solid #c9c9bf;border-radius:7px;background:white;font:inherit;font-weight:400}
.apply-summary {background:#eef0e8;min-width:0}
@media(min-width:741px) {
  .apply-summary {
    position:sticky;
    top:calc(var(--application-header-height) + 16px);
    max-height:calc(100dvh - var(--application-header-height) - 32px);
    overflow:auto;
  }
}
.apply-confirm h2 {margin-bottom:12px}
.confirm-checks legend {font-size:13px;color:#565f52}
.confirm-checks label {display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border:1px solid #d9ded2;border-radius:8px;background:#f7f8f2;font-size:14px;line-height:1.6;cursor:pointer}
.confirm-checks label+label {margin-top:8px}
.confirm-checks input {flex:none;width:17px;height:17px;margin:3px 0 0;accent-color:#36483e}
.confirm-checks label:has(:checked) {border-color:#83917d;background:#eef0e8}
.policy-links {display:flex;flex-wrap:wrap;gap:6px 12px}
.policy-links :is(button,a) {padding:0;border:0;background:transparent;color:#354a39;font-size:13px;font-weight:650;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#reservation-notice {
  width:min(640px,calc(100% - 24px));
  max-height:min(780px,calc(100dvh - 24px));
  padding:0;
  overflow:hidden;
}
#reservation-notice[open] {display:flex;flex-direction:column}
#reservation-notice::backdrop {background:#20251d80}
.notice-heading,.notice-actions {padding:14px clamp(16px,4vw,26px);flex:none}
.notice-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #dadbd0}
.notice-heading h2 {font-size:clamp(20px,4vw,26px)}
.notice-close {width:42px;height:42px;border:0;border-radius:8px;background:#eceee5;color:var(--ink);font-size:22px;cursor:pointer}
.notice-body {padding:18px clamp(16px,4vw,26px);min-height:0;overflow-y:auto;overscroll-behavior:contain;font-size:14px}
.notice-body section+section {margin-top:20px}
.notice-body h3 {margin-bottom:7px;font-size:17px}
#reservation-notice .notice-body p {margin:0 0 8px}
.notice-body ul {padding-left:20px;line-height:1.65}
.notice-body strong {color:#263b2d}
.notice-refunds {padding:14px;border:1px solid #d5d9cb;border-radius:10px;background:#eef0e8}
.notice-actions {border-top:1px solid #dadbd0;text-align:right}
.summary-selection {margin-bottom:14px;padding:10px 12px;border-radius:9px;background:#f8f9f3}
.summary-selection div,.summary-lines div {gap:8px;padding:6px 0;font-size:14px}
.summary-selection dd,.summary-lines dd {text-align:right}
.summary-lines dd,.apply-total strong {font-variant-numeric:tabular-nums}
.apply-total {display:flex;align-items:baseline;justify-content:space-between;gap:8px;border-top:1px solid #c9cfc1;margin-top:8px;padding-top:12px}
.apply-total strong {font-size:32px;letter-spacing:-.04em}
.payment-note {font-size:12px}
.apply-confirm .cta {width:100%;margin-top:12px}
.apply-summary .apply-wechat {width:100%;margin-top:14px}
.application [hidden] {display:none}
#receipt p {margin:8px 0} #receipt .cta {margin-top:12px}
#submit-error {color:#8c3827;font-size:13px}
.mobile-summary {display:none}
@media(max-width:740px) {
  .application {padding-block:12px 28px}
  .application-footer {padding-bottom:calc(60px + env(safe-area-inset-bottom))}
  .application-layout {grid-template-columns:1fr;gap:14px}
  .apply-total strong {font-size:28px}
  .mobile-summary {position:fixed;z-index:5;inset:auto 0 0;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:13px 5% calc(13px + env(safe-area-inset-bottom));background:#eef0e8;color:#253729;border-top:1px solid #c9cfc1;font-size:13px}
  .mobile-summary strong {margin-left:5px;font-size:17px}
}
