:root {
  color-scheme: light;
  --blue: #12aeea;
  --blue-dark: #0d89cf;
  --text: #222832;
  --muted: #8a95a3;
  --line: #dfe5eb;
  --soft: #f5f7fa;
  --notice: #e9f6ff;
  --danger: #f04438;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(0, 132, 218, 0.9), rgba(11, 182, 232, 0.92)),
    #0aa5df;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 22px 14px;
}

.form-card {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(2, 78, 137, 0.35);
}

.hero {
  position: relative;
  min-height: 275px;
  padding: 44px 30px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 232, 98, 0.9) 0 6px, transparent 7px),
    linear-gradient(152deg, #07a8ea 0%, #39c7f1 54%, #8ce9ff 100%);
}

.resubmit-hero {
  min-height: 210px;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 160px;
  height: 190px;
  content: "";
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 330px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
}

.union-mark {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  font-size: 17px;
  font-weight: 900;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.2;
}

.hero p {
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 700;
  opacity: 0.95;
}

.hero-badge {
  display: inline-flex;
  min-width: 150px;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  color: #2389c9;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
}

.phone-mock {
  position: absolute;
  right: 32px;
  bottom: 34px;
  z-index: 1;
  width: 92px;
  height: 170px;
  padding: 8px;
  transform: rotate(-4deg);
  border: 3px solid #343b45;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 28px rgba(0, 93, 128, 0.24);
}

.phone-screen {
  display: grid;
  height: 100%;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f2fbff);
}

.phone-screen span {
  position: absolute;
  top: 25px;
  width: 42px;
  height: 4px;
  border-radius: 5px;
  background: #d4edf5;
}

.phone-screen strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  font-size: 19px;
}

.application-form {
  padding: 34px 26px 32px;
}

.application-form h2,
.upload-section h3 {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 22px;
  line-height: 1.3;
}

.field,
.address-group {
  display: grid;
  gap: 11px;
  margin: 0 0 22px;
  border: 0;
  padding: 0;
}

.field span,
.address-group legend {
  padding: 0;
  color: #242a32;
  font-size: 18px;
  font-weight: 800;
}

em {
  color: #f14747;
  font-style: normal;
}

input,
select {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #2c3440;
  background: #fff;
  outline: 0;
  padding: 0 18px;
  font-size: 18px;
}

input::placeholder {
  color: #b8bec7;
}

select {
  appearance: auto;
  background-color: #f1f1f3;
  font-weight: 700;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(18, 174, 234, 0.16);
}

.select-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.upload-section {
  margin-top: 26px;
}

.upload-hint {
  margin: -10px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.upload-list {
  display: grid;
  gap: 12px;
}

.upload-box {
  position: relative;
  display: grid;
  min-height: 126px;
  place-items: center;
  overflow: hidden;
  border: 1.5px dashed #79bfd3;
  border-radius: 8px;
  background: #fbfcff;
  cursor: pointer;
}

.upload-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-title em {
  color: var(--danger);
  font-style: normal;
  font-weight: 800;
}

.upload-title small {
  margin-left: 6px;
  color: #8a98a8;
  font-size: 13px;
  font-weight: 500;
}

.upload-box img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-box.has-image img {
  display: block;
}

.upload-box.has-image .plus,
.upload-box.has-image .upload-title {
  position: absolute;
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.upload-box.has-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.38));
}

.plus {
  margin-top: 8px;
  color: var(--blue-dark);
  font-size: 32px;
  line-height: 1;
}

.upload-title {
  margin-top: -18px;
  color: #252b34;
  font-size: 18px;
  font-weight: 700;
}

.notice {
  margin: 26px 0;
  border-left: 5px solid var(--blue);
  background: var(--notice);
  padding: 14px 20px;
  font-size: 16px;
  line-height: 1.55;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.notice p {
  margin: 0;
}

.submit-button {
  width: 100%;
  min-height: 66px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.submit-button:active {
  transform: translateY(1px);
}

.agreement,
.rush-text {
  margin: 20px 0 0;
  color: #89939f;
  text-align: center;
  font-size: 14px;
}

.agreement button,
.rush-text a {
  border: 0;
  color: #168fcf;
  background: transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.rush-text {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  font-size: 16px;
}

.call-card {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  padding: 18px;
  border-radius: 12px;
  color: #151a22;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(19, 53, 80, 0.15);
}

.call-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #34a8e5;
  font-size: 25px;
}

.call-card strong,
.call-card small {
  display: block;
}

.call-card strong {
  margin-bottom: 5px;
  font-size: 20px;
}

.call-card small {
  color: #232832;
  font-size: 15px;
}

.call-card b {
  color: #59616b;
  font-size: 28px;
  font-weight: 400;
}

dialog {
  width: min(88vw, 360px);
  border: 0;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.35);
}

.dialog-body {
  padding: 24px;
}

.dialog-body h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.dialog-body p {
  margin: 0 0 22px;
  color: #5f6875;
  line-height: 1.65;
}

.dialog-body button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}

@media (max-width: 430px) {
  .page-shell {
    padding: 0;
  }

  .form-card {
    min-height: 100vh;
    border-radius: 0;
  }

  .hero {
    min-height: 245px;
    padding: 36px 24px;
  }

  .phone-mock {
    right: 18px;
    width: 78px;
    height: 148px;
  }

  .application-form {
    padding: 30px 22px;
  }

  .application-form h2,
  .upload-section h3 {
    font-size: 20px;
  }

  .field span,
  .address-group legend,
  input,
  select,
  .upload-title {
    font-size: 16px;
  }

  .select-row {
    grid-template-columns: 1fr;
  }
}
