/* ============================================================
   contact.css -- Contact Us page (aligned two-column layout,
   matching the site's futuristic dark card/gradient-icon system)
   ============================================================ */

.contact-section { padding: 36px 20px 120px; background: #000; }

/* subtle dot-grid atmosphere, consistent with the home page */
.contact-section, .contact-offices-section {
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.5px);
  background-size: 30px 30px;
}

.si-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fb0ff;
  background: rgba(255,255,255,0.06);
  padding: 6px 16px;
  border-radius: 20px;
}

/* ---- Two-column grid: info on the left, form on the right ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}

.contact-info-col h2 {
  color: #fff;
  font-size: 38px;
  margin: 18px 0 20px;
  font-weight: 700;
  line-height: 1.25;
  max-width: 460px;
}
.contact-info-col > p {
  color: #a3adc2;
  font-size: 16.5px;
  line-height: 1.75;
  margin: 0;
  max-width: 460px;
}

.contact-info-list {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  color: #a3adc2;
}
.contact-info-item i {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-blue, #3E63DD), var(--brand-purple, #7B3FE4), var(--brand-magenta, #C13FBD));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.contact-info-item a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.contact-info-item a:hover {
  color: var(--brand-blue, #3E63DD);
}

/* live-status badge -- small system-status accent, AI-dashboard feel */
.contact-response-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
  padding: 20px 24px;
  background: #0e1015;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  max-width: 460px;
}
.contact-response-pulse {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background: #3ddc84;
  animation: contact-pulse-dot 2s ease-in-out infinite;
}
@keyframes contact-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(61,220,132,0); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-response-pulse { animation: none; }
}
.contact-response-badge strong {
  display: block;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 2px;
}
.contact-response-badge span {
  color: #8a93a3;
  font-size: 12.5px;
}

/* ---- Form card ---- */
.contact-form-card {
  background: #0e1015;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 36px 34px;
}
.contact-form-card h2 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 8px;
  font-weight: 700;
}
.contact-form-sub {
  color: #a3adc2;
  font-size: 14px;
  margin: 0 0 26px;
}

.contact-form-alert {
  background: rgba(255,90,90,0.08);
  border: 1px solid rgba(255,90,90,0.3);
  color: #ffb3b3;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.6;
}
.contact-form-alert a {
  color: #fff;
  text-decoration: underline;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 18px; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-field label {
  color: #c3cde8;
  font-size: 13px;
  font-weight: 600;
}
.form-required { color: #ff6a6a; }

.form-field input,
.form-field textarea,
.form-field select {
  background: #000;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14.5px;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--brand-blue, #3E63DD);
  box-shadow: 0 0 0 3px rgba(51,119,255,0.18);
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a3adc2' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
  cursor: pointer;
}
.form-field select option { background: #0e1015; color: #fff; }
.form-field textarea { resize: vertical; min-height: 120px; }

.form-field-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
}
.form-field-full { margin-bottom: 24px; }

.contact-submit-btn {
  border: none;
  cursor: pointer;
  font-size: 15px;
  width: 100%;
}
@media (min-width: 480px) {
  .contact-submit-btn { width: auto; min-width: 160px; }
}

/* ---- Office / contact info cards ---- */
.contact-intro { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.contact-intro h2 { font-size: 28px; color: #fff; margin: 0; font-weight: 700; }

.contact-offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 800px) {
  .contact-offices-grid { grid-template-columns: 1fr; }
}

.contact-office-card {
  background: #0e1015;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 32px 26px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-office-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.contact-office-card .si-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-blue, #3E63DD), var(--brand-purple, #7B3FE4), var(--brand-magenta, #C13FBD));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  transition: box-shadow 0.3s ease;
}
.contact-office-card .si-icon i { color: #fff; font-size: 22px; }
.contact-office-card:hover .si-icon { box-shadow: 0 0 22px rgba(51,119,255,0.5); }
.contact-office-card h3 { color: #fff; font-size: 17px; margin: 0 0 6px; font-weight: 700; }
.contact-office-card p { color: #a3adc2; font-size: 14px; margin: 0; }

/* ============================================================
   Multi-step contact wizard
   ============================================================ */
.contact-wizard-card { padding: 40px 42px 42px; }
.wizard-card-eyebrow {
  display: block;
  color: #8fb0ff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---- progress bar ---- */
.wizard-progress { margin-bottom: 28px; }
.wizard-progress-bar {
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.wizard-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--brand-blue, #3E63DD), var(--brand-purple, #7B3FE4));
  border-radius: 4px;
  transition: width 0.35s ease;
}
.wizard-progress-label { color: #8a93a3; font-size: 12.5px; font-weight: 600; }

/* ---- steps ----
   Hidden-by-default ONLY when .js is confirmed present (see the inline
   script in layout.php that adds this class immediately on load). If
   JavaScript fails, every step stays visible and stacked -- a long
   single-page form instead of a wizard, but still fully fillable and
   submittable, since the real Submit button always lives in the DOM. */
.wizard-form { position: relative; }
.js .wizard-step { display: none; }
.js .wizard-step.is-active { display: block; }
.wizard-step {
  border: none;
  margin: 0 0 36px;
  padding: 0;
  animation: wizardStepIn 0.35s ease;
}
.js .wizard-step { margin-bottom: 0; }
@keyframes wizardStepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.wizard-step-title {
  display: block;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  padding: 0;
}
.wizard-step-sub { color: #9ca9c4; font-size: 13.5px; margin: 0 0 22px; }

/* ---- step 1: category cards ---- */
.wizard-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) { .wizard-card-grid { grid-template-columns: 1fr; } }
.wizard-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
  background: #000 !important;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 16px 16px 15px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.wizard-card:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }
.wizard-card.is-selected {
  border-color: var(--brand-blue, #3E63DD);
  background: rgba(51,119,255,0.08) !important;
}
.wizard-card-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-blue, #3E63DD), var(--brand-purple, #7B3FE4));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.wizard-card-icon i { color: #fff; font-size: 15px; }
.wizard-card-label { color: #fff; font-size: 14.5px; font-weight: 700; }
.wizard-card-desc { color: #8a93a3; font-size: 12px; line-height: 1.4; }

/* ---- step 2: multi-select chips ---- */
.wizard-chip-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.wizard-chip {
  font-family: inherit;
  cursor: pointer;
  background: #000 !important;
  border: 1px solid rgba(255,255,255,0.14);
  color: #c3cde8 !important;
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 20px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.wizard-chip:hover { border-color: rgba(255,255,255,0.35); }
.wizard-chip.is-selected {
  background: linear-gradient(135deg, var(--brand-blue, #3E63DD), var(--brand-purple, #7B3FE4)) !important;
  border-color: transparent;
  color: #fff !important;
}
.wizard-chip.is-selected:after { content: " \2713"; }

/* ---- step navigation ---- */
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.wizard-btn-back {
  font-family: inherit;
  cursor: pointer;
  background: none !important;
  border: none;
  color: #8a93a3 !important;
  font-size: 14px;
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 4px;
}
.wizard-btn-back:hover { color: #fff !important; }
.wizard-btn-next {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--brand-blue, #3E63DD), var(--brand-purple, #7B3FE4)) !important;
  color: #fff !important;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  display: flex; align-items: center; gap: 8px;
  transition: box-shadow 0.2s ease;
}
.wizard-btn-next:hover { box-shadow: 0 8px 20px rgba(51,119,255,0.35); }
.wizard-step[data-step="category"] .wizard-nav { display: none; }

/* ---- live selection summary ---- */
.wizard-summary {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.wizard-summary-label { display: block; color: #8a93a3; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 10px; }
.wizard-summary-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wizard-summary-crumb {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e4e8f0;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 14px;
}
.wizard-summary-sep { color: #4a5468; font-size: 12px; }

@media (max-width: 560px) {
  .contact-wizard-card { padding: 26px 22px 28px; }
}

/* ---- headquarters address card ---- */
.contact-address-card {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 36px; max-width: 460px;
  padding: 22px 24px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(123,63,228,0.10), rgba(62,99,221,0.03));
  border: 1px solid rgba(160,150,255,0.18);
}
.contact-address-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple), var(--brand-magenta));
}
.contact-address-icon i { color: #fff; font-size: 19px; }
.contact-address-label { display: block; color: #8fb0ff; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.contact-address-body address { font-style: normal; color: #e8ebf5; font-size: 16px; line-height: 1.65; }
.contact-address-link { display: inline-block; margin-top: 12px; color: #b9a6ff; font-size: 14px; font-weight: 600; text-decoration: none; }
.contact-address-link:hover { color: #fff; }

/* ---- branching wizard additions ---- */
.form-field.is-conditional-hidden { display: none !important; }      /* beats .form-field { display:flex } (the old hidden-attribute bug) */
.form-field-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.wizard-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.wizard-fields .form-field-full { grid-column: 1 / -1; }
@media (max-width: 640px) { .wizard-fields { grid-template-columns: 1fr; } }
.wizard-field-label { display: block; color: #c9d1e3; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.wizard-chip-grid-sm .wizard-chip { padding: 9px 14px; font-size: 13.5px; }
.wizard-chip-grid.is-invalid { outline: 1px solid rgba(251,113,133,0.7); outline-offset: 6px; border-radius: 12px; }
.form-field .is-invalid { border-color: rgba(251,113,133,0.85) !important; box-shadow: 0 0 0 3px rgba(251,113,133,0.15); }
.wizard-error { color: #FDA4AF; font-size: 13.5px; margin: 12px 0 0; }
.wizard-summary { margin: 0 0 22px; padding: 16px 18px; border-radius: 14px; background: rgba(123,63,228,0.08); border: 1px solid rgba(160,150,255,0.2); }
.wizard-summary dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.wizard-summary dt { color: #8e97b3; font-size: 13px; } .wizard-summary dd { margin: 0; color: #fff; font-size: 13.5px; }
.contact-submit-btn.is-sending { opacity: 0.7; cursor: progress; }
