:root {
  --navy: #102f59;
  --orange: #ff6900;
  --orange-soft: #fff2e9;
  --ink: #27364a;
  --muted: #718096;
  --line: #d7dee7;
  --page: #f1f4f7;
  --danger: #b42318;
  --success: #067647;
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  color: var(--navy);
  background: var(--page);
}

* { box-sizing: border-box; }

body { margin: 0; }
.technical-footer { margin: 0; padding: 0 12px 16px; text-align: center; color: #687486; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }

button, input, select { font: inherit; }

.public-page {
  min-height: 100vh;
  padding: 16px;
  background: var(--page);
}

.phone-card {
  width: min(100%, 545px);
  margin: 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.event-header {
  display: grid;
  place-items: center;
  position: relative;
  background: var(--orange);
}

.event-header img {
  display: block;
  width: min(72%, 330px);
  aspect-ratio: 2.28 / 1;
  object-fit: cover;
}

.opening-header { padding: 18px 24px 24px; }

.opening-content { padding: 25px 22px 12px; text-align: center; }

.opening-content h1 { margin: 0; font-size: 20px; font-weight: 500; }

.event-time { margin: 7px 0 22px; color: var(--orange); }

.event-location {
  display: grid;
  gap: 6px;
  margin: 0 0 21px;
  padding: 17px 12px;
  border-radius: 16px;
  color: var(--ink);
  background: var(--orange-soft);
  font-size: 14px;
  font-style: normal;
}

.event-location strong { color: var(--navy); font-weight: 500; }

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 55px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--orange);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 19px rgba(255, 105, 0, .25);
}

.primary-button:hover { background: #eb6100; }
.primary-button:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(16, 47, 89, .3); outline-offset: 2px; }
.primary-button:disabled { opacity: .65; cursor: wait; }

.existing-credential {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  color: var(--navy);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.existing-credential:disabled { cursor: not-allowed; opacity: 1; }

.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 70px;
  padding: 12px 20px 22px;
  color: var(--muted);
  font-size: 13px;
}

.powered-by img { width: 72px; height: auto; }

.form-header { min-height: 176px; padding: 22px 55px; }

.back-button {
  display: grid;
  place-items: center;
  position: absolute;
  left: 22px;
  top: 58px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .22);
  font-family: Arial, sans-serif;
  font-size: 48px;
  font-weight: 200;
  line-height: 1;
  text-decoration: none;
}

.form-intro { padding: 34px 28px 17px; text-align: center; }
.form-intro h1 { margin: 13px 0 0; font-size: 29px; line-height: 1.12; }
.form-intro > p:last-child { margin: 0; color: var(--muted); font-size: 16px; }
.step-label { margin: 0; color: var(--orange); font-size: 18px; }

.credential-form { padding: 0 28px 18px; }

.form-status {
  margin: 0 0 20px;
  padding: 13px 15px;
  border-radius: 10px;
  background: #ecfdf3;
  color: var(--success);
}

.form-status.error { background: #fff1f0; color: var(--danger); }

.form-section {
  margin: 0;
  padding: 32px 0 28px;
  border: 0;
  border-top: 1px solid var(--line);
}

.form-section legend {
  float: left;
  width: 100%;
  margin: 0 0 4px;
  padding: 0;
  color: var(--navy);
  font-size: 24px;
  font-weight: 700;
}

.form-section legend + * { clear: both; }

.field { margin-top: 17px; }
.field label { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 650; }

input, select {
  width: 100%;
  min-height: 57px;
  padding: 0 16px;
  border: 2px solid #bdc7d3;
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
}

input::placeholder { color: #7c899c; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }

.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field-caption, .profile-note { margin: 8px 0 0; color: var(--muted); }
.profile-note { clear: both; }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 22px; margin-top: 17px; }

.profile-option {
  min-height: 57px;
  padding: 8px;
  border: 2px solid #bdc7d3;
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.profile-option[aria-pressed="true"] { border-color: var(--orange); color: #a3450b; background: var(--orange-soft); }
.loading-profiles { grid-column: 1 / -1; margin: 0; color: var(--muted); }

.field-error { min-height: 0; margin: 5px 0 0; color: var(--danger); font-size: 13px; }
.field-error:empty { display: none; }

.optional-section { padding: 25px 0 18px; }
.address-toggle { display: flex; justify-content: space-between; width: 100%; padding: 0; border: 0; color: var(--navy); background: #fff; font-weight: 700; cursor: pointer; }
.address-fields { padding-top: 2px; }

.privacy-consent { display: grid; grid-template-columns: 25px 1fr; gap: 13px; align-items: start; color: var(--ink); line-height: 1.45; }
.privacy-consent input { width: 25px; min-height: 25px; margin: 0; accent-color: var(--orange); }
.privacy-consent a { color: var(--navy); }
.privacy-note { display: none; margin: 10px 0 0 38px; color: var(--muted); font-size: 13px; }
.privacy-note:target { display: block; }
.submit-button { margin-top: 28px; font-size: 19px; }
.sr-only { position: absolute; width: 1px !important; height: 1px; padding: 0; margin: -1px !important; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 580px) {
  .public-page { padding: 0; background: #fff; }
  .phone-card { border: 0; border-radius: 0; box-shadow: none; }
  .opening-card { min-height: 100vh; }
  .form-header { min-height: 145px; }
  .back-button { top: 46px; width: 48px; height: 48px; }
  .form-intro { padding: 29px 20px 16px; }
  .form-intro h1 { font-size: 25px; }
  .credential-form { padding-right: 20px; padding-left: 20px; }
}

@media (max-width: 370px) {
  .two-columns, .profile-grid { gap: 12px; }
  input, select { padding-right: 10px; padding-left: 10px; }
}
