
:root {
  --bg: #eef3fb;
  --bg-2: #f9fbff;
  --card: rgba(255,255,255,0.92);
  --line: #d9e3f2;
  --line-strong: #bfd0ea;
  --text: #11233d;
  --muted: #63748d;
  --primary: #205cf4;
  --primary-2: #5a8cff;
  --primary-deep: #163fa8;
  --success: #0c8a4a;
  --danger: #c63232;
  --shadow: 0 20px 60px rgba(19, 45, 95, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(90,140,255,0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(32,92,244,0.10), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 56%, #edf2f9 100%);
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.page-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 16px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 174px;
  height: auto;
}

.top-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(32,92,244,0.14);
  background: rgba(255,255,255,0.78);
  box-shadow: 0 8px 20px rgba(19,45,95,0.05);
  color: #29405d;
  font-size: 13px;
  font-weight: 700;
}

.layout {
  display: grid;
  gap: 18px;
}

@media (min-width: 980px) {
  .layout {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
}

.panel {
  background: var(--card);
  border: 1px solid rgba(191,208,234,0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero {
  overflow: hidden;
}

.hero-inner {
  position: relative;
  padding: 28px 22px 22px;
  background: linear-gradient(135deg, #0f4fdd 0%, #2b69ff 50%, #6d98ff 100%);
  color: white;
}
.hero-inner::after {
  content: "";
  position: absolute;
  inset: auto -80px -90px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.28), rgba(255,255,255,0.02) 70%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.16);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}
.hero h1 {
  margin: 14px 0 10px;
  font-size: 34px;
  line-height: 1.03;
  letter-spacing: -0.04em;
}
.hero p {
  margin: 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.93);
}
.hero-grid {
  display: grid;
  gap: 12px;
  padding: 18px 18px 20px;
}
@media (min-width: 700px) {
  .hero-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.stat {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.98));
  border: 1px solid rgba(191,208,234,0.66);
}
.stat strong {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.trust-list {
  display: grid;
  gap: 12px;
  padding: 0 18px 22px;
}
.trust-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(191,208,234,0.58);
  background: rgba(249,251,255,0.96);
}
.trust-icon {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--primary);
  background: rgba(32,92,244,0.1);
}
.trust-row strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.trust-row span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.form-panel {
  padding: 20px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}
.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.progress-chip {
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--primary-deep);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid #d2e2ff;
}

.notice {
  margin-bottom: 16px;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid #d7e5ff;
  background: linear-gradient(180deg, #f4f8ff 0%, #eef5ff 100%);
  color: #24457d;
  font-size: 14px;
  line-height: 1.55;
}

.global-error {
  display: none;
  margin-bottom: 16px;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid #ffd4cf;
  background: #fff5f4;
  color: #ab2b1f;
  font-size: 14px;
  line-height: 1.5;
}

.form-section + .form-section {
  margin-top: 22px;
}
.form-section-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .10em;
  color: #4f617d;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 14px;
  font-weight: 700;
  color: #24364f;
}
.field small {
  color: var(--muted);
  font-size: 12px;
}

.input-shell,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"] {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  border-radius: 16px;
  min-height: 56px;
  padding: 15px 16px;
  font-size: 16px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
input:focus {
  border-color: #8eb0ff;
  box-shadow: 0 0 0 4px rgba(32, 92, 244, 0.11);
}
.input-shell.money {
  position: relative;
  padding: 0;
}
.input-shell.money span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  color: #48617f;
}
.input-shell.money input {
  border: 0;
  min-height: 54px;
  padding: 15px 16px 15px 32px;
  box-shadow: none;
}
.input-shell.money input:focus {
  box-shadow: none;
}
.error {
  min-height: 15px;
  color: var(--danger);
  font-size: 12px;
}

.upload-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .upload-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.upload-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
  border-radius: 20px;
  padding: 16px;
}
.upload-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.upload-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.file-drop {
  position: relative;
  border: 1.5px dashed #afc4e8;
  border-radius: 16px;
  background: white;
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}
.file-drop.is-dragging {
  border-color: var(--primary);
  background: #f3f7ff;
}
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-drop strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}
.file-drop span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.file-chip {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  border-radius: 16px;
  border: 1px solid #d7e2f5;
  background: white;
  padding: 10px 12px;
  font-size: 12px;
  color: #29405d;
}
.file-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.file-chip-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.file-chip-size {
  color: var(--muted);
  white-space: nowrap;
}

.submit-wrap {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}
.submit-btn {
  width: 100%;
  border: 0;
  min-height: 58px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1650dd 0%, #2762f6 48%, #4d86ff 100%);
  color: white;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(22,80,221,0.23);
  transition: transform .16s ease, opacity .16s ease;
}
.submit-btn:hover { transform: translateY(-1px); }
.submit-btn:disabled { opacity: .76; cursor: not-allowed; transform: none; }
.disclaimer {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.confirm-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.confirm-card {
  width: 100%;
  max-width: 760px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(191,208,234,0.76);
  box-shadow: var(--shadow);
  border-radius: 30px;
  overflow: hidden;
}
.confirm-top {
  padding: 28px 24px 22px;
  background: linear-gradient(135deg, #0f4fdd 0%, #2b69ff 50%, #6d98ff 100%);
  color: white;
}
.confirm-top .brand img { width: 178px; }
.confirm-badge {
  display: inline-flex;
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.24);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.confirm-top h1 {
  margin: 14px 0 10px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.confirm-top p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.94);
}
.confirm-body {
  padding: 22px;
}
.alert-success {
  padding: 16px 17px;
  border-radius: 18px;
  background: #eefaf3;
  border: 1px solid #cbeed9;
  color: #145a34;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 16px;
}
.next-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 700px) {
  .next-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.next-card {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
  padding: 16px;
}
.next-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}
.next-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.callout {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #edf4ff 0%, #f8fbff 100%);
  border: 1px solid #d7e6ff;
}
.callout h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.callout p {
  margin: 0;
  color: #28405e;
  line-height: 1.65;
}
.confirm-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
}
.action-btn.primary {
  background: linear-gradient(135deg, #1650dd 0%, #2762f6 48%, #4d86ff 100%);
  color: white;
  box-shadow: 0 16px 30px rgba(22,80,221,0.22);
}
.action-btn.secondary {
  border: 1px solid var(--line-strong);
  background: white;
  color: #24457d;
}
.footnote {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 639px) {
  .hero h1,
  .confirm-top h1 { font-size: 30px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .section-head { flex-direction: column; align-items: flex-start; }
}


.address-field input[type="text"] {
  min-height: 54px;
}

.file-drop {
  overflow: hidden;
}

.file-list {
  align-items: flex-start;
}

.file-chip {
  max-width: 100%;
  min-width: 0;
}

.file-chip b {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.file-chip span:last-child {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .brand img,
  .confirm-top .brand img {
    width: 156px;
  }

  .file-chip {
    width: 100%;
    border-radius: 16px;
  }
}

@media (max-width: 639px) {
  .upload-card { padding: 14px; }
  .file-drop { min-height: 108px; padding: 14px; }
  .file-list { gap: 8px; }
  .file-chip { border-radius: 14px; }
}


.compact-shell { max-width: 1080px; }
.compact-layout { gap: 16px; }
@media (min-width: 980px) {
  .compact-layout { grid-template-columns: .8fr 1.2fr; }
}
.compact-hero { align-self: start; }
.compact-hero-inner { padding: 24px 20px 20px; }
.compact-hero .hero-inner h1 { font-size: 30px; }
.compact-hero .hero-inner p { max-width: 520px; }
.mini-points {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
}
.mini-point {
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(191,208,234,0.62);
  background: rgba(249,251,255,0.98);
}
.mini-point strong { display:block; font-size:15px; margin-bottom:4px; }
.mini-point span { color: var(--muted); font-size:13px; line-height:1.45; }
.compact-form-panel { padding: 18px; }
.compact-head h2 { font-size: 22px; }
.form-mt { margin-top: 14px; }
.address-autocomplete {
  position: relative;
}
.address-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  border: 1px solid #d7e2f5;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(19,45,95,0.14);
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}
.address-suggestions.is-visible { display: block; }
.address-suggestion-item {
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  border-bottom: 1px solid #eef3fb;
}
.address-suggestion-item:last-child { border-bottom: 0; }
.address-suggestion-item:hover,
.address-suggestion-item:focus {
  background: #f4f8ff;
  outline: none;
}
.file-drop { cursor: pointer; }
.file-drop > div {
  max-width: 100%;
  width: 100%;
  min-width: 0;
}
.file-drop strong,
.file-drop span {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.file-list {
  display: grid;
  grid-template-columns: 1fr;
}
.file-chip {
  width: 100%;
  max-width: 100%;
}
.file-chip-name {
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.35;
}
@media (max-width: 979px) {
  .compact-hero { order: -1; }
}
@media (max-width: 639px) {
  .compact-form-panel { padding: 16px; }
  .compact-hero .hero-inner h1 { font-size: 28px; }
  .address-suggestion-item { padding: 12px 13px; font-size: 14px; }
}


.upload-grid-top {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
@media (min-width: 640px) {
  .upload-grid-top {
    grid-template-columns: 1fr 1fr;
  }
}
.upload-grid-bottom {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.upload-card-wide {
  width: 100%;
}
.optional-upload-head {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(20,33,61,0.08);
  border-radius: 16px;
  background: rgba(244,247,252,0.8);
}
.optional-upload-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.optional-upload-head p {
  margin: 0;
  color: #5b6478;
  font-size: 14px;
}
.file-drop.input-error,
input.input-error,
.input-shell.input-error {
  border-color: #c63232 !important;
  box-shadow: 0 0 0 4px rgba(198,50,50,0.10) !important;
}
.error:not(:empty) {
  margin-top: 6px;
  font-weight: 600;
}
.file-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.file-chip {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  border-radius: 16px;
  border: 1px solid #d7e2f5;
  background: white;
  padding: 12px 14px;
  font-size: 12px;
  color: #29405d;
}
.file-chip-remove {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 4px;
}
input::placeholder {
  color: #8a96ad;
}
