:root {
  --blue: #0f94f5;
  --blue-dark: #0a4d86;
  --ink: #061326;
  --muted: #526783;
  --line: #d5dfec;
  --panel: #ffffff;
  --page: #f5f8fc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
}

.hero {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
}

.hero__image,
.preview {
  background-image: var(--hero-image, linear-gradient(135deg, #d8e6f3, #829db5));
  background-size: cover;
  background-position: center;
}

.hero__image {
  position: absolute;
  inset: 0;
  transform: scale(1.04);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 24, 45, .72), rgba(7, 88, 152, .8));
}

.topbar {
  position: absolute;
  top: 18px;
  right: 26px;
  z-index: 3;
}

.topbar a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 34px));
  text-align: center;
  padding: 80px 0 50px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .24);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .04em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1;
}

.hero p {
  max-width: 790px;
  margin: 24px auto 48px;
  font-size: clamp(18px, 3vw, 25px);
  line-height: 1.45;
}

.hero__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hero__features span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero__features i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #12a8ff, #27bee8);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18), inset 0 0 0 2px rgba(255, 255, 255, .28);
}

.hero__features i::before {
  content: "";
  width: 15px;
  height: 15px;
  background: white;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.page {
  padding: 0 18px 70px;
}

.form-card {
  width: min(850px, 100%);
  margin: -1px auto 0;
}

.panel {
  margin: 24px 0;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(20, 42, 70, .05);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.section-title.compact {
  border: 0;
  margin-bottom: 12px;
  padding-bottom: 0;
}

.icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  flex: 0 0 47px;
  position: relative;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d88ff, #27bee8);
  box-shadow: 0 12px 26px rgba(13, 136, 255, .26), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.icon::before {
  content: "";
  width: 24px;
  height: 24px;
  background-color: white;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.icon.muted {
  background: linear-gradient(135deg, #e9eef5, #dbe5ef);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.icon.muted::before {
  background-color: #0a4d86;
}

.icon-user::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3C/svg%3E");
}

.icon-calendar::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='3'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='3'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01'/%3E%3C/svg%3E");
}

.icon-home::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V10'/%3E%3Cpath d='M9 21v-7h6v7'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V10'/%3E%3Cpath d='M9 21v-7h6v7'/%3E%3C/svg%3E");
}

.icon-check::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12.5 2.3 2.3 4.9-5.2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12.5 2.3 2.3 4.9-5.2'/%3E%3C/svg%3E");
}

.icon-briefcase::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 13h18M12 13v2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 13h18M12 13v2'/%3E%3C/svg%3E");
}

.icon-card::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M3 10h18M7 15h3'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M3 10h18M7 15h3'/%3E%3C/svg%3E");
}

h2 {
  margin: 0;
  font-size: 26px;
}

h3 {
  margin: 18px 0 12px;
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label,
.question {
  display: block;
  margin: 0 0 12px;
  font-weight: 800;
}

b {
  color: #f04a55;
}

input,
select {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  color: #061326;
  font: inherit;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 26px;
}

.choice-row label {
  display: grid;
  place-items: center;
  min-height: 56px;
  border: 2px solid var(--line);
  border-radius: 13px;
  background: white;
  cursor: pointer;
  font-weight: 500;
}

.choice-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-row label:has(input:checked) {
  border-color: var(--blue);
  background: #edf8ff;
  color: #075f9f;
  font-weight: 800;
}

.policy {
  color: #213653;
  line-height: 1.45;
}

.policy p {
  color: #3e536f;
}

.notice {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f9fc;
}

.notice.soft {
  border: 0;
  background: #f0f3f7;
}

.checks {
  padding-left: 22px;
}

.terms {
  color: #46617f;
}

.agree {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.agree input {
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.submit,
.primary-link,
.admin-actions button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  color: #061326;
  background: linear-gradient(90deg, #0d88ff, #27bee8);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

.submit {
  width: 100%;
}

.result {
  min-height: 24px;
  text-align: center;
  color: #087342;
  font-weight: 800;
}

.alert {
  width: min(850px, 100%);
  margin: 22px auto 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eef6ff;
  color: #0b3765;
  font-weight: 800;
}

.alert.success {
  border-color: #a6dfc4;
  background: #effbf5;
  color: #087342;
}

.alert.error {
  border-color: #ffc2c7;
  background: #fff3f4;
  color: #9d1f2a;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(6, 19, 38, .58);
}

.modal-backdrop.is-open {
  display: grid;
}

.modal {
  width: min(430px, 100%);
  padding: 34px;
  border-radius: 18px;
  background: white;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .25);
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #16a5f7;
  color: white;
  font-weight: 900;
}

.modal h2 {
  margin-bottom: 10px;
}

.modal p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.5;
}

.modal .modal-contact {
  display: inline-block;
  margin: 0 0 24px;
  padding: 12px 16px;
  border: 1px solid #bfe4ff;
  border-radius: 999px;
  background: #eef8ff;
  color: #0a4d86;
  font-weight: 700;
}

.modal-close {
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #0d88ff, #27bee8);
  color: #061326;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #eef6ff, #f8fbff);
}

.admin-shell {
  width: min(760px, 100%);
}

.admin-card {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 20px 55px rgba(13, 54, 94, .12);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.admin-card h1 {
  margin: 0 0 10px;
  font-size: 36px;
}

.admin-card p {
  color: var(--muted);
  line-height: 1.5;
}

.preview {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.upload-box {
  display: grid;
  place-items: center;
  min-height: 90px;
  border: 2px dashed #9fc2df;
  border-radius: 14px;
  background: #f8fbff;
  color: #075f9f;
  cursor: pointer;
}

.upload-box input {
  display: none;
}

.admin-form {
  display: grid;
  gap: 18px;
}

.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-actions button {
  padding: 0 22px;
  background: #e8eef5;
}

.primary-link {
  padding: 0 26px;
}

.primary-link.secondary {
  background: #e8eef5;
}

.detail-link {
  color: #0874c9;
  font-weight: 800;
  text-decoration: none;
}

.application-detail {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}

.application-detail + .application-detail {
  margin-top: 18px;
}

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

.application-detail h3 {
  margin: 4px 0 0;
  font-size: 22px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.detail-grid div {
  padding: 14px;
  border: 1px solid #e0e8f1;
  border-radius: 12px;
  background: white;
}

.detail-grid dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.detail-grid dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  word-break: break-word;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

@media (max-width: 720px) {
  .hero {
    min-height: 650px;
  }

  .hero__features,
  .grid.two,
  .choice-row,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 24px 18px;
  }

  .hero h1 {
    font-size: 48px;
  }
}
