/* SIMPEL - Identitas Pengunjung
   Desain banner mengikuti halaman utama: foto gedung, overlay navy,
   aksen emas, dan panel formulir putih. */

.identity-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: none;
  margin: 8px 0 0;
  padding: clamp(30px, 4vw, 58px) clamp(20px, 4vw, 58px) 34px;
  border-radius: 25px;
  background: #082b52;
  box-shadow: 0 18px 48px rgba(16, 47, 75, .16);
}

.identity-hero::before,
.identity-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.identity-hero::before {
  background: url("../img/gedung-man2-kulon-progo.jpg") center 43% / cover no-repeat;
  transform: scale(1.015);
}

.identity-hero::after {
  background:
    linear-gradient(90deg, rgba(4, 27, 53, .96) 0%, rgba(5, 35, 67, .88) 46%, rgba(5, 35, 67, .48) 100%),
    linear-gradient(0deg, rgba(3, 22, 44, .52), transparent 52%);
}

.identity-heading {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0 0 25px;
  color: #fff;
}

.identity-heading .back-link {
  display: inline-flex;
  align-items: center;
  margin: 0 12px 16px 0;
  color: #f3d89e;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.identity-heading .back-link:hover {
  color: #fff;
  text-decoration: underline;
}

.identity-heading .welcome-pill {
  display: inline-flex;
  vertical-align: middle;
  margin-bottom: 8px;
}

.identity-heading h1 {
  margin: 13px 0 12px;
  color: #fff;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.identity-heading h1 em {
  color: #f1ca78;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
}

.identity-heading > p {
  max-width: 650px;
  margin: 0;
  color: #e0eaf5;
  font-size: 14px;
  line-height: 1.75;
}

.identity-card {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid #e7d5ae;
  border-radius: 18px;
  background: #fff;
  color: #082b52;
  box-shadow: 0 14px 36px rgba(0, 22, 44, .28);
}

.identity-card .card-kicker {
  margin: 0 0 12px;
  color: #a47a2c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.identity-card .card-kicker span {
  padding: 0 5px;
  color: #d9ad53;
}

.identity-card h2 {
  margin: 0 0 5px;
  color: #082b52;
  font-size: 21px;
  line-height: 1.35;
}

.identity-card .form-intro {
  margin: 0 0 18px;
  color: #748397;
  font-size: 12px;
  line-height: 1.65;
}

.identity-card .role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.identity-card .role-option {
  display: grid;
  grid-template-columns: 17px 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 3px;
  min-height: 86px;
  padding: 13px;
  border: 1px solid #d9e4ef;
  border-radius: 13px;
  background: linear-gradient(120deg, #f2f8ff, #fff);
  color: #082b52;
  cursor: pointer;
  transition: .2s ease;
}

.identity-card .role-option:hover {
  transform: translateY(-2px);
  border-color: #d9ad53;
  box-shadow: 0 8px 20px rgba(18, 59, 100, .10);
}

.identity-card .role-option:has(input:checked) {
  border: 2px solid #c69a45;
  padding: 12px;
  background: linear-gradient(120deg, #fff8e9, #fff);
  box-shadow: 0 0 0 3px rgba(217, 173, 83, .12);
}

.identity-card .role-option input[type="radio"] {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #a67c32;
}

.identity-card .role-symbol {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: #082b52;
  color: #f4d18b;
  font-size: 21px;
}

.identity-card .role-option:nth-child(2) .role-symbol {
  background: #eaf4fb;
  color: #126aa6;
}

.identity-card .role-option:nth-child(3) .role-symbol {
  background: #f7f0df;
  color: #a67c32;
}

.identity-card .role-option strong {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  color: #082b52;
  font-size: 13px;
  line-height: 1.3;
}

.identity-card .role-option small {
  grid-column: 3;
  grid-row: 2;
  align-self: start;
  color: #718196;
  font-size: 10px;
  line-height: 1.4;
}

.identity-card .form-fields,
.identity-card .guest-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 5px;
}

.identity-card .field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.identity-card .field label {
  color: #183958;
  font-size: 12px;
  font-weight: 700;
}

.identity-card .field label span {
  color: #c18425;
}

.identity-card .field input,
.identity-card .field select,
.identity-card .field textarea {
  width: 100%;
  min-height: 45px;
  border: 1px solid #d6e1ec;
  border-radius: 10px;
  padding: 11px 13px;
  background: #fbfdff;
  color: #183958;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.identity-card .field textarea {
  min-height: 76px;
  resize: vertical;
}

.identity-card .field input:focus,
.identity-card .field select:focus,
.identity-card .field textarea:focus {
  border-color: #50c7dc;
  box-shadow: 0 0 0 3px rgba(80, 199, 220, .15);
}

.identity-card .field small {
  color: #8492a1;
  font-size: 10px;
}

.identity-card .guest-full {
  grid-column: 1 / -1;
}

.identity-card .privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 17px 0 0;
  color: #718196;
  font-size: 11px;
  line-height: 1.6;
}

.identity-card .form-error {
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid #f0c4c4;
  border-radius: 10px;
  background: #fff5f5;
  color: #a52d2d;
  font-size: 12px;
}

.identity-card .continue-button {
  display: inline-flex;
  min-width: 150px;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 21px;
  padding: 10px 20px;
  border: 0;
  border-radius: 11px;
  background: #082b52;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(8, 43, 82, .16);
  transition: .2s ease;
}

.identity-card .continue-button:hover {
  transform: translateY(-2px);
  background: #126aa6;
  box-shadow: 0 10px 20px rgba(8, 43, 82, .2);
}

.identity-card .continue-button span {
  color: #f1ca78;
  font-size: 18px;
}

.identity-card [hidden] {
  display: none !important;
}

.footer {
  margin-top: 14px;
}

@media (max-width: 760px) {
  .identity-hero {
    margin-top: 4px;
    padding: 28px 16px 20px;
    border-radius: 18px;
  }

  .identity-hero::after {
    background:
      linear-gradient(90deg, rgba(4, 27, 53, .94), rgba(5, 35, 67, .72)),
      linear-gradient(0deg, rgba(3, 22, 44, .45), transparent);
  }

  .identity-heading {
    margin-bottom: 18px;
  }

  .identity-heading h1 {
    font-size: 37px;
  }

  .identity-heading > p {
    font-size: 13px;
  }

  .identity-card {
    padding: 19px 16px;
    border-radius: 16px;
  }

  .identity-card .role-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .identity-card .role-option {
    min-height: 73px;
  }

  .identity-card .form-fields,
  .identity-card .guest-fields {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .identity-card .guest-full {
    grid-column: auto;
  }

  .identity-card .continue-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .identity-heading h1 {
    font-size: 33px;
  }

  .identity-card h2 {
    font-size: 19px;
  }

  .identity-heading .back-link {
    margin-bottom: 12px;
  }
}

/* Judul identitas merek tetap terbaca pada header yang sempit. */
.brand-copy .eyebrow {
  max-width: 390px;
  font-size: 9px;
  letter-spacing: 1.15px;
  line-height: 1.45;
}
@media (max-width: 760px) {
  .brand-copy .eyebrow {
    max-width: 230px;
    font-size: 7px;
    letter-spacing: .65px;
  }
}


/* Logo identitas madrasah dan WBK mengikuti komposisi halaman pembuka. */
.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.header-madrasah-logo {
  display: block;
  width: auto;
  height: 58px;
  max-width: 92px;
  object-fit: contain;
}

.identity-wbk {
  position: absolute;
  z-index: 2;
  top: 25px;
  right: 30px;
  display: block;
  width: clamp(112px, 11vw, 158px);
  height: auto;
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .35));
  pointer-events: none;
}

@media (max-width: 760px) {
  .topbar-right {
    gap: 8px;
  }

  .header-madrasah-logo {
    height: 43px;
    max-width: 62px;
  }

  .identity-wbk {
    top: 13px;
    right: 13px;
    width: 86px;
    max-height: 105px;
  }

  .identity-heading {
    padding-right: 80px;
  }
}


/* Penyempurnaan tipografi: hilangkan garis bawah bawaan tautan,
   agar header dan navigasi tampil bersih seperti halaman utama. */
.topbar .brand-link,
.topbar .brand-link:hover,
.topbar .brand-link:focus,
.topbar .brand-link:visited,
.topbar .brand-link *,
.topbar .brand-link *:hover,
.identity-heading .back-link,
.identity-heading .back-link:hover,
.identity-heading .back-link:focus,
.identity-heading .back-link:visited,
.top-tag,
.top-tag *,
.identity-hero a,
.identity-hero a:hover,
.identity-hero a:focus,
.identity-hero a:visited {
  text-decoration: none !important;
}

.topbar .brand-link {
  color: inherit;
  border: 0;
  outline-offset: 5px;
}

.topbar .brand-link .brand-copy strong {
  color: #082b52;
  text-decoration: none !important;
  border-bottom: 0;
}

.topbar .brand-link .brand-copy small,
.topbar .brand-link .brand-copy .eyebrow {
  text-decoration: none !important;
  border-bottom: 0;
}

.identity-heading .back-link {
  color: #f3d89e;
  font-weight: 700;
  transition: color .2s ease, opacity .2s ease;
}

.identity-heading .back-link:hover {
  color: #fff;
  opacity: .92;
}

.identity-heading .back-link:focus-visible,
.topbar .brand-link:focus-visible {
  outline: 2px solid #f1ca78;
  border-radius: 5px;
}
