@import url('../../fonts/noto-sans-tc/font.css');

:root {
  --green: #009e4f;
  --green-dark: #00783d;
  --green-soft: #eef8f1;
  --green-pale: #f6fbf8;
  --line: #dbe5df;
  --ink: #111827;
  --muted: #5f6b7a;
  --footer: #3f474f;
  --orange: #d97706;
  --blue: #0b68b7;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #f8faf9; }
body {
  margin: 0;
  color: var(--ink);
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  letter-spacing: 0;
  overflow-x: clip;
}
body.modal-page { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

.page-shell {
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 0 30%, rgba(0, 158, 79, 0.06), transparent 18rem),
    radial-gradient(circle at 100% 72%, rgba(0, 158, 79, 0.05), transparent 18rem),
    linear-gradient(180deg, #fff 0, #f8fbfa 42%, #fff 100%);
}

.container-page {
  width: min(100% - 56px, 1160px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 5px solid var(--green);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 10px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(8px);
}

.brand-logo { width: min(360px, 58vw); height: auto; flex: 0 0 auto; }
.logo-link {
  display: flex;
  height: 46px;
  flex: 0 1 auto;
  align-items: flex-start;
  overflow: hidden;
  min-width: 0;
}
.home-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8dedb;
  border-radius: 999px;
  background: linear-gradient(#fff, #f2f4f3);
  padding: 8px 16px;
  color: #111827;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  white-space: nowrap;
}
.site-header .home-button { display: none; }
.home-button:hover, .home-button:focus-visible { border-color: #9bd7b4; color: var(--green-dark); outline: none; }
.home-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
}

.icon { width: 1.35em; height: 1.35em; flex: 0 0 auto; fill: currentColor; }
.text-brand { color: var(--green); }
.page-main { padding-bottom: 32px; }
.home-entry-main { padding-bottom: 104px; }
.home-notice-shortcut { display: none; }

.hero-block {
  display: grid;
  min-height: 215px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  gap: 30px;
  align-items: center;
  padding-block: 34px 18px;
}
.hero-copy { max-width: 680px; }
.hero-title, .section-title {
  margin: 0;
  color: #090d12;
  font-weight: 700;
  line-height: 1.28;
}
.hero-title { font-size: clamp(2.75rem, 5.4vw, 4rem); }
.section-title { font-size: clamp(2.25rem, 4.4vw, 3.15rem); }
.hero-text {
  margin: 16px 0 0;
  max-width: 640px;
  color: #27313c;
  font-size: 1.06rem;
  line-height: 1.85;
}
.hero-asset {
  width: 100%;
  max-height: 215px;
  object-fit: contain;
  object-position: center bottom;
}
.hero-service-hours {
  display: flex;
  min-width: 0;
  align-self: stretch;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid #cfe5d7;
  padding-left: clamp(14px, 1.8vw, 24px);
}
.hero-service-hours h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 700;
}
.hero-service-hours p {
  margin: 5px 0 0;
  color: #3f4b58;
  font-size: .92rem;
  line-height: 1.55;
}
.hero-service-hours p > span { display: block; }
.hero-service-hours-time {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
}
.hero-service-hours .hero-service-hours-time > span { white-space: nowrap; }

.dot-band { position: relative; }
.home-entry-main .service-section { margin-top: 68px; }
.dot-band::before,
.dot-band::after {
  content: '';
  position: absolute;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0, 158, 79, 0.62) 2px, transparent 2.4px);
  background-size: 19px 19px;
  opacity: 0.72;
  z-index: 0;
}
.dot-band > * { position: relative; z-index: 1; }
.dot-band::before { width: 530px; height: 96px; left: -90px; top: -34px; clip-path: ellipse(64% 45% at 50% 50%); }
.dot-band::after { width: 230px; height: 116px; right: -78px; bottom: 10px; }

.panel,
.soft-panel,
.feature-card,
.service-card,
.office-card,
.choice-card,
.quick-card,
.agent-card,
.selection-panel,
.form-panel,
.notice-panel,
.faq-bar {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.06);
}
.soft-panel {
  border-color: #bde5cc;
  background: linear-gradient(135deg, #f4fbf7, #ffffff);
}

.feature-strip {
  display: grid;
  margin-top: -8px;
  margin-bottom: 26px;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.feature-card {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 14px;
  padding: 14px;
}
.feature-icon,
.icon-box {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #06b95e, #008d47);
  color: #fff;
  box-shadow: inset 0 -10px 18px rgba(0, 120, 61, 0.25);
}
.feature-icon { width: 50px; height: 50px; padding: 12px; }
.feature-card h2 { margin: 0; font-size: 1.02rem; font-weight: 700; }
.feature-card p { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.65; }

.section-heading { position: relative; z-index: 1; margin-bottom: 18px; text-align: center; }
.heading-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
}
.section-heading h2 { margin: 10px 0 0; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; }
.section-heading p { margin: 8px auto 0; max-width: 620px; color: #566171; line-height: 1.8; }
.service-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.service-card {
  display: flex;
  grid-column: span 2;
  min-height: 158px;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.service-card:nth-child(4) { grid-column: 2 / span 2; }
.service-card:nth-child(5) { grid-column: 4 / span 2; }
.service-card:hover, .service-card:focus-visible,
.office-card:hover, .office-card:focus-within,
.agent-card:hover, .agent-card:focus-within,
.quick-card:hover {
  border-color: #8ed3a8;
  box-shadow: 0 9px 24px rgba(15, 23, 42, 0.1);
  outline: none;
}
.service-card:hover { transform: translateY(-1px); }
.service-wide { grid-column: span 2; }
.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card-title-row h3 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.65rem); font-weight: 700; }
.service-card p { margin: 8px 0 0; color: #53606f; line-height: 1.65; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--green-dark);
  font-weight: 700;
}
.tag {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  border-radius: 8px;
  background: #dff7e8;
  padding: 4px 9px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.service-card .tag { display: none; }
.tag-green { background: #dff7e8; color: var(--green-dark); }
.tag-orange { background: #fff1d6; color: var(--orange); }
.tag-blue { background: #e6f2ff; color: var(--blue); }
.tag-gray { background: #e9edf2; color: #586374; }

.help-grid {
  display: grid;
  margin-top: 18px;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-entry-main > .help-grid { margin-top: 76px; }
.single-row { margin-top: 20px; }
.panel-title, .panel-heading {
  margin: 0;
  color: #111827;
  font-weight: 700;
}
.panel-title { font-size: 1.25rem; }
.panel-subtitle {
  margin: 4px 0 0;
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1.6;
}
.panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1.6rem;
}
.panel-heading .icon { color: var(--green); }
.help-card { display: flex; justify-content: space-between; gap: 16px; overflow: hidden; }
.support-figure {
  display: grid;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  place-items: center;
  align-self: end;
  border-radius: 999px;
  background: #dff7e8;
  color: var(--green);
}
.support-figure .icon { width: 58px; height: 58px; }
.support-figure.mini { width: 92px; height: 72px; border-radius: 28px; opacity: 0.75; }
.faq-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 12px 18px;
}
.faq-bar a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #3f4a59;
  font-size: 0.94rem;
}
.faq-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
}
.faq-more { margin-left: auto; color: var(--green-dark) !important; font-weight: 700; }

.stepper {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  padding: 20px 24px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}
.stepper-track {
  display: flex;
  min-width: 940px;
  align-items: flex-start;
}
.stepper-mobile-summary { display: none; }
.step-item {
  position: relative;
  width: 118px;
  flex: 0 0 118px;
  text-align: center;
  color: #717b86;
  font-weight: 600;
}
.step-item::before {
  content: '';
  position: absolute;
  top: 17px;
  left: -43px;
  width: 86px;
  height: 3px;
  border-radius: 999px;
  background: #d6dde3;
}
.step-item:first-child::before { display: none; }
.step-item.done::before, .step-item.current::before { background: var(--green); }
.step-dot {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: #aab1b9;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}
.step-dot .icon { width: 19px; height: 19px; }
.step-item.done .step-dot, .step-item.current .step-dot { background: linear-gradient(180deg, #04a954, #007c3f); }
.step-item.current { color: var(--green-dark); }
.step-item p { margin: 10px 0 0; font-size: 0.82rem; line-height: 1.45; }

.content-title { margin: 26px 0 0; font-size: clamp(1.8rem, 4vw, 2.35rem); font-weight: 700; }
.content-lead { color: #596575; line-height: 1.8; }
.office-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  margin-top: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.branch-office-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.office-card, .agent-card { padding: 22px; }
.office-card p { margin: 12px 0 0; color: #4c5968; line-height: 1.65; }
.office-card .primary-btn, .office-card .secondary-btn { margin-top: 22px; }
.is-active {
  border-color: var(--green) !important;
  background: linear-gradient(135deg, #f3fbf6, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(0, 158, 79, 0.25), 0 8px 22px rgba(0, 158, 79, 0.08);
}
.notice-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding: 18px 22px;
  border-color: #b7e1c7;
  background: linear-gradient(90deg, #f4fbf7, #fff);
}
.notice-panel > .icon { width: 44px; height: 44px; color: var(--green); }
.notice-panel p { margin: 0; flex: 1; line-height: 1.8; color: #344050; }

.primary-btn, .secondary-btn, .danger-btn, .ghost-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  padding: 10px 22px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.2;
  transition: background 170ms ease, border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}
.primary-btn {
  border-color: var(--green-dark);
  background: linear-gradient(180deg, #04b85c, #008b46);
  color: #fff;
  box-shadow: 0 8px 14px rgba(0, 120, 61, 0.2);
}
.primary-btn:hover, .primary-btn:focus-visible {
  background: linear-gradient(180deg, #00a955, #00783d);
  outline: none;
}
.primary-btn:disabled,
.primary-btn[aria-disabled="true"] {
  cursor: not-allowed;
  border-color: #94a3b8;
  background: #cbd5e1;
  color: #64748b;
  opacity: 1;
  box-shadow: none;
  transform: none;
}
.secondary-btn {
  border-color: #cbd5df;
  background: #fff;
  color: #243043;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}
.secondary-btn:hover, .secondary-btn:focus-visible { border-color: #8ed3a8; color: var(--green-dark); outline: none; }
.danger-btn { border-color: #ffb5b5; background: #fff; color: #e11d32; }
.danger-btn:hover, .danger-btn:focus-visible { border-color: #ef4444; outline: none; }
.ghost-btn { border-color: #a9dcbc; background: #fbfffc; color: var(--green-dark); }
.compact { min-height: 42px; padding-inline: 16px; }
.primary-btn.compact, .secondary-btn.compact { min-height: 44px; }
.choice-reset-btn,
.add-attachment-btn,
.email-verify-btn {
  border-width: 2px;
  border-color: #0a8d4a;
  background: linear-gradient(180deg, #ffffff, #f0fff6);
  color: #006b36;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
}
.choice-reset-btn:hover,
.choice-reset-btn:focus-visible,
.add-attachment-btn:hover,
.add-attachment-btn:focus-visible,
.email-verify-btn:hover,
.email-verify-btn:focus-visible {
  border-color: var(--green-dark);
  background: #eafff1;
  color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(0, 158, 79, 0.12), 0 5px 12px rgba(15, 23, 42, 0.1);
}
.choice-reset-btn { min-height: 38px; padding: 7px 14px; font-size: 0.9rem; }
.email-verify-btn {
  width: 140px;
  min-height: 52px;
  margin-top: 8px;
  margin-bottom: 0;
  padding-inline: 12px;
  white-space: nowrap;
}
.email-verify-btn:disabled {
  cursor: not-allowed;
  border-color: #94a3b8;
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  color: #475569;
  opacity: 1;
  box-shadow: none;
}
.busy { color: #b46200; background: #fff8e6; border-color: #ffd88a; }
.action-bar {
  display: grid;
  grid-template-columns: 220px 1fr minmax(260px, 360px);
  gap: 18px;
  align-items: center;
  margin-top: 20px;
}
.action-status { margin: 0; text-align: center; color: #4c5968; font-weight: 700; }
.action-status span { color: var(--green-dark); }
.triple-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.selection-panel, .form-panel { margin-top: 20px; padding: 22px; }
.current-choice { margin: 0 0 18px; text-align: right; color: #4c5968; font-weight: 700; }
.current-choice span { color: var(--green-dark); font-size: 1.25rem; }
.choice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
}
.choice-row p { margin: 0; }
.choice-branch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.choice-branch span {
  color: #4c5968;
  font-size: 1rem;
}
.email-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
  align-items: end;
}
.selection-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(210px, 250px) minmax(260px, 1fr) minmax(300px, 360px);
}
.choice-column {
  border-right: 1px dashed #cbd5df;
  padding-right: 24px;
}
.choice-column h2, .form-column h2 { margin: 0 0 16px; font-size: 1.28rem; font-weight: 700; }
.choice-card {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 14px;
  color: #344050;
  text-align: left;
}
.choice-card .icon { color: var(--green); }
.choice-check { margin-left: auto; color: var(--green); }
.number-dot {
  display: grid;
  min-width: 34px;
  height: 30px;
  padding: 0 7px;
  place-items: center;
  border-radius: 999px;
  background: #eef2f4;
  color: #586374;
  font-weight: 700;
}
.is-active .number-dot { background: var(--green); color: #fff; }
.form-column label, .field-stack label {
  display: block;
  margin-bottom: 18px;
  color: #111827;
  font-weight: 700;
}
.form-column label span, .field-stack label span {
  display: block;
  margin-top: 7px;
  color: #6b7280;
  font-size: 0.88rem;
  font-weight: 500;
}
.required-mark,
.form-column label .required-mark,
.field-stack label .required-mark {
  display: inline;
  margin: 0 3px 0 0;
  color: #ef1616;
  font-size: inherit;
  font-weight: 700;
}
.form-control {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border: 1px solid #cfd8df;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  color: #172033;
  font-weight: 400;
  outline: none;
}
.form-control::placeholder { color: #64748b; font-weight: 400; }
.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 158, 79, 0.14);
}
.compact-control { width: 160px; min-height: 42px; margin: 0 0 0 8px; }
.helper-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 4px;
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 700;
}
.field-error { margin: 8px 0 0; color: #ef4444; font-size: 0.9rem; font-weight: 700; }
.quick-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.quick-card { padding: 18px; }
.quick-card > .icon { color: var(--green); width: 36px; height: 36px; }
.quick-card h3 { margin: 10px 0; font-size: 1.35rem; font-weight: 700; }
.quick-card ul, .quick-card p { margin: 0; color: #4c5968; line-height: 1.65; }
.form-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.field-stack { min-width: 0; }
.taxpayer-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: start;
}
.taxpayer-form-section {
  min-width: 0;
  border: 1px solid #dfe8e1;
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}
.taxpayer-upload-section {
  margin-top: 22px;
}
.taxpayer-form-section-title {
  margin: 0 0 18px;
  border-left: 4px solid var(--green);
  padding-left: 12px;
  color: #13233a;
  font-size: 1.18rem;
  font-weight: 800;
}
.taxpayer-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.taxpayer-form-section label {
  display: block;
  margin-bottom: 18px;
  color: #111827;
  font-weight: 700;
}
.taxpayer-form-section label span {
  display: block;
  margin-top: 7px;
  color: #6b7280;
  font-size: 0.88rem;
  font-weight: 500;
}
.taxpayer-form-section label .required-mark,
.taxpayer-form-section .field-label .required-mark,
.taxpayer-check-item span {
  display: inline;
  margin-top: 0;
}
.taxpayer-form-section .required-mark {
  color: #ef1616;
}
.taxpayer-contact-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 110px;
  gap: 10px;
}
.taxpayer-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
}
.taxpayer-address-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.taxpayer-address-heading .field-label {
  margin: 0;
}
.taxpayer-inline-check {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin: 0 !important;
  color: #334155 !important;
  font-size: 0.95rem;
  font-weight: 700;
}
.taxpayer-inline-check input {
  width: 16px;
  height: 16px;
  accent-color: #059447;
}
.taxpayer-inline-check span {
  display: inline !important;
  margin-top: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}
.taxpayer-address-detail {
  grid-column: 1 / -1;
}
.input-with-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.input-with-button .form-control,
.taxpayer-contact-grid .form-control,
.taxpayer-address-grid .form-control {
  margin-top: 0;
}
.taxpayer-check-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.taxpayer-check-item {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 !important;
  border: 1px solid #dfe8e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px 14px;
}
.taxpayer-check-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
.taxpayer-form-section .taxpayer-check-item span {
  color: #111827;
  font-size: 0.96rem;
  font-weight: 700;
}
.taxpayer-writing-note {
  margin-bottom: 16px;
}
.taxpayer-writing-note,
.taxpayer-writing-note strong,
.taxpayer-writing-note li {
  color: #dc2626;
}
.taxpayer-writing-note ul,
.notice-panel-error ul {
  margin: 8px 0 0;
  padding-left: 22px;
}
.notice-panel-error {
  border-color: #fecaca;
  background: #fff7f7;
  color: #991b1b;
}
.form-field-group {
  margin-bottom: 18px;
  color: #111827;
  font-weight: 700;
}
.field-label {
  display: block;
  margin: 0;
  color: #111827;
  font-weight: 700;
}
.application-form-layout {
  display: grid;
  gap: 18px;
}
.application-section {
  border: 1px solid #dbe5df;
  border-radius: 12px;
  background: #fff;
  padding: 18px;
}
.application-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e4ece8;
  padding-bottom: 10px;
}
.application-section-heading h2 {
  margin: 0;
  color: #101827;
  font-size: 1.18rem;
  font-weight: 700;
}
.application-step-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #13233a;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}
.application-section-hint {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
}
.application-section-hint.is-danger,
.application-label-note.application-inline-danger,
.application-inline-danger {
  color: #dc2626;
}
.application-label-note {
  display: block;
  margin-top: 4px;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 600;
}
.application-note-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  border: 1px solid #b9dfc8;
  border-radius: 10px;
  background: #f3fbf6;
  padding: 12px 14px;
  color: #304252;
  line-height: 1.65;
}
.application-note-grid p { margin: 0; }
.application-note-warning {
  display: inline-block;
  color: #b91c1c;
  font-weight: 700;
}
.application-basic-grid,
.application-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
.application-field-label {
  display: block;
  margin: 0;
  color: #111827;
  font-weight: 700;
}
.application-field-label.wide { grid-column: 1 / -1; }
.application-choice-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.application-choice-grid.compact { max-width: 520px; }
.application-choice-stack {
  display: grid;
  gap: 12px;
}
.application-choice-pill,
.application-tax-title {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid #d3ded8;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: #172033;
  font-weight: 700;
  cursor: pointer;
}
.application-choice-pill.grow { flex: 1 1 320px; }
.application-choice-pill input,
.application-tax-title input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--green);
}
.application-choice-pill.is-disabled,
.application-tax-title.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.application-inline-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.compact-inline-control {
  flex: 1 1 260px;
  min-width: 220px;
  margin-top: 0;
}
.application-tax-grid {
  display: grid;
  gap: 14px;
}
.application-tax-card {
  border: 1px solid #e0e7e3;
  border-radius: 10px;
  background: #fbfdfc;
  padding: 14px;
}
.application-tax-title {
  border: 0;
  background: transparent;
  padding: 0;
}
.application-nested-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border-left: 3px solid #a8dcbc;
  padding-left: 14px;
}
.application-help-text {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
}
.application-warning-text {
  margin: 0;
  color: #dc2626;
  font-size: 0.9rem;
  font-weight: 700;
}
.application-nested-fields {
  display: grid;
  gap: 10px;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}
.application-address-row {
  display: grid;
  grid-template-columns: auto 150px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.application-address-row span {
  color: #334155;
  font-weight: 700;
  white-space: nowrap;
}
.application-address-row .form-control,
.application-plate-row .form-control {
  min-height: 46px;
  margin-top: 0;
}
.application-plate-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: #334155;
  font-weight: 700;
}
.application-dynamic-row {
  margin-top: 10px;
}
.application-remove-row-btn {
  min-height: 42px;
  padding-inline: 14px;
}
.application-add-row-btn {
  justify-self: flex-start;
  margin-top: 10px;
}
.application-select-field {
  width: min(100%, 420px);
}
.application-notification-card {
  display: grid;
  gap: 12px;
}
.application-legal-rep-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.application-representative-title,
.application-region-title {
  display: block;
  margin: 0 0 10px;
  color: #13233a;
  font-size: 1rem;
  font-weight: 800;
}
.application-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}
.compact-action {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.92rem;
}
.application-region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.application-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.application-related-link {
  color: var(--green-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.application-confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #d3ded8;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  color: #172033;
  font-weight: 700;
  line-height: 1.6;
}
.application-confirm-row input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--green);
}
.application-terms-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.35em;
}
.application-terms-list-cjk {
  list-style-type: cjk-ideographic;
}
.upload-box {
  border: 1px dashed #26a864;
  border-radius: 12px;
  background: #fbfffc;
  padding: 16px;
}
.upload-box h2 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.upload-box h2 span { color: #6b7280; font-size: 0.9rem; font-weight: 500; }
.upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.file-status {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: 8px;
  background: #f1f5f9;
  padding: 10px 14px;
  color: #64748b;
}
.upload-box p { margin: 10px 0 0; color: #667085; font-size: 0.9rem; }
.attachment-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.attachment-slot {
  border: 1px solid #d8eadf;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px;
}
.attachment-slot .upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: end;
}
.attachment-add-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.attachment-limit-status {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
}
.document-upload-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 18px;
  margin-top: 16px;
  align-items: start;
}
.document-upload-grid.single-upload {
  grid-template-columns: minmax(0, 1fr);
}
.certificate-upload-panel {
  border-color: #aee6c6;
  background: linear-gradient(180deg, #fbfffc 0%, #ffffff 100%);
}
.upload-card {
  min-width: 0;
  border: 1px solid #d6e2dc;
  border-radius: 10px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}
.identity-upload-group {
  display: grid;
  gap: 12px;
}
.file-pick-row {
  position: relative;
  display: grid;
  gap: 7px;
  margin: 0;
  color: #111827;
  font-weight: 700;
}
.file-pick-title {
  display: block;
  color: #111827;
  font-size: 0.96rem;
  font-weight: 700;
}
.file-pick-title .required-mark,
.document-upload-grid .required-mark {
  display: inline;
  margin: 0 3px 0 0;
  color: #ef1616;
  font-size: inherit;
  font-weight: 700;
}
.file-pick-control {
  cursor: pointer;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  min-height: 48px;
  align-items: center;
  overflow: hidden;
  border: 1.5px solid #cbd5df;
  border-radius: 8px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.file-pick-row:hover .file-pick-control,
.file-pick-row:focus-within .file-pick-control {
  border-color: #8ed3a8;
  box-shadow: 0 0 0 3px rgba(0, 158, 79, 0.1);
}
.file-pick-button {
  display: grid;
  height: 100%;
  place-items: center;
  border-right: 1px solid #d9e2ea;
  background: linear-gradient(180deg, #f8fafc, #eef3f7);
  color: #1f2937;
  font-size: 0.92rem;
  font-weight: 800;
}
.file-pick-name {
  min-width: 0;
  overflow: hidden;
  padding: 0 12px;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-pick-name.is-selected {
  color: var(--green-dark);
  font-weight: 700;
}
.file-input-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.existing-upload-preview {
  display: grid;
  gap: 10px;
  border: 1px solid #d8eadf;
  border-radius: 8px;
  background: #fbfffc;
  padding: 10px;
}
.existing-upload-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.existing-upload-heading span {
  color: #0f7a3f;
  font-size: 0.9rem;
  font-weight: 800;
}
.existing-upload-heading strong {
  color: #111827;
  font-size: 0.92rem;
  font-weight: 700;
}
.existing-upload-preview img {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  border: 1px dashed #bfd7ca;
  border-radius: 8px;
  background: #fff;
}
.existing-upload-preview p {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 600;
}
.attachment-slot .upload-row { margin-top: 0; }
.attachment-delete {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff;
  color: #ef1616;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}
.attachment-delete:hover,
.attachment-delete:focus-visible {
  border-color: #ef4444;
  background: #fff5f5;
  outline: none;
}

.task-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.45fr);
  margin-top: 20px;
}
.case-summary { font-size: 1.18rem; line-height: 1.8; }
.case-summary span { color: var(--green-dark); font-weight: 700; }
.case-list {
  margin: 20px 0 0;
  overflow: hidden;
  border: 1px solid #d6dee6;
  border-radius: 10px;
  background: #fff;
}
.case-list div {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 12px;
  border-top: 1px solid #e4e9ee;
  padding: 12px 14px;
}
.case-list div:first-child { border-top: 0; }
.case-list dt { color: #566171; font-weight: 700; }
.case-list dd { margin: 0; color: #111827; font-weight: 700; }
.case-list div:first-child dd, .case-list div:last-child dd { color: var(--green-dark); font-weight: 700; }
.recording-alert {
  margin: 18px 0 0;
  color: #ef1616;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.55;
}
.recording-alert.small { font-size: 1.18rem; }
.agent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.agent-card { padding: 20px; }
.agent-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 16px; }
.agent-top h3 { margin: 0; font-weight: 700; }
.agent-icon { width: 48px; height: 48px; color: #ef7f3b; }
.is-disabled { opacity: 0.76; }

.video-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: 360px minmax(0, 1fr);
  margin-top: 20px;
}
.video-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.video-toolbar > div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.toolbar-controls label { font-weight: 700; }
.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  border: 1px solid #d6dee6;
  border-radius: 10px;
  background: #f7faf9;
  padding: 12px;
  text-align: center;
  color: var(--green-dark);
  font-weight: 700;
}
.status-strip span { display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.video-screen {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid #c8d2dc;
  border-radius: 14px;
  background:
    radial-gradient(circle at 48% 28%, #ffffff 0 10%, transparent 11%),
    linear-gradient(135deg, #f5f7f9, #e9eef2);
}
.remote-person {
  display: grid;
  height: 100%;
  min-height: 390px;
  place-items: center;
  align-content: center;
}
.avatar-head { width: 116px; height: 116px; border-radius: 50%; background: #20242b; }
.avatar-body { width: 190px; height: 150px; margin-top: -8px; border-radius: 70px 70px 18px 18px; background: #20242b; }
.avatar-head.small { width: 42px; height: 42px; }
.avatar-body.small { width: 62px; height: 46px; }
.remote-person p {
  margin: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 8px 16px;
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}
.local-video {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: grid;
  width: 132px;
  min-height: 116px;
  place-items: center;
  border: 1px solid #7a8794;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.system-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  border: 1px solid #bee4cc;
  border-radius: 10px;
  background: #f3fbf6;
  padding: 12px 14px;
  color: #334155;
  line-height: 1.7;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0f172a;
  padding: 12px 18px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
}
.modal-backdrop { background: rgba(15, 23, 42, 0.58); }
.signature-modal {
  width: min(100%, 560px);
  border-radius: 16px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}
.consent-modal {
  display: flex;
  width: min(100%, 700px);
  max-height: calc(100dvh - 32px);
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}
.consent-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
}
.consent-heading .heading-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
}
.consent-heading .eyebrow {
  margin: 0 0 3px;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 700;
}
.consent-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 700;
}
.consent-copy {
  min-height: 0;
  margin-top: 16px;
  overflow: auto;
  padding-right: 6px;
  color: #4b5563;
  line-height: 1.75;
}
.consent-copy:focus-visible {
  border-radius: 8px;
  outline: 2px solid #8ed3a8;
  outline-offset: 3px;
}
.consent-copy p { margin: 0 0 14px; }
.consent-copy ol,
.consent-copy ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.5rem;
}
.consent-copy ol {
  color: #374151;
  list-style-position: outside;
}
.consent-copy ul {
  gap: 6px;
  margin-top: 8px;
  color: #4b5563;
  list-style-type: disc;
}
.consent-copy li { padding-left: 0.15rem; }
.consent-copy strong {
  color: #243043;
  font-weight: 600;
}
.consent-policy {
  display: block;
  margin-top: 14px;
}
.consent-policy a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent-policy a:hover,
.consent-policy a:focus-visible {
  color: var(--green);
  outline: none;
}
.consent-actions {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(260px, 1.4fr);
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.consent-actions .primary-btn,
.consent-actions .secondary-btn {
  min-height: 52px;
  white-space: normal;
  text-align: center;
}
.modal-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-title-row h2 { margin: 0; font-size: 1.9rem; font-weight: 700; }
.modal-title-row p { margin: 12px 0 0; color: #374151; line-height: 1.7; }
.modal-title-row button { border: 0; background: transparent; color: #64748b; font-size: 2rem; line-height: 1; }
.modal-title-row button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 999px;
}
.modal-title-row button:hover, .modal-title-row button:focus-visible {
  background: #f1f5f9;
  outline: none;
}
.signature-pad {
  position: relative;
  min-height: 150px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #cbd5df;
  border-radius: 10px;
  background-image:
    linear-gradient(#eef2f4 1px, transparent 1px),
    linear-gradient(90deg, #eef2f4 1px, transparent 1px);
  background-size: 18px 18px;
  touch-action: none;
}
.signature-pad canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 180px;
  cursor: crosshair;
}
.signature-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: #94a3b8;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0;
  pointer-events: none;
}

.finish-alert {
  display: flex;
  gap: 10px;
  margin: 16px 0;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff5f5;
  padding: 14px;
  color: #ef1616;
  font-weight: 700;
}
.finish-result { display: flex; flex-direction: column; gap: 16px; }
.success-card {
  border: 1px solid #bde5cc;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4fbf7, #ffffff);
  padding: 24px;
  text-align: center;
}
.success-mark {
  display: inline-grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
}
.success-mark .icon { width: 48px; height: 48px; }
.success-card h3 { margin: 18px 0 22px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.success-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.success-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d6dee6;
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  font-weight: 700;
}
.success-list .icon { color: var(--green); }
.mail-note {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  border: 1px solid #a7cbff;
  border-radius: 10px;
  background: #eef6ff;
  padding: 16px;
  color: #155faa;
  text-align: left;
}
.mail-note > .icon { width: 42px; height: 42px; }
.mail-note p { margin: 0 0 4px; font-weight: 700; }
.mail-note p:last-child { color: #334155; font-weight: 500; }
.certificate-check-panel .panel-title { margin-bottom: 14px; }
.certificate-summary-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
.certificate-summary-main-column {
  display: grid;
  gap: 20px;
  min-width: 0;
  order: 2;
}
.certificate-summary-side-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.application-identity-note {
  border-color: #fecaca;
  background: #fff7f7;
}
.application-identity-note p {
  margin: 0;
  color: #dc2626;
  font-weight: 800;
  line-height: 1.7;
}
.case-meta-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.case-meta-grid div {
  display: grid;
  gap: 6px;
  border: 1px solid #bde5cc;
  border-radius: 10px;
  background: #fbfffc;
  padding: 14px;
}
.case-meta-grid span {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
}
.case-meta-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--green-dark);
  font-size: 1.1rem;
  font-weight: 800;
}
.summary-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.summary-field-grid.compact {
  grid-template-columns: 1fr;
}
.summary-field {
  display: grid;
  min-width: 0;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
}
.summary-field span {
  color: #64748b;
  font-weight: 700;
}
.summary-field strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #111827;
  font-weight: 700;
}
.certificate-staff-panel {
  position: static;
}
.staff-identity-notice {
  margin: 0 0 10px;
  color: #dc2626;
  font-weight: 800;
  line-height: 1.65;
}
.staff-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.staff-panel-heading .panel-title { margin-bottom: 0; }
.staff-choice-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.staff-choice-card {
  display: grid;
  border: 1px solid #d6e2dc;
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.staff-choice-card.is-available {
  border-color: var(--green);
  background: linear-gradient(180deg, #f8fffb, #fff);
  box-shadow: 0 8px 24px rgba(0, 158, 79, 0.1);
}
.staff-choice-card.is-disabled {
  background: #fbfcfd;
  opacity: 0.78;
}
.staff-choice-body,
.staff-choice-top {
  display: grid;
  min-width: 0;
  gap: 10px;
}
.staff-choice-top {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.staff-choice-top strong {
  min-width: 0;
  color: #111827;
  font-size: 1.06rem;
  font-weight: 800;
}
.staff-choice-top em {
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.staff-choice-detail {
  display: grid;
  gap: 4px;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.6;
}
.staff-start-btn {
  width: 100%;
  justify-content: center;
  min-height: 50px;
  margin-top: 4px;
}
.staff-start-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
}
.staff-choice-empty {
  border: 1px dashed #bfd7ca;
  border-radius: 10px;
  background: #f8fafc;
  padding: 16px;
}
.personal-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.personal-preview-grid.is-vertical {
  grid-template-columns: 1fr;
}
.preview-card {
  min-width: 0;
  border: 1px solid #dbe7df;
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}
.preview-card h4 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
}
.preview-frame {
  display: grid;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #bfd7ca;
  border-radius: 8px;
  background: #f8fafc;
}
.preview-frame img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}
.preview-frame span,
.attachment-preview-empty {
  color: #64748b;
  font-weight: 700;
}
.attachment-preview-list {
  display: grid;
  gap: 10px;
}
.attachment-preview-item {
  display: grid;
  min-height: 48px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px 12px;
}
.attachment-preview-item span {
  color: #64748b;
  font-weight: 700;
}
.attachment-preview-item div {
  display: grid;
  min-width: 0;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.attachment-preview-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #111827;
  font-weight: 700;
}
.attachment-download-btn {
  min-height: 38px;
  padding: 7px 14px;
  white-space: nowrap;
}
.attachment-preview-empty {
  display: grid;
  min-height: 120px;
  place-items: center;
  border: 1px dashed #bfd7ca;
  border-radius: 8px;
  background: #f8fafc;
}

@media (min-width: 981px) {
  .site-header .home-button {
    display: inline-flex;
  }

  .entry-home-page .site-header .home-button {
    display: none;
  }

  .entry-service-flow-page .hero-block {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 20px;
    margin: 16px 0 14px;
    border: 1px solid #d8ebe0;
    border-radius: 16px;
    background: linear-gradient(120deg, #f3faf6, #fff);
    padding: 12px 22px;
  }

  .entry-service-flow-page .hero-block .section-title {
    font-size: 2.15rem;
    line-height: 1.2;
  }

  .entry-service-flow-page .hero-block .hero-text {
    display: none;
  }

  .entry-service-flow-page .hero-block .hero-asset {
    max-height: 86px;
  }

  .home-entry-main {
    padding-bottom: 16px;
  }

  .home-entry-main > .hero-block {
    min-height: 0;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .7fr) minmax(0, 1fr);
    gap: clamp(16px, 2vw, 28px);
    margin-top: 18px;
    border: 1px solid #d8ebe0;
    border-radius: 18px;
    background: linear-gradient(120deg, #f3faf6, #fff);
    padding: 18px 28px;
  }

  .home-entry-main .hero-title {
    font-size: clamp(2.5rem, 3vw, 3.15rem);
    line-height: 1.15;
  }

  .home-entry-main .hero-text {
    margin-top: 8px;
    line-height: 1.6;
  }

  .home-entry-main .hero-asset {
    max-height: 120px;
  }

  .home-entry-main .service-section {
    margin-top: 20px;
  }

  .home-entry-main .service-section::before,
  .home-entry-main .service-section::after {
    display: none;
  }

  .home-entry-main .section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    text-align: left;
  }

  .home-entry-main .heading-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
  }

  .home-entry-main .section-heading h2 {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .home-entry-main .service-grid {
    gap: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .home-entry-main .service-card,
  .home-entry-main .service-card:nth-child(4),
  .home-entry-main .service-card:nth-child(5) {
    grid-column: auto;
    min-height: 174px;
    gap: 8px;
    padding: 14px;
  }

  .home-entry-main .service-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .home-entry-main .service-card .icon-box .icon {
    width: 27px;
    height: 27px;
  }

  .home-entry-main .service-card .card-title-row h3 {
    font-size: 1.18rem;
    line-height: 1.3;
  }

  .home-entry-main .service-card p {
    margin-top: 4px;
    font-size: .9rem;
    line-height: 1.5;
  }

  .home-entry-main .service-card .card-link {
    gap: 5px;
    font-size: .9rem;
  }

  .home-entry-main > .help-grid {
    margin-top: 20px;
  }
}

.site-footer {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 20rem),
    linear-gradient(180deg, #4a525b, #333a42);
  color: #f2f4f7;
}
.footer-main {
  display: grid;
  gap: 42px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-block: 28px 20px;
}
.footer-main h2 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 700; }
.footer-main p { margin: 0; color: rgba(255, 255, 255, 0.88); line-height: 1.85; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-block: 14px 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .home-notice-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 2px;
    border: 2px solid #008f4f;
    border-radius: 999px;
    background: #fff;
    color: #006c3c;
    padding: 9px 16px;
    font-weight: 900;
    text-decoration: none;
  }
  .home-notice-shortcut .icon { width: 18px; height: 18px; }
  #entry-home-notices { scroll-margin-top: 16px; }
  .feature-strip, .service-grid, .office-grid, .help-grid, .quick-card-grid, .form-two-col, .taxpayer-form-grid, .application-basic-grid, .application-upload-grid, .document-upload-grid, .summary-field-grid, .case-meta-grid, .certificate-summary-layout, .personal-preview-grid, .task-grid, .video-layout, .footer-main {
    grid-template-columns: 1fr;
  }
  .branch-office-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certificate-staff-panel { position: static; }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
  }
  .service-wide { grid-column: auto; }
  .selection-grid { grid-template-columns: 1fr; }
  .choice-column { border-right: 0; border-bottom: 1px dashed #cbd5df; padding-right: 0; padding-bottom: 18px; }
  .action-bar, .triple-actions { grid-template-columns: 1fr; }
  .action-status { order: -1; }
  .video-toolbar { align-items: stretch; flex-direction: column; }
}

@media (max-width: 980px) {
  .container-page { width: min(100% - 24px, 1160px); }
  .site-header .container-page { min-height: 66px; }
  .logo-link { height: 44px; }
  .brand-logo { width: min(285px, 68vw); }
  .entry-service-flow-page .site-header .home-button {
    display: inline-flex;
    flex: 0 0 auto;
  }
  .home-button { min-height: 44px; padding: 7px 10px; font-size: 0.88rem; }
  .home-button span:first-child { display: none; }
  .header-case-status-button { width: 44px; min-width: 44px; padding-inline: 0; border-radius: 999px; }
  .header-case-status-button span { display: none; }
  .hero-block { grid-template-columns: 1fr; min-height: 0; padding-block: 30px 20px; }
  .hero-title { font-size: clamp(2.35rem, 13vw, 3.2rem); }
  .section-title { font-size: clamp(2.05rem, 11vw, 2.8rem); }
  .hero-text { font-size: 1rem; line-height: 1.8; }
  .hero-asset { max-height: 210px; }
  .entry-service-flow-page .hero-block {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 10px;
    margin: 10px 0 8px;
    border: 1px solid #d8ebe0;
    border-radius: 12px;
    background: linear-gradient(120deg, #f3faf6, #fff);
    padding: 9px 12px;
  }
  .entry-service-flow-page .hero-copy { min-width: 0; }
  .entry-service-flow-page .hero-block .section-title {
    font-size: clamp(1.45rem, 7vw, 1.75rem);
    line-height: 1.2;
  }
  .entry-service-flow-page .hero-block .hero-text { display: none; }
  .entry-service-flow-page .hero-block .hero-asset { max-height: 68px; }
  .entry-service-flow-page .stepper {
    margin-inline: 0;
    overflow: hidden;
    border-radius: 12px;
    padding: 10px 12px;
  }
  .entry-service-flow-page .stepper-track { display: none; }
  .entry-service-flow-page .stepper-mobile-summary {
    display: grid;
    gap: 8px;
  }
  .stepper-mobile-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .stepper-mobile-heading span {
    border-radius: 999px;
    background: #e8f7ee;
    padding: 4px 9px;
    color: var(--green-dark);
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
  }
  .stepper-mobile-heading strong {
    overflow: hidden;
    color: #172033;
    font-size: 1rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .stepper-mobile-progress {
    display: block;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #dce3e7;
  }
  .stepper-mobile-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
  }
  .entry-service-flow-page .page-main { padding-bottom: 20px; }
  .entry-service-flow-page .selection-panel,
  .entry-service-flow-page .form-panel {
    margin-top: 12px;
    padding: 14px;
  }
  .entry-service-flow-page .current-choice {
    margin-bottom: 12px;
    font-size: .9rem;
    line-height: 1.5;
  }
  .entry-service-flow-page .current-choice span { font-size: 1.05rem; }
  .entry-service-flow-page .selection-grid,
  .entry-service-flow-page .form-two-col,
  .entry-service-flow-page .taxpayer-form-grid,
  .entry-service-flow-page .application-form-layout {
    gap: 12px;
  }
  .entry-service-flow-page .choice-column {
    padding-bottom: 12px;
  }
  .entry-service-flow-page .choice-column h2,
  .entry-service-flow-page .form-column h2 {
    margin-bottom: 10px;
    font-size: 1.1rem;
  }
  .entry-service-flow-page .choice-card {
    min-height: 46px;
    gap: 10px;
    margin-bottom: 6px;
    padding: 8px 10px;
  }
  .entry-service-flow-page .number-dot {
    min-width: 30px;
    height: 28px;
  }
  .entry-service-flow-page .form-column label,
  .entry-service-flow-page .field-stack label,
  .entry-service-flow-page .taxpayer-form-section label,
  .entry-service-flow-page .form-field-group {
    margin-bottom: 12px;
  }
  .entry-service-flow-page .form-control {
    min-height: 46px;
    margin-top: 6px;
    border-radius: 8px;
    padding: 10px 12px;
  }
  .entry-service-flow-page .field-error { margin-top: 5px; }
  .entry-service-flow-page .panel-heading {
    margin-bottom: 12px;
    font-size: 1.3rem;
  }
  .entry-service-flow-page .content-title {
    margin-top: 16px;
    font-size: 1.55rem;
  }
  .entry-service-flow-page .office-grid,
  .entry-service-flow-page .agent-grid,
  .entry-service-flow-page .quick-card-grid {
    gap: 10px;
    margin-top: 12px;
  }
  .entry-service-flow-page .office-card,
  .entry-service-flow-page .agent-card,
  .entry-service-flow-page .quick-card {
    padding: 14px;
  }
  .entry-service-flow-page .office-card p {
    margin-top: 6px;
    line-height: 1.5;
  }
  .entry-service-flow-page .office-card .primary-btn,
  .entry-service-flow-page .office-card .secondary-btn {
    margin-top: 12px;
  }
  .entry-service-flow-page .agent-top { margin-bottom: 10px; }
  .entry-service-flow-page .notice-panel {
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
  }
  .entry-service-flow-page .notice-panel > .icon {
    width: 32px;
    height: 32px;
  }
  .entry-service-flow-page .notice-panel p { line-height: 1.55; }
  .entry-service-flow-page .action-bar,
  .entry-service-flow-page .triple-actions {
    gap: 8px;
    margin-top: 12px;
  }
  .entry-service-flow-page .primary-btn,
  .entry-service-flow-page .secondary-btn,
  .entry-service-flow-page .danger-btn,
  .entry-service-flow-page .ghost-btn {
    min-height: 44px;
    padding: 9px 14px;
  }
  .entry-service-flow-page .taxpayer-form-section {
    padding: 12px;
  }
  .entry-service-flow-page .taxpayer-form-section-title {
    margin-bottom: 12px;
  }
  .entry-service-flow-page .taxpayer-writing-note { margin-bottom: 12px; }
  .entry-service-flow-page .taxpayer-check-list { gap: 7px; }
  .entry-service-flow-page .taxpayer-check-item { padding: 10px 12px; }
  .entry-service-flow-page .application-section { padding: 12px; }
  .entry-service-flow-page .application-section-heading {
    margin-bottom: 12px;
    padding-bottom: 8px;
  }
  .entry-service-flow-page .application-note-grid {
    margin-bottom: 12px;
    padding: 10px 12px;
    line-height: 1.5;
  }
  .entry-service-flow-page .application-choice-grid,
  .entry-service-flow-page .application-choice-stack {
    gap: 8px;
  }
  .entry-service-flow-page .document-upload-grid {
    gap: 10px;
    margin-top: 12px;
  }
  .entry-service-flow-page .certificate-upload-panel,
  .entry-service-flow-page .upload-card,
  .entry-service-flow-page .upload-box {
    padding: 12px;
  }
  .entry-service-flow-page .upload-row,
  .entry-service-flow-page .attachment-slots {
    margin-top: 10px;
  }
  .entry-service-flow-page .case-meta-grid {
    gap: 8px;
    margin-bottom: 12px;
  }
  .entry-service-flow-page .case-meta-grid div,
  .entry-service-flow-page .summary-field,
  .entry-service-flow-page .staff-choice-card {
    padding: 10px;
  }
  .entry-service-flow-page .certificate-summary-layout,
  .entry-service-flow-page .certificate-summary-main-column {
    gap: 12px;
  }
  .entry-service-flow-page .staff-choice-list {
    gap: 8px;
    margin-top: 12px;
  }
  .home-entry-main {
    padding-bottom: 32px;
  }
  .home-entry-main > .hero-block {
    grid-template-columns: minmax(0, 1fr) clamp(84px, 24vw, 104px);
    gap: 10px;
    padding-block: 12px 8px;
  }
  .home-entry-main .hero-title {
    font-size: clamp(1.75rem, 8.5vw, 2rem);
    line-height: 1.15;
  }
  .home-entry-main .hero-text {
    margin-top: 6px;
    font-size: .86rem;
    line-height: 1.5;
  }
  .home-entry-main .hero-asset {
    max-height: 104px;
  }
  .home-entry-main .hero-service-hours {
    grid-column: 1 / -1;
    border-top: 1px solid #cfe5d7;
    border-left: 0;
    padding: 10px 0 0;
  }
  .home-entry-main .hero-service-hours p {
    font-size: .82rem;
  }
  .home-entry-main .service-section {
    margin-top: 6px;
  }
  .home-entry-main .service-section::before,
  .home-entry-main .service-section::after {
    display: none;
  }
  .home-entry-main .section-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    text-align: left;
  }
  .home-entry-main .heading-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
  }
  .home-entry-main .section-heading h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.25;
  }
  .home-entry-main .service-grid {
    gap: 6px;
  }
  .home-entry-main .service-card,
  .home-entry-main .service-card:nth-child(4),
  .home-entry-main .service-card:nth-child(5) {
    display: grid;
    min-height: 64px;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
  }
  .home-entry-main .service-card > div {
    min-width: 0;
  }
  .home-entry-main .service-card .icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .home-entry-main .service-card .icon-box .icon {
    width: 24px;
    height: 24px;
  }
  .home-entry-main .service-card .card-title-row h3 {
    font-size: 1.05rem;
    line-height: 1.3;
  }
  .home-entry-main .service-card p {
    margin-top: 2px;
    font-size: .82rem;
    line-height: 1.4;
  }
  .home-entry-main .service-card .card-link {
    margin-top: 0;
    font-size: 0;
  }
  .home-entry-main .service-card .card-link .icon {
    width: 20px;
    height: 20px;
  }
  .home-entry-main > .help-grid {
    margin-top: 22px;
  }
  .feature-strip { margin-top: 0; }
  .feature-card, .service-card, .office-card, .selection-panel, .form-panel, .panel, .soft-panel { border-radius: 12px; }
  .faq-bar { align-items: stretch; flex-direction: column; }
  .faq-more { margin-left: 0; }
  .stepper { margin-inline: -2px; padding: 18px 12px; }
  .video-page-main { padding-top: 14px; }
  .video-page-main > .hero-block,
  .video-page-main > .stepper { display: none; }
  .current-choice { text-align: left; }
  .choice-row { align-items: flex-start; flex-direction: column; }
  .choice-branch { justify-content: flex-start; }
  .application-section { padding: 15px; }
  .application-choice-grid { grid-template-columns: 1fr; }
  .application-region-grid,
  .application-scope-grid { grid-template-columns: 1fr; }
  .application-inline-choice { align-items: stretch; flex-direction: column; }
  .application-choice-pill.grow, .compact-inline-control { flex-basis: auto; min-width: 0; width: 100%; }
  .application-address-row, .application-plate-row { grid-template-columns: 1fr; gap: 6px; }
  .application-address-row .district-control { width: 100%; }
  .taxpayer-field-grid,
  .taxpayer-contact-grid,
  .taxpayer-address-grid,
  .input-with-button { grid-template-columns: 1fr; }
  .taxpayer-address-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .taxpayer-form-section { padding: 16px; }
  .email-control-row { grid-template-columns: 1fr; }
  .email-verify-btn { width: 100%; }
  .file-pick-control { grid-template-columns: 88px minmax(0, 1fr); }
  .attachment-slot .upload-row { grid-template-columns: 1fr; }
  .attachment-delete { width: 100%; border-radius: 8px; }
  .attachment-add-row { align-items: stretch; flex-direction: column; }
  .summary-field,
  .attachment-preview-item,
  .attachment-preview-item div { grid-template-columns: 1fr; gap: 4px; }
  .attachment-download-btn { width: 100%; }
  .upload-row > * { width: 100%; }
  .status-strip, .success-list { grid-template-columns: 1fr; }
  .agent-grid { grid-template-columns: 1fr; }
  .compact-mobile-video [data-mobile-video-side-info] { display: none; }
  .compact-mobile-video { gap: 12px; }
  .compact-mobile-video .panel { padding: 14px; }
  .compact-mobile-video .video-toolbar { gap: 10px; margin-bottom: 10px; }
  .compact-mobile-video .video-toolbar > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .compact-mobile-video .toolbar-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .compact-mobile-video .toolbar-controls label { display: grid; gap: 6px; font-size: 0.88rem; }
  .compact-mobile-video .compact-control { width: 100%; margin: 0; min-height: 44px; }
  .compact-mobile-video .status-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px; font-size: 0.78rem; }
  .compact-mobile-video .status-strip span { flex-direction: column; gap: 4px; line-height: 1.25; }
  .compact-mobile-video .video-screen { min-height: 300px; }
  .compact-mobile-video .remote-person {
    min-height: 300px;
    padding: 24px 16px 18px;
  }
  .compact-mobile-video .remote-person .avatar-head:not(.small) { width: 78px; height: 78px; }
  .compact-mobile-video .remote-person .avatar-body:not(.small) {
    width: 136px;
    height: 108px;
    margin-top: -6px;
  }
  .compact-mobile-video .remote-person p {
    position: relative;
    z-index: 2;
    margin-top: 8px;
    font-size: 0.95rem;
  }
  .compact-mobile-video .local-video {
    left: 12px;
    top: 12px;
    bottom: auto;
    z-index: 3;
    width: 96px;
    min-height: 88px;
    gap: 2px;
    overflow: hidden;
    padding: 6px;
  }
  .compact-mobile-video .local-video .avatar-head.small { width: 28px; height: 28px; }
  .compact-mobile-video .local-video .avatar-body.small {
    width: 44px;
    height: 32px;
    margin-top: -3px;
    border-radius: 20px 20px 8px 8px;
  }
  .compact-mobile-video .local-video span { font-size: 0.7rem; line-height: 1.2; }
  .compact-mobile-video .system-note { align-items: flex-start; font-size: 0.9rem; }
  .video-screen, .remote-person { min-height: 350px; }
  .consent-modal { padding: 18px; }
  .consent-heading { align-items: flex-start; }
  .consent-copy { font-size: 0.95rem; line-height: 1.65; }
  .consent-actions { grid-template-columns: 1fr; }
  .signature-modal { padding: 22px; }
  .signature-pad canvas { height: 200px; }
}

.entry-privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  padding: 20px;
  overflow: auto;
  background: rgba(248, 250, 249, .96);
}

.entry-privacy-card {
  width: min(1120px, 100%);
  min-height: min-content;
  margin: auto 0;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .13);
}

.entry-privacy-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d9e2ea;
}

.entry-privacy-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
}

.entry-privacy-icon .icon {
  width: 34px;
  height: 34px;
}

.entry-privacy-kicker {
  margin: 0 0 3px;
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.3;
}

.entry-privacy-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.18;
}

.entry-privacy-copy {
  padding: 16px 0 0;
  color: #4b5563;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
}

.entry-privacy-copy p {
  margin: 0 0 8px;
}

.entry-privacy-copy ol,
.entry-privacy-copy ul {
  margin: 0 0 8px;
  padding-left: 1.7em;
}

.entry-privacy-copy li {
  margin: 0 0 5px;
  padding-left: .1em;
}

.entry-privacy-copy ul {
  margin-top: 3px;
  list-style-type: disc;
}

.entry-privacy-copy ul li {
  margin-bottom: 2px;
}

.entry-privacy-policy {
  display: block;
  margin-top: 8px;
  color: #1f2937;
  font-weight: 900;
}

.entry-privacy-policy a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.entry-privacy-policy a:hover,
.entry-privacy-policy a:focus-visible {
  color: var(--green);
  outline: none;
}

.entry-privacy-form {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #d9e2ea;
}

.entry-privacy-actions {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(280px, 1fr);
  gap: 12px;
}

.entry-privacy-actions .primary-btn,
.entry-privacy-actions .secondary-btn {
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 900;
}

.privacy-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #0f2746;
  font-weight: 700;
  line-height: 1.6;
}

.privacy-check input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  flex: 0 0 auto;
}

.entry-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(2px);
}

.entry-loading-overlay[hidden] {
  display: none;
}

.entry-loading-card {
  display: grid;
  width: min(360px, 100%);
  justify-items: center;
  gap: 10px;
  border-radius: 12px;
  background: #fff;
  padding: 30px 24px;
  color: #475569;
  text-align: center;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.entry-loading-card strong {
  color: #0f172a;
  font-size: 1.25rem;
}

.entry-loading-spinner {
  width: 46px;
  height: 46px;
  border: 5px solid #d9e9e2;
  border-top-color: var(--green);
  border-radius: 999px;
  animation: entry-loading-spin .8s linear infinite;
}

.is-entry-submitting {
  overflow: hidden;
}

.is-submit-locked {
  cursor: wait;
  opacity: .72;
}

.satisfaction-panel {
  overflow: hidden;
  border-color: #d9dce1;
  padding: 24px 28px 28px;
  box-shadow: 0 7px 22px rgba(15, 23, 42, .11);
}
.entry-service-flow-page .satisfaction-panel { padding: 24px 28px 28px; }

.entry-satisfaction-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow-y: auto;
}
.entry-satisfaction-dialog::backdrop { background: rgba(15, 23, 42, .55); }
.entry-satisfaction-dialog .satisfaction-panel { margin: 0; padding: 24px clamp(16px, 4vw, 28px); border: 0; box-shadow: none; }
.entry-satisfaction-close { display: flex; justify-content: flex-end; padding: 0 28px 24px; }

.satisfaction-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.satisfaction-heading > .bx {
  color: #438fdf;
  font-size: 1.75rem;
}

.satisfaction-heading h2 {
  margin: 0;
  color: #31343a;
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.satisfaction-rating-fieldset {
  min-width: 0;
  margin: 0;
  padding: 24px 0 0;
  border: 0;
}

.satisfaction-rating-fieldset legend { padding: 0; }

.satisfaction-rating-fieldset legend,
.satisfaction-reason-label {
  display: block;
  margin: 0;
  color: #555960;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
}

.satisfaction-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 8px;
}

.satisfaction-stars input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.satisfaction-stars label {
  display: grid;
  width: 48px;
  height: 48px;
  cursor: pointer;
  place-items: center;
  border-radius: 8px;
  color: #dfe1e4;
  font-size: 2.25rem;
  line-height: 1;
  transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.satisfaction-stars label:hover,
.satisfaction-stars label:hover ~ label,
.satisfaction-stars input:checked ~ label {
  color: #f6b800;
}

.satisfaction-stars label:hover {
  background: #fff8dc;
  transform: translateY(-2px);
}

.satisfaction-stars input:focus-visible + label {
  outline: 3px solid rgba(38, 142, 227, .35);
  outline-offset: 2px;
}

.satisfaction-reason-label {
  margin-top: 24px;
  font-size: 1rem;
}

.satisfaction-reason {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border: 1px solid #c9cfd8;
  border-radius: 8px;
  background-color: #fff;
  color: #4b5563;
  padding: 12px 40px 12px 14px;
  font-size: 1rem;
}
.entry-service-flow-page .satisfaction-reason {
  min-height: 52px;
  margin-top: 8px;
  padding: 12px 40px 12px 14px;
  border-radius: 8px;
}

.satisfaction-reason:focus {
  border-color: #438fdf;
  outline: 3px solid rgba(67, 143, 223, .18);
  box-shadow: none;
}

.satisfaction-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.satisfaction-submit-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #238bdc;
  border-radius: 8px;
  background: #2698e9;
  padding: 11px 24px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(35, 139, 220, .2);
}

.satisfaction-submit-btn > .bx { font-size: 1.25rem; }
.satisfaction-submit-btn:hover,
.satisfaction-submit-btn:focus-visible {
  border-color: #156fb5;
  background: #197fc9;
  outline: 3px solid rgba(38, 152, 233, .2);
}
.satisfaction-submit-btn:disabled { cursor: wait; opacity: .65; }

.satisfaction-status {
  margin: 0;
  color: #475569;
  font-weight: 700;
}
.satisfaction-status.is-error { color: #b42318; }

.satisfaction-thanks {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  border: 1px solid #a7ddbd;
  border-radius: 10px;
  background: #f1fbf5;
  padding: 16px;
  color: #17643a;
}
.satisfaction-thanks[hidden] { display: none; }
.satisfaction-thanks > .bx { font-size: 1.75rem; }
.satisfaction-thanks strong { display: block; font-size: 1.125rem; }
.satisfaction-thanks p { margin: 4px 0 0; }

@keyframes entry-loading-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .entry-service-flow-page .satisfaction-panel {
    padding: clamp(16px, 4vw, 24px);
  }
  .satisfaction-heading {
    gap: clamp(8px, 2.5vw, 12px);
    padding-bottom: clamp(12px, 3vw, 16px);
  }
  .satisfaction-heading > .bx { font-size: clamp(1.5rem, 6vw, 1.75rem); }
  .satisfaction-heading h2 { font-size: clamp(1.25rem, 5.5vw, 1.5rem); }
  .satisfaction-rating-fieldset { padding-top: clamp(20px, 5vw, 24px); }
  .satisfaction-stars {
    gap: clamp(2px, 1vw, 4px);
    margin-top: 8px;
  }
  .satisfaction-stars label {
    width: 46px;
    height: 46px;
    font-size: 2rem;
  }
  .satisfaction-reason-label {
    margin-top: 20px;
    font-size: 1rem;
  }
  .entry-service-flow-page .satisfaction-reason {
    min-height: 52px;
    margin-top: 8px;
    padding: 12px 40px 12px 14px;
    font-size: 1rem;
  }
  .satisfaction-actions {
    margin-top: 20px;
    padding-top: 16px;
  }
  .satisfaction-submit-btn {
    min-height: 48px;
    font-size: 1rem;
  }

  .entry-privacy-modal {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    place-items: stretch;
    padding:
      max(4px, env(safe-area-inset-top))
      max(4px, env(safe-area-inset-right))
      max(4px, env(safe-area-inset-bottom))
      max(4px, env(safe-area-inset-left));
    overflow: hidden;
  }

  .entry-privacy-card {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    margin: 0;
    padding: 10px 12px;
    overflow: hidden;
  }

  .entry-privacy-heading {
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
  }

  .entry-privacy-icon {
    width: clamp(36px, 5dvh, 44px);
    height: clamp(36px, 5dvh, 44px);
    flex-basis: clamp(36px, 5dvh, 44px);
  }

  .entry-privacy-icon .icon {
    width: clamp(24px, 3.3dvh, 28px);
    height: clamp(24px, 3.3dvh, 28px);
  }

  .entry-privacy-kicker {
    margin-bottom: 1px;
    font-size: clamp(.68rem, 1.5dvh, .78rem);
  }

  .entry-privacy-heading h2 {
    font-size: clamp(1.05rem, 2.6dvh, 1.35rem);
    line-height: 1.15;
  }

  .entry-privacy-copy {
    min-height: 0;
    flex: 1 1 auto;
    padding-top: 6px;
    overflow: auto;
    font-size: clamp(10.5px, min(4.3vw, 2.1dvh), 17px);
    line-height: 1.3;
  }

  .entry-privacy-copy p {
    margin-bottom: 3px;
  }

  .entry-privacy-copy ol,
  .entry-privacy-copy ul {
    margin-bottom: 2px;
    padding-left: 1.2em;
  }

  .entry-privacy-copy li {
    margin-bottom: 1px;
    padding-left: 0;
  }

  .entry-privacy-copy ul {
    margin-top: 2px;
  }

  .entry-privacy-copy ul li {
    margin-bottom: 1px;
  }

  .entry-privacy-policy {
    margin-top: 2px;
  }

  .entry-privacy-form {
    flex: 0 0 auto;
    margin-top: 4px;
    padding-top: 4px;
  }

  .entry-privacy-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .entry-privacy-actions .primary-btn,
  .entry-privacy-actions .secondary-btn {
    min-height: clamp(38px, 5.3dvh, 44px);
    padding: 6px 10px;
    font-size: clamp(.9rem, 2dvh, 1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
