:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07143d;
  color: #0c1838;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #07143d;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  width: min(980px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(26px, env(safe-area-inset-top)) 22px max(34px, env(safe-area-inset-bottom));
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
  font-size: 31px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-pro {
  margin-left: 7px;
  padding: 4px 8px 5px;
  border-radius: 7px;
  background: #1b4ef5;
  line-height: 1;
}

.profile-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.profile-hero {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 34px 38px 30px;
  border-bottom: 1px solid #dbe4f2;
  background: #f5f8ff;
}

.profile-image-frame {
  position: relative;
  width: 88px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #b9cafa;
  border-radius: 8px;
  background: #e7eeff;
}

.profile-initials {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #1543cf;
  font-size: 30px;
  font-weight: 850;
}

.profile-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-identity {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 7px;
  color: #1b4ef5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-hero h1,
.state-panel h1 {
  margin: 0;
  color: #0a1739;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.16;
  letter-spacing: 0;
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #dbe4f2;
  background: #fff;
}

.profile-tabs.single-tab {
  display: none;
}

.profile-tab-button {
  display: inline-flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #657493;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.profile-tab-button:hover {
  background: #f1f5fc;
  color: #153fae;
}

.profile-tab-button.is-active {
  background: #eaf0ff;
  color: #1746d9;
  box-shadow: inset 0 -3px 0 #1b4ef5;
}

.profile-tab-button i {
  font-size: 18px;
}

.profile-tab-content {
  background: #f7f9fd;
}

.profile-tab-panel {
  padding: 30px 38px 36px;
}

.panel-heading {
  margin-bottom: 20px;
}

.panel-heading .eyebrow {
  margin-bottom: 5px;
}

.panel-heading h2,
.booking-header h2,
.compact-state h2 {
  margin: 0 0 12px;
  color: #0a1739;
  font-size: 21px;
  line-height: 1.3;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 12px;
}

.contact-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  background: #fff;
}

.contact-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
  background: #e8efff;
  color: #1746d9;
  font-size: 17px;
}

.contact-copy {
  min-width: 0;
}

.contact-label {
  display: block;
  margin-bottom: 2px;
  color: #71809c;
  font-size: 12px;
  font-weight: 750;
}

.contact-value {
  display: block;
  overflow-wrap: anywhere;
  color: #223354;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  white-space: pre-line;
}

.contact-value:hover {
  color: #1b4ef5;
}

.map-link {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  color: #1b4ef5;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  gap: 6px;
}

.social-section {
  margin-top: 12px;
}

.social-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 12px;
}

.social-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  min-height: 74px;
  align-items: center;
  gap: 12px;
  border: 1px solid #d8e1ef;
  border-radius: 7px;
  padding: 14px 16px;
  background: #fff;
  color: #1b3d91;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.social-link:hover {
  border-color: #96adf7;
  box-shadow: 0 8px 20px rgba(22, 54, 130, 0.08);
  transform: translateY(-1px);
}

.social-link-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
  background: #e8efff;
  color: #1746d9;
}

.social-link-icon i {
  text-align: center;
  font-size: 17px;
}

.social-link-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.social-link-copy strong {
  color: #1b3d91;
  font-size: 14px;
  font-weight: 800;
}

.social-link-address {
  color: #647390;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.social-link-arrow {
  width: auto;
  color: #7b89a4;
  font-size: 13px;
}

#about-panel {
  display: block;
}

.rich-profile-content {
  padding: 22px 24px;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  background: #fff;
  color: #51617f;
  line-height: 1.72;
}

.rich-profile-content > :first-child {
  margin-top: 0;
}

.rich-profile-content > :last-child {
  margin-bottom: 0;
}

.rich-profile-content h2,
.rich-profile-content h3 {
  margin: 22px 0 10px;
  color: #0a1739;
  letter-spacing: 0;
  line-height: 1.35;
}

.rich-profile-content h2 {
  font-size: 22px;
}

.rich-profile-content h3 {
  font-size: 18px;
}

.rich-profile-content p {
  margin: 0 0 12px;
}

.rich-profile-content ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.rich-profile-content li + li {
  margin-top: 5px;
}

.booking-section {
  padding: 0;
  background: #f7f9fd;
}

.booking-header {
  padding: 30px 38px 22px;
}

.booking-header p:last-child {
  max-width: 680px;
  margin: 0;
  color: #60708e;
  line-height: 1.55;
}

form {
  padding: 4px 38px 34px;
}

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

.field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.field > span,
.field > label {
  color: #334466;
  font-size: 14px;
  font-weight: 750;
}

.field small {
  color: #7b89a4;
  font-weight: 500;
}

.field-wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #c8d3e5;
  border-radius: 7px;
  outline: 0;
  background: #fff;
  color: #0c1838;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input,
select {
  min-height: 48px;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #1b4ef5;
  box-shadow: 0 0 0 3px rgba(27, 78, 245, 0.12);
}

.consent-row {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 20px 0;
  color: #4c5d7c;
  font-size: 14px;
  line-height: 1.5;
}

.security-field {
  margin-top: 2px;
}

.security-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.security-code {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9cafa;
  border-radius: 7px;
  background: #eef3ff;
  color: #123aa8;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 5px;
  line-height: 1;
  text-align: center;
}

#challenge-answer {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 800;
}

.inline-button {
  min-width: 112px;
  margin-top: 0;
}

.profile-report-footer {
  padding: 14px 18px 0;
  color: #8d9ab9;
  text-align: center;
}

.profile-report-footer p {
  max-width: 900px;
  margin: 0;
  font-size: 9px;
  line-height: 1.45;
}

.profile-report-footer a {
  display: inline;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.profile-report-footer a:hover {
  color: #cbd5ec;
  text-decoration: underline;
}

.profile-report-footer strong {
  color: #aab6d2;
}

.consent-row input {
  width: 20px;
  min-height: 20px;
  margin: 1px 0 0;
  accent-color: #1b4ef5;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  padding: 11px 20px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  width: 100%;
  background: #1b4ef5;
  color: #fff;
}

.primary-button:hover {
  background: #143fd0;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.secondary-button {
  margin-top: 10px;
  border: 1px solid #c8d3e5;
  background: #fff;
  color: #1b4ef5;
  text-decoration: none;
}

.form-error {
  margin: 0 0 14px;
  padding: 11px 12px;
  border: 1px solid #f1b6bd;
  border-radius: 7px;
  background: #fff2f3;
  color: #a72d3b;
  line-height: 1.45;
}

.state-panel {
  display: grid;
  min-height: 420px;
  place-items: center;
  align-content: center;
  padding: 42px 28px;
  text-align: center;
}

.compact-state {
  min-height: 290px;
  border-top: 1px solid #e4eaf4;
}

.state-panel p {
  max-width: 520px;
  margin: 12px 0 0;
  color: #60708e;
  line-height: 1.55;
}

.spinner,
.button-spinner {
  display: inline-block;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.spinner {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 4px solid #dbe4f6;
  border-top-color: #1b4ef5;
}

.button-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
}

.button-progress {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.state-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 900;
}

.success-icon {
  background: #e8f8ef;
  color: #16844d;
}

.error-icon {
  background: #fff0f1;
  color: #b62f3e;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.is-hidden {
  display: none !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .contact-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: max(18px, env(safe-area-inset-top)) 12px max(20px, env(safe-area-inset-bottom));
  }

  .brand-bar {
    margin-bottom: 15px;
    font-size: 27px;
  }

  .profile-hero {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 24px 20px;
  }

  .profile-image-frame {
    width: 64px;
  }

  .profile-initials {
    font-size: 23px;
  }

  .profile-hero h1 {
    font-size: 27px;
  }

  .profile-tab-panel,
  .booking-header {
    padding: 24px 20px;
  }

  .booking-section {
    padding: 0;
  }

  .profile-tabs {
    gap: 4px;
    padding: 8px;
  }

  .profile-tab-button {
    min-height: 50px;
    gap: 6px;
    font-size: 13px;
  }

  .profile-tab-button i {
    font-size: 16px;
  }

  form {
    padding: 0 20px 24px;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .field-wide {
    grid-column: auto;
  }

  .security-code-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .inline-button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .profile-hero {
    grid-template-columns: 54px minmax(0, 1fr);
    padding-inline: 16px;
  }

  .profile-image-frame {
    width: 54px;
  }

  .profile-initials {
    font-size: 20px;
  }

  .profile-tab-panel,
  .booking-header {
    padding-inline: 16px;
  }

  .booking-section {
    padding-inline: 0;
  }

  .profile-tab-button {
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
  }

  form {
    padding-inline: 16px;
  }
}
