/* ==========================================================================
   Contact page (/contact)

   Loaded after industries.css (contact/partials/styles.blade.php), which
   supplies the shared visual language: the navy hero, .ind-card, .ind-btn,
   section heads, step badges and the Japanese line-breaking rules. This
   file only adds what the contact page has and the industry pages do not:
   the reassurance list, the form, the read-more links, the 4-step flow
   grid, contact cards and the map. Plain CSS with a filemtime() query
   string - nothing may need building on the live box.

   Everything is scoped under .ct-page.
   ========================================================================== */

.ct-page { --ct-danger: #c62828; --ct-focus: rgba(17, 165, 222, .35); }

/* Japanese line breaking for the elements industries.css does not cover. */
.ct-page h4, .ct-page label { text-wrap: balance; }
.ct-page:lang(ja) h4, .ct-page:lang(ja) label, .ct-page:lang(ja) a { word-break: auto-phrase; }

/* A visible focus ring everywhere on the page, not only in the form. */
.ct-page a:focus-visible,
.ct-page button:focus-visible {
  outline: 3px solid var(--ind-blue);
  outline-offset: 3px;
}
.ct-page .ind-hero a:focus-visible { outline-color: var(--ind-cyan); }

.ct-hero h1 { max-width: 20em; }
.ct-hero .ind-hero-lead { margin-bottom: 30px; }

/* --- Reassurance + form ------------------------------------------------- */
/* Reassurance first in the source, so on phones it sits above the form. */
.ct-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: start;
}

.ct-trust { padding-top: 8px; }
.ct-trust-title {
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem);
  font-weight: 800;
  color: var(--ind-navy);
  margin: 0 0 22px;
}
.ct-trust-list { display: grid; gap: 14px; }
.ct-trust-item {
  background: var(--ind-bg);
  border: 1px solid var(--ind-line);
  border-radius: 14px;
  padding: 18px 20px;
}
.ct-trust-item h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ind-navy);
  margin: 0 0 8px;
}
.ct-trust-item p { color: var(--ind-muted); font-size: .92rem; }
.ct-trust-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--ind-blue), var(--ind-navy));
}

.ct-form-card {
  background: #fff;
  border: 1px solid var(--ind-line);
  border-top: 5px solid var(--ind-blue);
  border-radius: 18px;
  padding: 36px 36px 38px;
  box-shadow: 0 18px 44px rgba(26, 42, 108, .08);
}
.ct-form-title {
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem);
  font-weight: 800;
  color: var(--ind-navy);
  margin: 0 0 6px;
}
.ct-form-intro { color: var(--ind-muted); }
.ct-form-note {
  margin: 12px 0 24px !important;
  font-size: .85rem;
  color: var(--ind-muted);
}

.ct-form { display: grid; gap: 22px; margin: 0; }
.ct-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ct-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ct-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: .95rem;
  font-weight: 800;
  color: var(--ind-ink);
}
.ct-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: .02em;
  white-space: nowrap;
}
.ct-badge-req { color: #fff; background: var(--ct-danger); }
.ct-badge-opt { color: var(--ind-muted); background: #eef2f6; }
.ct-hint { font-size: .85rem; color: var(--ind-muted); margin-top: -2px !important; }

/* 16px text and 52px height: large tap targets, and iOS does not zoom
   into the field on focus. */
.ct-page .ct-input {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px 16px;
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ind-ink);
  background: #fff;
  border: 1.5px solid #c9d3de;
  border-radius: 12px;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.ct-page .ct-textarea { min-height: 170px; resize: vertical; }
.ct-page .ct-input::placeholder { color: #8a94a3; opacity: 1; }
.ct-page .ct-input:hover { border-color: #9fb0c2; }
.ct-page .ct-input:focus { outline: none; }
.ct-page .ct-input:focus-visible,
.ct-page .ct-input:focus {
  border-color: var(--ind-blue);
  box-shadow: 0 0 0 4px var(--ct-focus);
}
/* Only after the visitor has touched the field (or tried to submit), so an
   untouched form is not painted red. */
.ct-page .ct-input:user-invalid { border-color: var(--ct-danger); }
.ct-page .ct-input:user-invalid:focus { box-shadow: 0 0 0 4px rgba(198, 40, 40, .2); }

.ct-submit { width: 100%; min-height: 56px; font-size: 1.05rem; border: 0; cursor: pointer; }
.ct-submit .fa { font-size: .95em; }

/* Messages the submit handler inserts before the form. Shown after it
   instead, right under the submit button the visitor just pressed: on a
   phone the top of the form is a screen or two above. */
.ct-form-status { display: flex; flex-direction: column; }
.ct-form-status .alert {
  order: 1;
  margin: 20px 0 0;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.ct-form-status .alert-success { color: #0f5132; background: #e6f6ee; border-color: #b7e4cb; }
.ct-form-status .alert-danger { color: #842029; background: #fdecec; border-color: #f5c2c7; }

/* --- Read-more links: four across, two on tablets, one on phones ------- */
.ct-read-more {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--ind-line);
}
.ct-read-more-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ind-navy);
  text-align: center;
  margin: 0 0 18px;
}
.ct-read-more-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ct-read-more-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 60px;
  padding: 12px 16px;
  border: 1px solid var(--ind-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ind-navy);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.45;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ct-read-more-list a:hover {
  color: var(--ind-navy);
  border-color: var(--ind-blue);
  box-shadow: 0 10px 24px rgba(26, 42, 108, .08);
  transform: translateY(-1px);
}
.ct-read-more-list a span { flex: 1; min-width: 0; }
.ct-read-more-list .fa:first-child { color: var(--ind-blue); font-size: 1.1rem; width: 1.2em; text-align: center; }
.ct-read-more-list .fa:last-child { color: var(--ind-muted); }

/* --- Flow: exactly four steps, 4 / 2 / 1 across ------------------------ */
.ct-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ct-grid-4 .ind-card { padding: 26px 24px 28px; }

/* --- Contact cards, offices and map ------------------------------------ */
.ct-info-card h3,
.ct-office h4 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ct-info-card .ind-icon { margin: 0; width: 46px; height: 46px; font-size: 20px; }
.ct-info-value {
  display: block;
  margin-top: 4px !important;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ind-ink) !important;
  overflow-wrap: anywhere;
  text-decoration: none;
}
a.ct-info-value:hover { color: var(--ind-blue) !important; text-decoration: underline; }

.ct-offices-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ind-navy);
  text-align: center;
  margin: 48px 0 20px;
}
.ct-office h4 { font-size: 1.05rem; font-weight: 800; color: var(--ind-navy); margin: 0 0 10px; }
.ct-office h4 .fa { color: var(--ind-blue); font-size: 1.15rem; }
.ct-office p { color: var(--ind-ink) !important; }
.ct-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 6px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--ind-blue);
  text-decoration: none;
}
.ct-map-link:hover { color: var(--ind-navy); text-decoration: underline; }

.ct-map {
  margin-top: 24px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ind-line);
  background: var(--ind-bg);
  line-height: 0;
}
.ct-map iframe { display: block; width: 100%; height: 400px; border: 0; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .ct-grid-4 { gap: 18px; }
  .ct-grid-4 .ind-card { padding: 22px 18px 24px; }
}
@media (max-width: 991.98px) {
  .ct-main-grid { grid-template-columns: 1fr; gap: 32px; }
  .ct-trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-read-more-list,
  .ct-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Three across left the email address and phone number broken mid-way
     on tablets; one per row, label and value side by side, instead. */
  .ct-info .ind-grid-trio { grid-template-columns: 1fr; gap: 14px; }
  .ct-info-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 18px 24px; }
  .ct-info-card h3 { margin: 0; }
  .ct-info-card .ct-info-value { margin-top: 0 !important; }
}
@media (max-width: 767.98px) {
  .ct-form-card { padding: 26px 20px 28px; border-radius: 16px; }
  .ct-field-row,
  .ct-trust-list,
  .ct-read-more-list,
  .ct-grid-4 { grid-template-columns: 1fr; }
  .ct-field-row { gap: 22px; }
  /* Phones: value under its label in every card, so they all line up. */
  .ct-info-card { display: block; padding: 20px; }
  .ct-info-card .ct-info-value { margin-top: 10px !important; }
  .ct-read-more { margin-top: 40px; }
  .ct-map iframe { height: 300px; }
}

@media print {
  .ct-form-card, .ct-read-more, .ct-map { display: none !important; }
  .ct-main-grid { grid-template-columns: 1fr; }
}
