:root {
  --green: #08a66b;
  --green-dark: #087d58;
  --mint: #eaf8f3;
  --ink: #17221e;
  --muted: #7f8b86;
  --line: #e5ebe8;
  --danger: #db4b4b;
  --shadow: 0 18px 54px rgba(15, 83, 60, .13);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #eef5f2; }
body { margin: 0; min-height: 100%; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.is-hidden { display: none !important; }

.phone-shell { width: min(100%, 520px); min-height: 100vh; margin: 0 auto; background: #fff; box-shadow: 0 0 60px rgba(20, 62, 48, .1); }
.view { min-height: 100vh; }

.login-view { position: relative; overflow: hidden; padding: max(54px, env(safe-area-inset-top)) 26px 40px; }
.login-view::before { content: ""; position: absolute; top: -125px; right: -130px; width: 310px; height: 310px; border-radius: 50%; background: linear-gradient(145deg, #e5fff5, #f6fffb); }
.login-view::after { content: ""; position: absolute; top: 0; left: 0; width: 6px; height: 150px; background: var(--green); border-radius: 0 0 8px; }
.login-mark { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: var(--green-dark); font-weight: 700; font-size: 16px; letter-spacing: 1px; }
.mark-road { width: 28px; height: 20px; position: relative; border: 3px solid var(--green); border-radius: 13px 4px 13px 4px; transform: rotate(-8deg); }
.mark-road::after { content: ""; position: absolute; inset: 4px -5px -4px 5px; border: 2px solid #62d9aa; border-radius: 10px 3px 10px 3px; }
.login-header { position: relative; margin-top: 98px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; }
.login-header h1 { margin: 0; font-size: 32px; font-weight: 650; letter-spacing: 2px; }
.login-header > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.login-form { margin-top: 52px; }
.floating-field { display: block; padding: 0 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.floating-field > span:first-child { display: block; margin-bottom: 11px; color: #3a4641; font-size: 14px; font-weight: 600; }
.floating-field input { width: 100%; border: 0; outline: 0; padding: 6px 0; color: var(--ink); font-size: 19px; background: transparent; }
.floating-field input::placeholder { color: #b6bfbb; }
.input-row { display: flex; align-items: center; gap: 8px; }
.input-row input { min-width: 0; flex: 1; }
.text-button { flex: none; border: 0; border-left: 1px solid var(--line); padding: 7px 0 7px 14px; color: var(--green); font-size: 14px; background: transparent; }
.text-button:disabled { color: #a8b0ad; cursor: default; }
.primary-button { width: 100%; border: 0; border-radius: 8px; padding: 15px 18px; color: #fff; font-weight: 600; background: linear-gradient(135deg, #16c492, var(--green)); box-shadow: 0 8px 18px rgba(8, 166, 107, .2); }
.primary-button:disabled { opacity: .55; cursor: wait; }
.login-button { margin-top: 12px; font-size: 17px; }
.agreement-check { display: flex; justify-content: center; align-items: flex-start; gap: 6px; margin-top: 18px; color: #a0aaa6; font-size: 12px; line-height: 1.6; }
.agreement-check input { margin-top: 3px; accent-color: var(--green); }
.agreement-check a { color: var(--green); text-decoration: none; }

.service-view { display: flex; flex-direction: column; background: #f6f9f7; }
.service-banner { position: relative; overflow: hidden; height: 176px; flex: none; padding-top: 25px; text-align: center; color: #fff; background: linear-gradient(150deg, #006d4c 0%, #00a56b 56%, #39c89a 100%); }
.service-banner::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(75deg, transparent 48%, #fff 49%, #fff 51%, transparent 52%); background-size: 47px 100%; transform: perspective(230px) rotateX(48deg) translateY(64px); }
.brand-title { position: relative; z-index: 1; font-size: 39px; font-style: italic; letter-spacing: -2px; text-shadow: 0 2px 0 rgba(0,0,0,.12); }
.brand-title b { font-weight: 800; }
.brand-title em { color: #a7f2d3; font-size: 47px; font-weight: 800; }
.brand-title strong { font-weight: 800; }
.service-pill { position: relative; z-index: 1; width: 182px; margin: 4px auto 0; padding: 7px; border: 1px solid rgba(255,255,255,.55); border-radius: 20px; background: rgba(0, 88, 61, .46); letter-spacing: 2px; }
.lane-lines { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-evenly; height: 43px; opacity: .35; }
.lane-lines i { width: 4px; background: linear-gradient(transparent, white); transform: skew(-20deg); }
.service-content { flex: 1; padding: 0 15px 24px; }
.progress { display: flex; align-items: flex-start; padding: 22px 9px 18px; }
.progress > i { height: 1px; flex: 1; margin: 15px 8px 0; background: #dce5e1; }
.progress-item { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #a2aba7; font-size: 11px; white-space: nowrap; }
.progress-item b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #87918d; background: #e7eeeb; }
.progress-item.is-active { color: var(--green-dark); }
.progress-item.is-active b { color: #fff; background: var(--green); box-shadow: 0 0 0 5px rgba(8, 166, 107, .11); }
.step-card { padding: 22px 18px; border: 1px solid #e8eeeb; border-radius: 13px; background: #fff; box-shadow: 0 8px 27px rgba(27, 75, 58, .06); }
.section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 21px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.section-heading > span { color: #b8dbce; font-size: 27px; font-weight: 800; }
.section-heading h2 { margin: 0; font-size: 18px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.form-field { display: grid; grid-template-columns: 93px minmax(0, 1fr); align-items: center; min-height: 61px; border-bottom: 1px solid var(--line); }
.form-field > span { font-size: 14px; font-weight: 600; }
.form-field > span i { color: var(--danger); font-style: normal; }
.form-field input, .form-field select { min-width: 0; width: 100%; border: 0; outline: 0; padding: 13px 7px; color: var(--ink); font-size: 14px; background: transparent; }
.form-field input::placeholder { color: #b7bfbc; }
.form-field input.field-error, .form-field select.field-error { color: var(--danger); }
.form-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6a746f 50%), linear-gradient(135deg, #6a746f 50%, transparent 50%); background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.step-card > .primary-button { margin-top: 24px; }
.secondary-button { width: 100%; margin-top: 11px; padding: 13px; border: 1px solid #cae8dc; border-radius: 8px; color: var(--green-dark); background: #fff; }
.card-type { display: flex; gap: 18px; min-width: 0; margin: 0; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); }
.card-type legend { float: left; width: 93px; padding: 2px 0 0; font-size: 14px; font-weight: 600; }
.card-type label { display: flex; align-items: center; gap: 5px; font-size: 14px; }
.card-type input { accent-color: var(--green); }
.verify-card { padding-top: 35px; text-align: center; }
.verify-icon, .complete-check { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; color: #fff; font-size: 29px; background: linear-gradient(140deg, #37d4a6, var(--green)); box-shadow: 0 8px 24px rgba(8,166,107,.25); }
.verify-card h2, .complete-card h2 { margin: 0; font-size: 21px; }
.verify-card > p, .complete-card p { margin: 12px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.verify-input { display: grid; grid-template-columns: 75px 1fr; align-items: center; border: 1px solid #dfe8e4; border-radius: 8px; text-align: left; }
.verify-input span { padding-left: 15px; font-size: 14px; font-weight: 600; }
.verify-input input { width: 100%; border: 0; outline: 0; padding: 14px 10px; background: transparent; }
.complete-card { padding: 45px 24px; text-align: center; }
.service-footer { display: flex; align-items: center; justify-content: center; gap: 11px; padding: 18px 12px calc(18px + env(safe-area-inset-bottom)); color: rgba(255,255,255,.95); font-size: 12px; background: linear-gradient(120deg, #087b57, #08a66b); }
.service-footer small { color: rgba(255,255,255,.72); font-size: 10px; }
.shield { display: grid; place-items: center; width: 32px; height: 35px; border: 2px solid rgba(255,255,255,.65); border-radius: 7px 7px 13px 13px; }

.notice-dialog { width: min(calc(100% - 38px), 410px); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.notice-dialog::backdrop { background: rgba(8, 27, 20, .6); backdrop-filter: blur(2px); }
.notice-title { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 22px 20px 0; }
.notice-title span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-weight: 800; background: #f1a940; }
.notice-title h2 { margin: 0; font-size: 20px; }
.notice-dialog p { margin: 18px 24px 22px; color: #525d58; font-size: 15px; line-height: 1.7; text-align: justify; }
.notice-dialog .primary-button { border-radius: 0 0 14px 14px; box-shadow: none; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); max-width: calc(100% - 40px); padding: 11px 17px; border-radius: 9px; color: #fff; font-size: 13px; text-align: center; background: rgba(23, 34, 30, .92); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .22s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: rgba(177, 49, 49, .95); }

.agreement-page { padding: 25px 16px 60px; background: #f4f8f6; }
.agreement-article { max-width: 720px; margin: auto; padding: 30px clamp(20px, 5vw, 55px); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.back-link { color: var(--green); text-decoration: none; }
.agreement-article h1 { margin: 28px 0 8px; font-size: 27px; }
.agreement-date { color: var(--muted); font-size: 13px; }
.agreement-article h2 { margin-top: 30px; font-size: 17px; }
.agreement-article p { color: #52605a; font-size: 14px; line-height: 1.9; }

@media (max-width: 370px) {
  .login-view { padding-left: 21px; padding-right: 21px; }
  .service-content { padding-left: 9px; padding-right: 9px; }
  .step-card { padding-left: 13px; padding-right: 13px; }
  .form-field { grid-template-columns: 85px minmax(0, 1fr); }
  .card-type legend { width: 85px; }
}

@media (min-width: 650px) {
  body { padding: 28px 0; }
  .phone-shell { min-height: calc(100vh - 56px); border-radius: 22px; overflow: hidden; }
  .view { min-height: calc(100vh - 56px); }
}
