:root {
  --blue: #075fd8;
  --blue-dark: #10356b;
  --teal: #0aa6a6;
  --green: #159a55;
  --amber: #bd7600;
  --red: #c83737;
  --ink: #16233b;
  --muted: #63738d;
  --line: #dbe7f4;
  --bg: #f5faff;
  --card: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(180deg,#eff8ff 0,#f8fbff 35%,#fff 100%); color: var(--ink); min-height: 100vh; }
.shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 72px; }
.hero { padding: clamp(28px,5vw,64px); background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 18px 60px rgba(28,77,128,.10); position: relative; overflow: hidden; }
.hero:after { content:""; position:absolute; width:260px; height:260px; border-radius:50%; right:-70px; top:-80px; background: radial-gradient(circle,#d9f5f3,transparent 70%); }
.brand-mark { display:inline-grid; place-items:center; width:58px; height:58px; border-radius:18px; background:linear-gradient(145deg,var(--blue),var(--teal)); color:#fff; font-weight:900; letter-spacing:.02em; }
.eyebrow { margin:18px 0 6px; text-transform:uppercase; letter-spacing:.11em; font-size:.78rem; font-weight:800; color:var(--blue); }
h1 { font-size:clamp(2rem,4vw,4.2rem); line-height:1.03; margin:0; letter-spacing:-.04em; color:var(--blue-dark); }
h2 { margin:0; color:var(--blue-dark); font-size:1.25rem; }
.lead { max-width:730px; font-size:1.08rem; line-height:1.7; color:var(--muted); }
.status-row,.actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.badge { display:inline-flex; align-items:center; min-height:32px; padding:6px 11px; border-radius:999px; background:#eef4fb; color:var(--blue-dark); font-size:.82rem; font-weight:800; }
.badge-success { background:#e1f6e9; color:#0c753e; }
.badge-warning { background:#fff1d6; color:#8a5700; }
.badge-danger { background:#fde7e7; color:#a72828; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 20px; border-radius:14px; background:var(--blue); color:#fff; font-weight:800; text-decoration:none; }
.button-secondary { background:#fff; color:var(--blue); border:1px solid #9ec6ef; }
.grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:22px; }
.card,.config-section { background:#fff; border:1px solid var(--line); border-radius:22px; box-shadow:0 12px 35px rgba(28,77,128,.07); }
.card { padding:22px; }
.card > span { color:var(--teal); font-weight:900; font-size:.8rem; }
.card p { color:var(--muted); line-height:1.55; }
.page-header,.section-title,.row-card { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.page-header { margin-bottom:22px; }
.page-header .eyebrow { margin-top:0; }
.text-link { color:var(--blue); text-decoration:none; font-weight:800; }
.notice { padding:18px; border-radius:16px; line-height:1.55; }
.notice-warning { background:#fff6df; color:#6f500d; border:1px solid #f1d58f; }
.config-section { padding:22px; margin-top:18px; }
.section-title { margin-bottom:14px; }
.section-title .eyebrow { margin:0 0 4px; }
.total { font-size:1.55rem; font-weight:900; color:var(--blue); }
.stack { display:grid; gap:10px; }
.row-card { border:1px solid var(--line); border-radius:15px; padding:15px 16px; min-height:64px; }
.row-card small { display:block; margin-top:4px; color:var(--muted); }
code { background:rgba(255,255,255,.8); padding:2px 6px; border-radius:6px; }
@media (max-width:860px){ .grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .shell{width:min(100% - 20px,1080px);padding-top:18px}.hero{padding:24px 20px;border-radius:22px}.grid{grid-template-columns:1fr}.page-header{align-items:flex-start}.row-card{align-items:flex-start}.section-title{align-items:flex-end} }

/* Public applicant experience */
.public-body {
  background:
    radial-gradient(circle at 100% 0, rgba(10,166,166,.10), transparent 28rem),
    linear-gradient(180deg,#eef8ff 0,#f8fbff 44%,#ffffff 100%);
}
.public-shell { width:min(760px, calc(100% - 28px)); margin:0 auto; padding:22px 0 60px; }
.record-shell { width:min(900px, calc(100% - 28px)); }
.narrow-shell { width:min(620px, calc(100% - 28px)); }
.public-brand { display:flex; align-items:center; gap:12px; padding:4px 2px 20px; }
.public-brand .mps-mark { display:grid; place-items:center; width:46px; height:46px; border-radius:14px; background:linear-gradient(145deg,var(--blue),var(--teal)); color:#fff; font-weight:900; letter-spacing:.02em; box-shadow:0 8px 22px rgba(7,95,216,.18); }
.public-brand strong,.public-brand span { display:block; }
.public-brand strong { font-size:.98rem; color:var(--blue-dark); }
.public-brand span { margin-top:2px; color:var(--muted); font-size:.84rem; }
.public-card { background:rgba(255,255,255,.96); border:1px solid var(--line); border-radius:26px; box-shadow:0 18px 50px rgba(31,79,127,.10); padding:clamp(22px,5vw,38px); }
.lookup-card { text-align:left; }
.lookup-card h1,.result-message-card h1 { font-size:clamp(2rem,7vw,3.2rem); }
.compact { max-width:560px; margin-bottom:18px; }
.friendly-icon { width:74px; height:74px; border-radius:24px; display:grid; place-items:center; background:linear-gradient(145deg,#e8f6ff,#e8fbf8); margin-bottom:4px; }
.friendly-icon svg { width:42px; height:42px; fill:var(--teal); }
.public-form { display:grid; gap:14px; margin-top:24px; }
.choice-fieldset { border:0; padding:0; margin:0; }
.choice-fieldset legend,.field-label { display:block; margin-bottom:8px; font-size:1rem; font-weight:850; color:var(--blue-dark); }
.segmented-control { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:5px; border-radius:16px; background:#eef5fb; border:1px solid #d9e7f4; }
.segmented-control label { cursor:pointer; }
.segmented-control input { position:absolute; opacity:0; pointer-events:none; }
.segmented-control span { min-height:48px; display:grid; place-items:center; padding:8px 12px; border-radius:12px; font-weight:800; color:#566a85; transition:.18s ease; }
.segmented-control input:checked + span { background:#fff; color:var(--blue); box-shadow:0 4px 15px rgba(25,74,121,.10); }
.text-input { width:100%; min-height:52px; border:1px solid #b9cfe5; border-radius:15px; background:#fff; color:var(--ink); padding:0 15px; font:inherit; font-size:1.05rem; outline:none; }
.input-large { min-height:58px; font-size:1.12rem; }
.text-input:focus { border-color:var(--blue); box-shadow:0 0 0 4px rgba(7,95,216,.10); }
.text-input:disabled,.button:disabled { opacity:.55; cursor:not-allowed; }
.field-help { margin:-4px 0 4px; color:var(--muted); font-size:.88rem; line-height:1.45; }
.button-full { width:100%; }
.button-large { min-height:56px; font-size:1.04rem; border:0; cursor:pointer; }
button.button { border:0; font:inherit; }
.trust-strip { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:14px; }
.trust-strip div { min-height:92px; background:rgba(255,255,255,.75); border:1px solid var(--line); border-radius:18px; padding:14px; }
.trust-strip strong,.trust-strip span { display:block; }
.trust-strip strong { color:var(--blue-dark); }
.trust-strip span { margin-top:4px; color:var(--muted); font-size:.83rem; line-height:1.35; }
.notice-danger { background:#fff0f0; color:#8c2525; border:1px solid #f2c4c4; }
.notice-info { background:#edf7ff; color:#245378; border:1px solid #cbe4f7; }
.result-message-card { text-align:center; }
.result-message-card .lead { margin-left:auto; margin-right:auto; }
.status-orb { width:62px; height:62px; border-radius:50%; display:grid; place-items:center; margin:0 auto 14px; font-weight:900; font-size:1.5rem; }
.status-orb-info { background:#e8f5ff; color:var(--blue); }
.status-orb-warning { background:#fff2d8; color:#9b6400; }
.action-stack { display:grid; gap:10px; margin-top:18px; }
.record-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin:8px 0 20px; }
.record-heading .eyebrow { margin:0 0 6px; }
.record-heading h1 { font-size:clamp(1.85rem,5vw,3.2rem); }
.identity-line { margin:8px 0 0; color:var(--muted); }
.identity-line span { padding:0 5px; }
.text-button { border:0; background:transparent; color:var(--blue); font:inherit; font-weight:800; cursor:pointer; padding:10px 0; }
.premise-stack { display:grid; gap:18px; }
.premise-card { background:#fff; border:1px solid var(--line); border-radius:24px; box-shadow:0 14px 38px rgba(31,79,127,.08); overflow:hidden; }
.premise-card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding:22px 22px 18px; border-bottom:1px solid #edf3f8; background:linear-gradient(180deg,#fff,#fbfdff); }
.premise-number { display:block; color:var(--teal); font-size:.76rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; margin-bottom:5px; }
.premise-card-header h2 { font-size:1.2rem; }
.premise-card-header p { max-width:560px; margin:6px 0 0; color:var(--muted); line-height:1.45; }
.capacity-pill { flex:0 0 auto; display:grid; place-items:center; min-width:70px; min-height:62px; padding:7px 12px; border-radius:17px; background:#e6f7ee; color:#0f7d45; }
.capacity-pill strong,.capacity-pill span { display:block; }
.capacity-pill strong { font-size:1.05rem; }
.capacity-pill span { font-size:.73rem; margin-top:1px; }
.capacity-full { background:#fff0e1; color:#9a5a00; }
.dog-list { display:grid; gap:12px; padding:18px 22px; }
.dog-card { display:grid; grid-template-columns:84px 1fr; gap:15px; border:1px solid #e2ebf4; border-radius:19px; padding:13px; background:#fff; }
.dog-photo { width:84px; aspect-ratio:1; border-radius:16px; overflow:hidden; display:grid; place-items:center; background:linear-gradient(145deg,#eef8ff,#eaf9f4); }
.dog-photo img { width:100%; height:100%; object-fit:cover; }
.dog-photo svg { width:50px; height:50px; fill:#7cc8bf; }
.dog-main { min-width:0; }
.dog-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.dog-title-row h3 { margin:0; color:var(--blue-dark); font-size:1.2rem; }
.dog-title-row p { margin:3px 0 0; color:var(--muted); font-size:.92rem; }
.dog-expiry { margin:9px 0 0; color:#485a74; font-size:.88rem; }
.dog-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.button-small { min-height:40px; padding:0 14px; border-radius:12px; font-size:.88rem; }
.button-danger-soft { background:#fff0f0; color:#a72b2b; border:1px solid #efc2c2; }
.badge-muted { background:#eff2f6; color:#657084; }
.empty-inline { margin:18px 22px; padding:16px; border-radius:15px; background:#f7fafc; color:var(--muted); border:1px dashed #ccdbe9; }
.premise-footer { padding:0 22px 22px; }
.compact-notice { padding:14px 15px; border-radius:14px; font-size:.91rem; }
.public-footer-note { text-align:center; color:var(--muted); font-size:.86rem; margin:24px 0 0; }
@media (max-width:680px) {
  .public-shell,.record-shell,.narrow-shell { width:min(100% - 18px, 900px); padding-top:14px; }
  .public-card { border-radius:22px; }
  .trust-strip { grid-template-columns:1fr; }
  .trust-strip div { min-height:0; }
  .record-heading { align-items:flex-start; }
  .premise-card-header { padding:18px; }
  .dog-list { padding:14px 18px; }
  .premise-footer { padding:0 18px 18px; }
  .dog-card { grid-template-columns:68px 1fr; }
  .dog-photo { width:68px; }
  .dog-title-row { display:block; }
  .dog-title-row .badge { margin-top:8px; }
}
@media (max-width:430px) {
  .public-brand strong { font-size:.9rem; }
  .segmented-control span { font-size:.9rem; }
  .record-heading { display:block; }
  .record-heading form { margin-top:5px; }
  .premise-card-header { display:block; }
  .capacity-pill { display:inline-flex; gap:5px; min-height:38px; margin-top:13px; }
  .dog-card { grid-template-columns:1fr; }
  .dog-photo { width:100%; max-height:180px; aspect-ratio:16/8; }
  .dog-actions { display:grid; grid-template-columns:1fr 1fr; }
  .dog-actions .button:last-child { grid-column:1 / -1; }
}

/* New application - Step 1 */
.application-shell { width:min(760px, calc(100% - 24px)); }
.application-topbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:0 2px 10px; }
.back-link { color:var(--blue-dark); text-decoration:none; font-weight:800; min-height:44px; display:inline-flex; align-items:center; }
.step-count { color:var(--muted); font-size:.9rem; font-weight:800; }
.progress-track { height:7px; border-radius:999px; background:#deebf7; overflow:hidden; margin:0 2px 16px; }
.progress-track span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--blue),var(--teal)); }
.application-card { padding:clamp(22px,4vw,34px); }
.application-title { font-size:clamp(2rem,6vw,3rem); }
.form-section { margin-top:24px; }
.form-section-divider { padding-top:26px; border-top:1px solid #e7eff7; }
.section-heading-simple { display:flex; align-items:flex-start; gap:12px; margin-bottom:17px; }
.section-heading-simple h2 { margin:1px 0 3px; font-size:1.15rem; }
.section-heading-simple p { margin:0; color:var(--muted); font-size:.91rem; line-height:1.45; }
.section-number { flex:0 0 auto; width:34px; height:34px; border-radius:11px; display:grid; place-items:center; background:#e9f4ff; color:var(--blue); font-weight:900; }
.upload-panel { display:grid; gap:13px; }
.camera-upload { border:2px dashed #b8d5ec; border-radius:20px; min-height:180px; padding:24px; display:grid; place-items:center; text-align:center; cursor:pointer; background:linear-gradient(180deg,#fbfeff,#f4faff); color:var(--blue-dark); }
.camera-upload:hover { border-color:#7bb6e7; }
.camera-upload input,.applicant-photo-capture input,.text-link-file input { position:absolute; opacity:0; pointer-events:none; width:1px; height:1px; }
.camera-upload strong,.camera-upload span { display:block; }
.camera-upload > span:last-of-type { color:var(--muted); max-width:360px; line-height:1.45; font-size:.9rem; margin-top:5px; }
.camera-icon { width:54px; height:54px; border-radius:18px; display:grid!important; place-items:center; background:#e1f5f4; color:var(--teal); font-size:1.6rem; margin-bottom:8px; }
.selected-file { color:var(--teal); font-weight:800; font-size:.9rem; min-height:1px; }
.centered-help { text-align:center; }
.success-inline { display:flex; align-items:center; gap:11px; padding:13px 14px; border:1px solid #bde4cc; border-radius:15px; background:#effaf3; color:#176b42; }
.success-inline > span { width:32px; height:32px; border-radius:50%; display:grid; place-items:center; background:#d7f3e2; font-weight:900; }
.success-inline strong,.success-inline small { display:block; }
.success-inline small { color:#507562; margin-top:2px; }
.replace-upload { margin-top:9px; }
.text-link-file { display:inline-flex; min-height:42px; align-items:center; color:var(--blue); font-weight:800; cursor:pointer; position:relative; }
.ai-chip { display:inline-flex; margin-top:12px; padding:7px 11px; border-radius:999px; background:#e9f8f6; color:#08766f; font-size:.82rem; font-weight:850; }
.document-warnings { margin-top:12px; padding:13px 15px; border-radius:15px; background:#fff8e8; border:1px solid #f1dda9; color:#765716; font-size:.9rem; }
.document-warnings ul { margin:7px 0 0; padding-left:20px; }
.applicant-details-form { margin-top:0; }
.applicant-details-form > .form-section { display:grid; gap:12px; }
.applicant-details-form .field-label { margin-bottom:-5px; }
.two-col-fields { display:grid; grid-template-columns:1fr 1fr; gap:11px; }
.applicant-photo-capture { display:grid; gap:12px; cursor:pointer; }
.photo-frame { width:min(230px, 75%); aspect-ratio:3/4; margin:0 auto; border-radius:24px; border:2px dashed #bdd4e9; background:linear-gradient(180deg,#f6fbff,#ebf7f5); overflow:hidden; display:grid; place-items:center; color:#70839a; text-align:center; padding:20px; }
.photo-frame img { width:100%; height:100%; object-fit:cover; }
.inline-note { margin-top:2px; }
@media (max-width:560px) {
  .two-col-fields { grid-template-columns:1fr; }
  .application-card { border-radius:22px; }
  .application-title { font-size:2rem; }
}
.replace-upload summary { cursor:pointer; color:var(--blue); font-weight:800; min-height:42px; display:flex; align-items:center; }
.compact-upload-panel { margin-top:10px; padding:14px; border-radius:15px; background:#f7fbff; border:1px solid var(--line); }
.file-input { width:100%; border:1px solid #c5d8e9; background:#fff; border-radius:12px; padding:11px; color:var(--ink); }

/* New application - Step 2: Premise */
.premise-step-card { overflow:visible; }
.existing-premise-options { display:grid; gap:12px; }
.existing-premise-option { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px; border:1px solid #dbe7f1; border-radius:18px; background:#fff; }
.selected-premise-option { border-color:#7eb8e3; box-shadow:0 0 0 3px rgba(40,126,189,.08); }
.existing-premise-copy { min-width:0; }
.existing-premise-copy h3 { margin:7px 0 4px; font-size:1rem; line-height:1.45; color:var(--blue-dark); }
.existing-premise-copy p { margin:0; color:var(--muted); font-size:.9rem; }
.premise-type-chip { display:inline-flex; padding:6px 9px; border-radius:999px; background:#e9f8f6; color:#08766f; font-size:.78rem; font-weight:850; }
.status-text-warning { color:#9a5a00!important; font-weight:800; }
.premise-use-button { white-space:nowrap; }
.or-divider { display:flex; align-items:center; gap:12px; margin:26px 0 2px; color:#8493a7; font-size:.86rem; font-weight:800; }
.or-divider::before,.or-divider::after { content:""; height:1px; flex:1; background:#e1ebf4; }
.new-premise-section { margin-top:20px; }
.premise-form { display:grid; }
.premise-form .form-section { display:grid; gap:12px; }
.select-input { appearance:auto; min-height:52px; }
.conditional-document-box { display:grid; gap:10px; margin-top:5px; padding:15px; border-radius:17px; background:#f7fbff; border:1px solid #d7e6f4; }
.conditional-document-box[hidden] { display:none; }
.address-copy-button { margin-bottom:3px; }
.premise-map { width:100%; height:330px; border-radius:20px; overflow:hidden; border:1px solid #cdddea; background:#eef5fa; z-index:1; }
.map-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.map-status { color:var(--muted); font-size:.88rem; font-weight:800; }
.map-status-ready { color:#167246; }
.map-status-error { color:#a33434; }
.input-with-suffix { position:relative; }
.input-with-suffix .text-input { padding-right:54px; }
.input-with-suffix > span { position:absolute; right:17px; top:50%; transform:translateY(-50%); color:#6f8095; font-weight:850; }
.choice-fieldset { border:0; padding:0; margin:6px 0 0; }
.choice-fieldset legend { font-weight:850; color:var(--blue-dark); margin-bottom:9px; }
.large-choice-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.large-choice { position:relative; cursor:pointer; }
.large-choice input { position:absolute; opacity:0; }
.large-choice span { min-height:54px; padding:0 15px; display:grid; place-items:center; border:1px solid #c7d8e7; border-radius:15px; background:#fff; color:var(--blue-dark); font-weight:850; transition:.15s ease; }
.large-choice input:checked + span { border-color:var(--blue); background:#eaf5ff; box-shadow:0 0 0 2px rgba(34,116,177,.08); color:var(--blue); }
.large-choice input:focus-visible + span { outline:3px solid rgba(34,116,177,.22); outline-offset:2px; }
.rule-check-hint { display:flex; gap:11px; align-items:flex-start; padding:14px 15px; border-radius:16px; background:#effaf6; border:1px solid #cbe9da; color:#1d6c4d; }
.rule-check-hint > span { width:30px; height:30px; flex:0 0 30px; display:grid; place-items:center; border-radius:50%; background:#d8f2e5; font-weight:900; }
.rule-check-hint strong { display:block; }
.rule-check-hint p { margin:3px 0 0; color:#4a7563; font-size:.88rem; line-height:1.45; }
.premise-summary-box { display:grid; gap:4px; margin:18px 0; padding:16px; border-radius:17px; background:#f3f9ff; border:1px solid #d5e7f6; text-align:left; }
.premise-summary-box strong { color:var(--blue-dark); }
.premise-summary-box span { color:#52677f; line-height:1.45; }
.premise-summary-box small { color:var(--teal); font-weight:800; margin-top:4px; }
@media (max-width:620px) {
  .existing-premise-option { display:grid; }
  .premise-use-button { width:100%; min-height:48px; }
  .large-choice-grid { grid-template-columns:1fr; }
  .premise-map { height:290px; }
  .map-actions .button { width:100%; }
}

/* New application - Step 3: Dog + AI */
.application-context-strip { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:18px 0 4px; }
.application-context-strip > div { padding:12px 14px; border-radius:15px; background:#f3f9ff; border:1px solid #d9e8f5; }
.application-context-strip span,.application-context-strip strong { display:block; }
.application-context-strip span { color:var(--muted); font-size:.78rem; font-weight:750; }
.application-context-strip strong { color:var(--blue-dark); margin-top:3px; font-size:.92rem; }
.guided-photo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.guided-photo-card { min-width:0; display:grid; align-content:start; gap:8px; padding:13px; border:1px solid #d8e6f2; border-radius:19px; background:linear-gradient(180deg,#fff,#f8fcff); cursor:pointer; }
.guided-photo-card > strong { color:var(--blue-dark); }
.guided-photo-card > span { color:var(--muted); font-size:.84rem; line-height:1.4; min-height:48px; }
.guided-photo-card input { position:absolute; opacity:0; pointer-events:none; width:1px; height:1px; }
.guided-photo-card .button { min-height:44px; padding:0 10px; font-size:.88rem; }
.guided-photo-card .selected-file { font-size:.75rem; overflow-wrap:anywhere; }
.dog-guide-visual { height:128px; display:grid; place-items:center; align-content:center; gap:6px; border-radius:15px; background:linear-gradient(145deg,#eaf7ff,#e9faf5); color:#0a7c75; }
.dog-guide-visual span { font-size:2.6rem; filter:saturate(.7); }
.dog-guide-visual b { font-size:.7rem; letter-spacing:.12em; }
.photo-quality-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.quality-card { display:flex; align-items:flex-start; gap:10px; min-height:104px; padding:13px; border-radius:17px; border:1px solid #d8e6f1; }
.quality-card strong,.quality-card span,.quality-card small { display:block; }
.quality-card span { margin-top:3px; font-size:.82rem; font-weight:800; }
.quality-card small { margin-top:5px; color:#687a8f; line-height:1.35; }
.quality-icon { width:30px; height:30px; flex:0 0 30px; display:grid; place-items:center; border-radius:50%; font-weight:900; }
.quality-pass { background:#effaf4; border-color:#c6e7d5; }
.quality-pass .quality-icon { background:#d7f3e3; color:#0e7840; }
.quality-pass span { color:#167346; }
.quality-fail { background:#fff7ea; border-color:#efd9a9; }
.quality-fail .quality-icon { background:#ffe9bd; color:#945d00; }
.quality-fail span { color:#8d5a08; }
.ai-dog-summary { display:flex; align-items:center; gap:12px; padding:15px; border-radius:18px; background:linear-gradient(135deg,#eef7ff,#edfafa); border:1px solid #cfe5f1; margin-bottom:13px; }
.ai-dog-icon { width:46px; height:46px; flex:0 0 46px; border-radius:15px; display:grid; place-items:center; background:linear-gradient(145deg,var(--blue),var(--teal)); color:#fff; font-weight:900; }
.ai-dog-summary strong,.ai-dog-summary span { display:block; }
.ai-dog-summary span { margin-top:3px; color:#5f738a; font-size:.85rem; }
.dog-retake-details { margin:7px 0 20px; }
.dog-details-form { gap:12px; }
.optional-label { color:var(--muted); font-weight:600; font-size:.86rem; }
.age-fields { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.age-fields label { position:relative; }
.age-fields .text-input { padding-right:58px; }
.age-fields span { position:absolute; right:15px; top:50%; transform:translateY(-50%); color:#718198; font-size:.84rem; font-weight:800; }
.text-area { padding:13px 15px; min-height:100px; resize:vertical; }
.breed-rule-message { padding:12px 14px; border-radius:14px; font-size:.9rem; font-weight:800; }
.breed-rule-warning { background:#fff7e5; border:1px solid #eed59b; color:#7d570c; }
.breed-rule-block { background:#fff0f0; border:1px solid #efc4c4; color:#922d2d; }
.visual-observation { padding:14px 15px; border-radius:16px; background:#f7fafc; border:1px solid #dfe8ef; }
.visual-observation strong { color:var(--blue-dark); }
.visual-observation p { margin:5px 0; color:#4f6379; line-height:1.45; }
.visual-observation small { color:#7a899b; }
@media (max-width:680px) {
  .guided-photo-grid,.photo-quality-grid { grid-template-columns:1fr; }
  .guided-photo-card { grid-template-columns:92px 1fr; align-items:center; }
  .guided-photo-card .dog-guide-visual { grid-row:1 / span 4; height:112px; }
  .guided-photo-card > span { min-height:0; }
  .guided-photo-card .button { width:auto; }
  .application-context-strip { grid-template-columns:1fr; }
}
@media (max-width:430px) {
  .guided-photo-card { grid-template-columns:78px 1fr; padding:11px; }
  .dog-guide-visual { height:100px!important; }
  .age-fields { grid-template-columns:1fr 1fr; }
}

/* New application - Step 4: Veterinary documents */
.vet-step-card { overflow:visible; }
.dog-vet-context { display:flex; align-items:center; gap:12px; margin:14px 0 22px; padding:13px 15px; border-radius:17px; background:linear-gradient(135deg,#eff8ff,#effbf8); border:1px solid #d5e8f0; }
.dog-vet-avatar { width:46px; height:46px; flex:0 0 46px; display:grid; place-items:center; border-radius:15px; background:#fff; font-size:1.75rem; box-shadow:0 4px 14px rgba(22,84,124,.08); }
.dog-vet-context strong,.dog-vet-context span { display:block; }
.dog-vet-context strong { color:var(--blue-dark); }
.dog-vet-context span { margin-top:3px; color:var(--muted); font-size:.87rem; }
.vet-doc-form { display:grid; gap:15px; }
.vet-doc-card { padding:17px; border:1px solid #d8e5ef; border-radius:20px; background:#fff; transition:.18s ease; }
.vet-doc-card > p { margin:10px 0 13px; color:#60758b; line-height:1.5; }
.vet-doc-pass { border-color:#bfe3d1; background:linear-gradient(180deg,#fff,#f7fcf9); }
.vet-doc-conditional { border-color:#cbdff0; background:linear-gradient(180deg,#fff,#f8fbff); }
.vet-doc-head { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:11px; }
.vet-doc-icon { width:43px; height:43px; display:grid; place-items:center; border-radius:14px; background:#eaf5ff; color:var(--blue); font-size:1.2rem; font-weight:900; }
.vet-doc-title span { display:block; color:#7a8ca0; font-size:.72rem; font-weight:850; text-transform:uppercase; letter-spacing:.05em; }
.vet-doc-title h2 { margin:2px 0 0; color:var(--blue-dark); font-size:1rem; }
.vet-status { display:inline-flex; align-items:center; min-height:31px; padding:5px 9px; border-radius:999px; font-size:.72rem; font-weight:900; text-align:center; }
.status-pass { color:#12693f; background:#def4e7; }
.status-flag { color:#8a5a00; background:#fff0c8; }
.status-fail { color:#9a3030; background:#fee8e8; }
.status-unknown,.status-pending { color:#5c6775; background:#edf1f5; }
.status-missing { color:#32658a; background:#e8f3fb; }
.document-upload-zone { position:relative; min-height:112px; padding:18px; display:grid; place-items:center; align-content:center; gap:5px; border:2px dashed #b9d2e5; border-radius:17px; background:#f8fcff; text-align:center; cursor:pointer; }
.document-upload-zone:hover { border-color:#7fb8de; background:#f2f9ff; }
.document-upload-zone > strong { color:var(--blue-dark); }
.document-upload-zone > span { color:#71839a; font-size:.84rem; }
.document-upload-zone input { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.document-upload-zone .selected-file { position:relative; z-index:1; max-width:100%; color:#0b7a71; font-weight:800; overflow-wrap:anywhere; pointer-events:none; }
.vet-result-summary { display:grid; gap:5px; margin:11px 0 13px; padding:12px 13px; border-radius:14px; background:#eff9f4; border:1px solid #d0e9dc; }
.vet-result-summary span,.vet-result-summary small { color:#456d5b; line-height:1.4; }
.vet-result-summary small { padding-top:4px; border-top:1px solid #d8ebe1; }
.conditional-rule-note { display:grid; gap:4px; margin:12px 0 14px; padding:12px 13px; border-radius:14px; background:#eef6fd; color:#46677f; }
.conditional-rule-note strong { color:var(--blue-dark); }
.conditional-rule-note span { font-size:.86rem; line-height:1.45; }
.sterilisation-choice { margin:14px 0; }
.ai-safety-note { display:flex; align-items:flex-start; gap:11px; padding:14px 15px; border-radius:17px; background:#f4f8fb; border:1px solid #dce7ef; }
.ai-safety-note > span { width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center; border-radius:13px; background:linear-gradient(145deg,var(--blue),var(--teal)); color:#fff; font-size:.8rem; font-weight:900; }
.ai-safety-note p { margin:0; color:#607287; font-size:.86rem; line-height:1.45; }
.ai-safety-note strong { color:var(--blue-dark); }
@media (max-width:620px) {
  .vet-doc-head { grid-template-columns:auto 1fr; }
  .vet-status { grid-column:2; justify-self:start; }
  .document-upload-zone { min-height:104px; }
}

/* New application - Step 5: Payment + temporary licence */
.step-progress { display:grid; gap:7px; margin-bottom:18px; }
.step-progress > span { color:var(--muted); font-size:.82rem; font-weight:850; }
.progress-track { height:7px; overflow:hidden; border-radius:999px; background:#e7eff7; }
.progress-track i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--blue),var(--teal)); }
.payment-context-card { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:18px 0; }
.payment-context-card > div { padding:14px 15px; border-radius:16px; background:#f3f9ff; border:1px solid #d8e7f4; }
.payment-context-card span,.payment-context-card strong { display:block; }
.payment-context-card span { color:var(--muted); font-size:.78rem; font-weight:750; }
.payment-context-card strong { margin-top:4px; color:var(--blue-dark); overflow-wrap:anywhere; }
.payment-summary { overflow:hidden; border:1px solid #d7e5f0; border-radius:21px; background:#fff; }
.payment-summary-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:17px 18px; background:linear-gradient(180deg,#fbfdff,#f5faff); border-bottom:1px solid #e4edf5; }
.payment-summary-head .eyebrow { margin:0 0 3px; }
.payment-summary-head h2 { font-size:1.08rem; }
.fee-list { padding:2px 18px; }
.fee-row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 0; border-bottom:1px solid #edf2f6; }
.fee-row:last-child { border-bottom:0; }
.fee-row strong { color:var(--ink); }
.fee-row > strong { white-space:nowrap; color:var(--blue-dark); }
.fee-row small { display:block; margin-top:3px; color:#8593a5; font-size:.75rem; }
.payment-total-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:17px 18px; background:#eaf8f1; border-top:1px solid #cee8da; }
.payment-total-row span { color:#296d4d; font-weight:850; }
.payment-total-row strong { color:#0f7d45; font-size:1.45rem; }
.simulation-note { display:flex; align-items:flex-start; gap:12px; margin-top:16px; padding:14px 15px; border-radius:17px; background:#fff8e9; border:1px solid #ead9ad; }
.simulation-icon { width:36px; height:36px; flex:0 0 36px; display:grid; place-items:center; border-radius:12px; background:#ffe9b7; color:#8b5b00; font-weight:900; }
.simulation-note strong { color:#78530a; }
.simulation-note p { margin:4px 0 0; color:#7a6741; font-size:.85rem; line-height:1.45; }
.payment-action-form { margin-top:18px; }
.payment-back-link { display:block; margin-top:13px; text-align:center; color:var(--blue); text-decoration:none; font-weight:800; }
.success-step-card { text-align:center; }
.success-step-card .lead { margin-left:auto; margin-right:auto; }
.success-check { width:74px; height:74px; display:grid; place-items:center; margin:0 auto 12px; border-radius:50%; background:linear-gradient(145deg,#dff6e8,#e8fbf4); color:#11834a; font-size:2rem; font-weight:900; box-shadow:0 8px 24px rgba(21,154,85,.12); }
.success-reference-card { display:grid; grid-template-columns:1.2fr 1fr .8fr; gap:1px; margin:20px 0; overflow:hidden; border:1px solid #dbe7f2; border-radius:18px; background:#dbe7f2; text-align:left; }
.success-reference-card > div { min-width:0; padding:14px; background:#fff; }
.success-reference-card span,.success-reference-card strong { display:block; }
.success-reference-card span { color:var(--muted); font-size:.75rem; font-weight:750; }
.success-reference-card strong { margin-top:5px; color:var(--blue-dark); overflow-wrap:anywhere; }
.success-reference-card .status-waiting { color:#0a7c75; }
.generated-documents { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:18px 0; text-align:left; }
.generated-document-card { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:11px; min-height:82px; padding:13px; border:1px solid #d8e5f0; border-radius:18px; background:#fff; color:inherit; text-decoration:none; transition:.18s ease; }
.generated-document-card:hover { transform:translateY(-1px); border-color:#a9cae5; box-shadow:0 8px 22px rgba(31,79,127,.08); }
.document-card-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; background:#e8f4ff; color:var(--blue); font-weight:900; }
.document-card-receipt { background:#e6f8ef; color:#117846; }
.generated-document-card strong,.generated-document-card span { display:block; }
.generated-document-card strong { color:var(--blue-dark); }
.generated-document-card span { margin-top:3px; color:var(--muted); font-size:.78rem; line-height:1.35; }
.generated-document-card b { color:var(--blue); font-size:1.15rem; }
.what-next-card { display:flex; align-items:flex-start; gap:12px; padding:15px; border-radius:18px; background:linear-gradient(135deg,#eef7ff,#eefbf8); border:1px solid #d4e7f0; text-align:left; }
.what-next-number { width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center; border-radius:13px; background:linear-gradient(145deg,var(--blue),var(--teal)); color:#fff; font-weight:900; }
.what-next-card strong { color:var(--blue-dark); }
.what-next-card p { margin:4px 0 0; color:#5b7188; font-size:.86rem; line-height:1.45; }
.notification-hold-note { display:grid; gap:4px; margin-top:12px; padding:12px 14px; border-radius:15px; background:#f7f9fb; border:1px solid #e1e8ee; text-align:left; }
.notification-hold-note strong { color:#4e6076; }
.notification-hold-note span { color:#748397; font-size:.82rem; line-height:1.4; }
@media (max-width:620px) {
  .payment-context-card,.generated-documents,.success-reference-card { grid-template-columns:1fr; }
  .payment-summary-head { align-items:flex-start; }
  .success-reference-card { gap:0; background:#fff; }
  .success-reference-card > div { border-bottom:1px solid #e8eef4; }
  .success-reference-card > div:last-child { border-bottom:0; }
}

/* Renewal flow */
.renew-photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.renew-photo-card{position:relative;display:grid;gap:8px;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff;cursor:pointer}.renew-photo-card input{position:absolute;inset:0;opacity:0;cursor:pointer}.renew-photo-card .button,.renew-photo-card .selected-file{position:relative;z-index:1;pointer-events:none}.renew-photo-card small{color:var(--muted);line-height:1.35}.renew-photo-number{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--blue);color:#fff;font-weight:900}.renew-photo-sample{height:90px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(180deg,#eef8ff,#f9fcff);font-size:2.25rem}.renew-photo-card .selected-file{font-size:.76rem;color:#0b7a71;font-weight:800;overflow-wrap:anywhere}.renew-quality-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.renew-quality-card{padding:12px;border:1px solid #e0e8ef;border-radius:14px;background:#f8fbfd}.renew-quality-card strong,.renew-quality-card span,.renew-quality-card small{display:block}.renew-quality-card span{margin-top:4px;font-weight:850}.renew-quality-card small{margin-top:4px;color:var(--muted);line-height:1.35}.renew-quality-card.is-pass{background:#edf9f2;border-color:#cce9d7}.renew-quality-card.is-pass span{color:#147a49}.renew-quality-card.is-fail{background:#fff5f2;border-color:#f2d1c8}.renew-quality-card.is-fail span{color:#b23b2a}.notice-success{background:#eaf8f0;border-color:#cae8d6;color:#226445}
@media(max-width:760px){.renew-photo-grid,.renew-quality-grid{grid-template-columns:1fr}.renew-photo-card{grid-template-columns:auto 1fr;align-items:center}.renew-photo-card .renew-photo-sample,.renew-photo-card .button,.renew-photo-card .selected-file{grid-column:1/-1}.renew-photo-sample{height:120px}}

/* Cancellation flow */
.selection-card { border:1px solid var(--line); border-radius:15px; padding:14px 15px; background:#fff; cursor:pointer; min-height:54px; }
.selection-card:has(input:checked) { border-color:var(--blue); background:#f1f7ff; box-shadow:0 0 0 3px rgba(7,95,216,.08); }
.selection-card input { width:20px; height:20px; accent-color:var(--blue); }
textarea.text-input { min-height:110px; padding-top:13px; padding-bottom:13px; resize:vertical; line-height:1.5; }
