*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #edf7ff;
  color: #07164b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 8px;
  background: #07164b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 18px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #07164b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #0068ff 0 44%, transparent 44%),
    linear-gradient(#0068ff 0 44%, transparent 44%),
    #8cc8ff;
}

.contact-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.contact-header nav a {
  border: 1px solid rgba(0, 104, 255, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #005cff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 9px 10px;
  text-decoration: none;
}

.contact-shell {
  display: grid;
  gap: 16px;
  width: min(100% - 32px, 720px);
  margin: 0 auto 32px;
}

.contact-hero,
.form-band {
  border: 1px solid rgba(0, 104, 255, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(7, 22, 75, 0.08);
}

.contact-hero {
  display: grid;
  gap: 12px;
  padding: 24px 20px;
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  margin: 0;
  border-radius: 999px;
  background: #e8f2ff;
  color: #0068ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 9px 12px;
}

.contact-hero h1 {
  margin: 0;
  font-size: clamp(26px, 8vw, 44px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.contact-hero p:not(.eyebrow) {
  margin: 0;
  color: #22305e;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin: 0;
}

.form-band {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.form-band h2 {
  margin: 0;
  color: #07164b;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: #07164b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

label small,
label em {
  display: inline-block;
  margin-left: 4px;
  border-radius: 999px;
  background: #0068ff;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
  padding: 4px 6px;
  vertical-align: middle;
}

label em {
  background: #e8f2ff;
  color: #005cff;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd9ef;
  border-radius: 8px;
  background: #fff;
  color: #07164b;
  font: 600 16px / 1.45 system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0;
  outline: 0;
  padding: 13px 14px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #a9b3c8;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #0068ff;
  box-shadow: 0 0 0 3px rgba(0, 104, 255, 0.12);
}

.action-stack {
  display: grid;
  gap: 10px;
}

.submit-button,
.back-button {
  display: grid;
  min-height: 54px;
  place-items: center;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.submit-button {
  border: 0;
  background: linear-gradient(135deg, #00a3ff, #005cff 74%, #004ce0);
  box-shadow: 0 12px 24px rgba(0, 92, 255, 0.22);
  color: #fff;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.back-button {
  border: 2px solid #0068ff;
  background: #fff;
  color: #005cff;
}

.submit-note {
  margin: 0;
  color: #334069;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid rgba(0, 104, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 36px rgba(7, 22, 75, 0.18);
  color: #07164b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  padding: 12px 14px;
}

@media (max-width: 520px) {
  .contact-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-header nav {
    justify-content: flex-start;
  }
}
