/* BitFire contact page */

.contact-hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 96px;
  background:
    radial-gradient(circle at 84% 18%, rgba(33, 139, 201, 0.17), transparent 28%),
    linear-gradient(180deg, #071322 0%, #0a1a2b 100%);
}

.contact-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.15;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.contact-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.65fr);
  gap: 90px;
  align-items: end;
}

.contact-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 58px;
  color: #8199aa;
  font-weight: 650;
}

.contact-breadcrumbs a:hover { color: var(--white); }
.contact-breadcrumbs span[aria-current] { color: #bad0df; }

.contact-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
  color: #a9c1d0;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-kicker::before {
  width: 25px;
  height: 2px;
  content: "";
  background: var(--mint);
  box-shadow: 0 0 12px rgba(91, 173, 218, 0.65);
}

.contact-hero h1 {
  max-width: 840px;
  margin-bottom: 27px;
  font-weight: 800;
  letter-spacing: -0.068em;
  line-height: 1.0;
}

.contact-lede {
  max-width: 730px;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.62;
}

.contact-promise {
  padding: 29px;
  border: 1px solid rgba(91, 173, 218, 0.2);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.contact-promise > .icon { width: 25px; margin-bottom: 25px; color: var(--mint); }
.contact-promise > span { display: block; margin-bottom: 10px; color: var(--mint); font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-promise h2 { margin-bottom: 12px; line-height: 1.2; }
.contact-promise p { margin: 0; color: #9eb2c0; }

.contact-section {
  padding: 112px 0 124px;
  color: var(--text-dark);
  background: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  gap: 78px;
  align-items: start;
}

.contact-information h2 {
  max-width: 560px;
  margin-bottom: 20px;
  font-weight: 790;
  letter-spacing: -0.055em;
  line-height: 1;
}

.contact-intro { max-width: 600px; margin-bottom: 36px; color: var(--text-dark-soft); }

.contact-methods {
  overflow: hidden;
  border: 1px solid #d8e3e9;
  border-radius: 18px;
  background: #fff;
}

.contact-method {
  display: grid;
  grid-template-columns: 43px 1fr;
  gap: 15px;
  align-items: start;
  padding: 23px;
  border-bottom: 1px solid #e1e8ed;
}

.contact-method:last-child { border-bottom: 0; }
.contact-method-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #1678aa; background: #eaf5fa; }
.contact-method-icon .icon { width: 20px; }
.contact-method small { display: block; margin-bottom: 7px; color: #6a7d89; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-method strong { display: block; color: #173247; }
.contact-method p { margin: 4px 0 0; color: #667985; }
.contact-address { width: auto; height: 26px; margin: 0 0 5px; }
.copy-contact { display: block; padding: 0; border: 0; color: #1477aa; background: transparent; font-weight: 750; text-align: left; }
.copy-contact:hover { color: #0a5379; text-decoration: underline; }
.copy-status { min-height: 1.5em; margin: 12px 0 0; color: #08704a; }

.contact-guidance {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid #cee0e9;
  border-radius: 16px;
  background: #edf6fa;
}

.contact-guidance h3 { margin-bottom: 12px; color: #1c4258; }
.contact-guidance ul { display: grid; gap: 8px; margin: 0; padding: 0; color: #587080; list-style: none; }
.contact-guidance li { position: relative; padding-left: 22px; }
.contact-guidance li::before { position: absolute; left: 0; content: "✓"; color: #1689bd; font-weight: 900; }

.research-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 21px 23px;
  border: 1px solid #d8e3e9;
  border-radius: 15px;
  color: #19364a;
  background: #fff;
}

.research-link small,
.research-link strong { display: block; }
.research-link small { margin-bottom: 3px; color: #218bc9; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.research-link .icon { width: 19px; flex: 0 0 auto; color: #218bc9; transition: transform 160ms ease; }
.research-link:hover .icon { transform: translateX(4px); }

.contact-form-wrap { position: relative; }
.contact-form {
  padding: 37px;
  border: 1px solid #d4e0e7;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 75px rgba(7, 19, 34, 0.12);
}

.form-heading { margin-bottom: 27px; padding-bottom: 24px; border-bottom: 1px solid #e1e8ed; }
.form-heading > span { display: block; margin-bottom: 6px; color: #218bc9; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.form-heading h2 { margin-bottom: 6px; color: #142f42; letter-spacing: -0.035em; }
.form-heading p { margin: 0; color: #697d8a; }

.contact-form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.contact-field { margin-bottom: 17px; }
.contact-field label,
.contact-preference legend { display: block; margin-bottom: 7px; color: #304b5e; font-weight: 750; }
.contact-field label span { color: #b43f3a; }

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid #cbd8df;
  border-radius: 11px;
  outline: 0;
  color: #142f42;
  background: #f9fbfc;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.contact-field input,
.contact-field select { height: 50px; padding: 0 13px; }
.contact-field select { appearance: auto; }
.contact-field textarea { min-height: 160px; padding: 13px; resize: vertical; line-height: 1.55; }
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus { border-color: #4fa9d4; background: #fff; box-shadow: 0 0 0 3px rgba(33, 139, 201, 0.1); }
.field-help { display: block; margin-top: 6px; color: #778994; }

.contact-preference { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 20px; margin: 0 0 17px; padding: 0; border: 0; }
.contact-preference legend { width: 100%; }
.contact-preference label { display: inline-flex; align-items: center; gap: 7px; color: #536a79; }
.contact-preference input,
.contact-consent input { accent-color: #218bc9; }

.contact-consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin: 4px 0 20px; color: #536a79; }
.contact-consent input { width: 17px; height: 17px; margin-top: 2px; }
.contact-consent a { color: #1477aa; font-weight: 750; }
.contact-form > .button { width: 100%; }
.form-privacy { margin: 12px 0 0; color: #758792; text-align: center; }
.contact-trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.form-status { display: grid; grid-template-columns: 28px 1fr; gap: 13px; margin-bottom: 15px; padding: 18px 20px; border-radius: 14px; }
.form-status[hidden] { display: none; }
.form-status .icon { width: 22px; }
.form-status strong { display: block; }
.form-status p { margin: 3px 0 0; }
.success-status { color: #17583e; border: 1px solid #b9ddc9; background: #eaf8f0; }
.error-status { color: #743834; border: 1px solid #e5c3bf; background: #fdf0ef; }

.contact-options { padding: 102px 0; color: var(--text-dark); background: #fff; }
.contact-options-heading { max-width: 750px; margin-bottom: 45px; }
.contact-options-heading h2 { margin: 0; font-weight: 790; letter-spacing: -0.055em; line-height: 1; }
.contact-option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.contact-option-grid > a { position: relative; min-height: 260px; padding: 27px; border: 1px solid #d9e3e9; border-radius: 18px; background: #f9fbfc; transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease; }
.contact-option-grid > a:hover { border-color: #9dccdf; box-shadow: 0 22px 50px rgba(7, 19, 34, 0.08); transform: translateY(-3px); }
.contact-option-grid span { display: block; margin-bottom: 40px; color: #218bc9; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-option-grid strong { display: block; margin-bottom: 10px; color: #173247; }
.contact-option-grid p { margin: 0; color: #617583; }
.contact-option-grid .icon { position: absolute; right: 25px; bottom: 24px; width: 19px; color: #218bc9; }

@media (max-width: 1050px) {
  .contact-hero-grid { gap: 48px; }
  .contact-layout { grid-template-columns: 0.85fr 1.15fr; gap: 45px; }
}

@media (max-width: 820px) {
  .contact-hero { padding: 112px 0 82px; }
  .contact-breadcrumbs { margin-bottom: 42px; }
  .contact-hero-grid,
  .contact-layout { grid-template-columns: 1fr; }
  .contact-promise { max-width: 620px; }
  .contact-section { padding: 86px 0 96px; }
  .contact-layout { gap: 52px; }
  .contact-option-grid { grid-template-columns: 1fr; }
  .contact-option-grid > a { min-height: 215px; }
}

@media (max-width: 560px) {
  .contact-hero { padding: 98px 0 70px; }
  .contact-breadcrumbs { margin-bottom: 34px; }
  .contact-promise { padding: 24px; }
  .contact-section { padding: 70px 0 78px; }
  .contact-form { padding: 25px 20px; }
  .contact-form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-method { grid-template-columns: 38px 1fr; padding: 20px 17px; }
  .contact-method-icon { width: 37px; height: 37px; }
  .contact-address { max-width: 100%; }
  .contact-options { padding: 76px 0; }
  .contact-option-grid > a { min-height: 225px; padding: 24px; }
}
