/* =====================================================================
   Amnet Contact Page Stylesheet
   Inherits design system from global.css (Newsreader, Libre Franklin, IBM Plex Mono)
   ===================================================================== */

/* Page Header / Hero adjustments */
.contact-hero {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  padding-bottom: 72px;
}
.contact-hero .hero-grid {
  padding-bottom: 0;
}
.contact-quick-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.quick-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.quick-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--faint);
  text-transform: uppercase;
}
.quick-val {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}
.quick-val a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
.quick-val a:hover {
  color: var(--accent);
}

/* =====================================================================
   Core Form Suite & Interactive Tabs
   ===================================================================== */
.contact-suite {
  max-width: 1080px;
  margin: 0 auto;
}

/* Tab Navigation Bar */
.form-tab-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: #fff;
  border-bottom: none;
}
.form-tab-btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 22px 20px;
  text-align: left;
  cursor: pointer;
  border-right: 1px solid var(--line);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  position: relative;
}
.form-tab-btn:last-child {
  border-right: none;
}
.form-tab-btn:hover {
  background: var(--mist);
}
.form-tab-btn .tab-num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 6px;
}
.form-tab-btn .tab-title {
  display: block;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--body);
  line-height: 1.25;
}
.form-tab-btn[aria-selected="true"] {
  background: #fff;
}
.form-tab-btn[aria-selected="true"] .tab-title {
  color: var(--ink);
}
.form-tab-btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

/* Tab Form Panel / Card */
.form-panel-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 56px 64px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
}
.form-panel-card[hidden] {
  display: none !important;
}

.form-panel-head {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.form-panel-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  color: var(--ink);
}
.form-panel-head p {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 68ch;
}

/* Fields & Layout */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}
.form-grid .full-span {
  grid-column: 1 / -1;
}

.input-group {
  display: flex;
  flex-direction: column;
}
.input-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.input-label .req {
  color: var(--accent);
  font-size: 12px;
}

.form-control {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 13px 16px;
  border-radius: 0;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.form-control:hover {
  border-color: var(--line2);
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 97, 168, 0.12);
  background-color: #fff;
}
.form-control::placeholder {
  color: var(--faint);
}

/* Custom Select Dropdown Arrow */
.select-wrapper {
  position: relative;
}
.select-wrapper select {
  padding-right: 40px;
  cursor: pointer;
}
.select-wrapper::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-60%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  pointer-events: none;
  transition: transform .15s ease;
}
.select-wrapper:focus-within::after {
  transform: translateY(-30%) rotate(-135deg);
  border-color: var(--blue);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

/* Form Action Footer */
.form-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.form-disclaimer {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 48ch;
}
.form-disclaimer a {
  color: var(--blue);
  text-decoration: underline;
}

/* Submission Status Notification */
.form-feedback {
  margin-top: 24px;
  padding: 18px 24px;
  border-radius: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  animation: fadeInStatus .25s ease forwards;
}
@keyframes fadeInStatus {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-feedback.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.form-feedback.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.form-feedback .icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.form-feedback .title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.form-feedback .desc {
  font-size: 13.5px;
  line-height: 1.4;
  margin: 0;
}

/* =====================================================================
   Global Reach & Interactive Locations ("Our Reach")
   ===================================================================== */
.reach-sec {
  background: var(--grey);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.reach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.reach-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.reach-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  border-color: var(--line2);
}
.reach-card.featured {
  border-top: 3px solid var(--accent);
}
.reach-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.reach-card.featured .reach-tag {
  color: var(--blue);
  font-weight: 500;
}
.reach-city {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 18px;
}
.reach-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  color: var(--body);
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.reach-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.45;
}
.reach-icon {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  min-width: 18px;
  padding-top: 1px;
  flex-shrink: 0;
}
.reach-row a {
  color: var(--ink);
  transition: color .15s ease;
}
.reach-row a:hover {
  color: var(--accent);
}
.reach-row address {
  font-style: normal;
  color: var(--body);
}

/* =====================================================================
   Specialized Inquiries / Dedicated Departments
   ===================================================================== */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.dept-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.dept-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.dept-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--ink);
}
.dept-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 24px;
  flex-grow: 1;
}
.dept-note {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  font-style: italic;
  margin-top: -12px;
  margin-bottom: 20px;
}
.dept-contact {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.dept-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--blue);
  font-weight: 500;
  transition: color .15s ease;
}
.dept-contact a:hover {
  color: var(--accent);
}

/* Accessibility Statement Banner */
.a11y-banner {
  background: var(--ink);
  color: #fff;
  padding: 56px 0;
  border-top: 1px solid var(--rule-dark);
}
.a11y-grid {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 48px;
  align-items: center;
}
.a11y-lead {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--green);
  text-transform: uppercase;
}
.a11y-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  color: #fff;
  margin: 0;
}
.a11y-text {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--soft);
  margin: 0;
}
.a11y-link {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  color: #fff;
  border: 1px solid var(--soft);
  padding: 12px 24px;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.a11y-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* =====================================================================
   Newsletter Strip
   ===================================================================== */
.news-strip {
  background: var(--mist);
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.news-head .eyebrow {
  margin-bottom: 12px;
}
.news-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 10px;
}
.news-head p {
  font-size: 16px;
  color: var(--body);
  margin: 0;
}
.news-form {
  display: flex;
  gap: 12px;
}
.news-form input[type="email"] {
  flex: 1;
}

/* =====================================================================
   Responsive Media Queries
   ===================================================================== */
@media (max-width: 1024px) {
  .reach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dept-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .form-panel-card {
    padding: 40px 32px;
  }
  .a11y-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .form-tab-nav {
    grid-template-columns: 1fr;
    border-bottom: 1px solid var(--line);
  }
  .form-tab-btn {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
  }
  .form-tab-btn:last-child {
    border-bottom: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .reach-grid {
    grid-template-columns: 1fr;
  }
  .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .news-form {
    flex-direction: column;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-quick-bar {
    flex-direction: column;
    gap: 16px;
  }
}
