/* Engineering inquiry modal — dark-tech, centered, glass + thin blue accent. */
@import url("/assets/navigation.css");
@import url("/assets/site-system.css?v=20260802-1");

.inq-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(3, 5, 8, 0.74);
  backdrop-filter: blur(9px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.inq-overlay.is-open { opacity: 1; visibility: visible; }

.inq-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 42px 42px 28px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  background:
    radial-gradient(130% 80% at 50% -10%, rgba(0, 102, 255, 0.11), transparent 60%),
    linear-gradient(180deg, rgba(12, 15, 20, 0.985), rgba(8, 10, 14, 0.985));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 44px 110px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 102, 255, 0.05);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.26s var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}
.inq-overlay.is-open .inq-dialog { transform: none; }
.inq-dialog::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #0066FF, transparent);
  opacity: 0.7;
}

.inq-close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 180ms, background 180ms, border-color 180ms;
}
.inq-close:hover { color: #fff; border-color: rgba(0, 102, 255, 0.5); background: rgba(0, 102, 255, 0.12); }
.inq-close:focus-visible { color: #fff; border-color: #0066FF; background: rgba(0, 102, 255, 0.12); }
.inq-close svg { width: 15px; height: 15px; }

.inq-head h2 { font-size: 24px; line-height: 1.6; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 9px; }
.inq-head p { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); margin: 0 0 28px; max-width: 560px; }

.inq-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.inq-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.inq-field-full { grid-column: 1 / -1; }
.inq-field label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5); font-weight: 600;
}
.inq-field label .req { color: #0066FF; margin-left: 2px; }

.inq-field input,
.inq-field select,
.inq-field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit; font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.inq-field textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.inq-field input::placeholder,
.inq-field textarea::placeholder { color: rgba(255, 255, 255, 0.32); }
.inq-field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 34px; cursor: pointer;
  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' fill='none' stroke='%23ffffff' stroke-opacity='.55' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.inq-field select option { color: #111; }
.inq-field input:focus,
.inq-field select:focus,
.inq-field textarea:focus {
  outline: none;
  border-color: rgba(0, 102, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.14);
  background: rgba(0, 102, 255, 0.04);
}
.inq-field.has-error input,
.inq-field.has-error select,
.inq-field.has-error textarea { border-color: rgba(255, 96, 96, 0.6); }
.inq-err { font-size: 12px; color: #ff7676; display: none; }
.inq-field.has-error .inq-err { display: block; }

.inq-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.inq-email {
  color: rgba(255, 255, 255, 0.78); font-size: 14px; text-decoration: none;
  border-bottom: 1px solid rgba(0, 102, 255, 0.45); padding-bottom: 1px;
  transition: color 0.18s, border-color 0.18s;
}
.inq-email:hover { color: #fff; border-color: #0066FF; }
.inq-actions { display: flex; gap: 12px; }
.inq-btn-cancel,
.inq-btn-submit {
  padding: 11px 24px; border-radius: 999px; font: inherit; font-weight: 600;
  font-size: 14px; cursor: pointer; transition: all 0.18s ease;
}
.inq-btn-cancel { border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: rgba(255, 255, 255, 0.82); font-weight: 500; }
.inq-btn-cancel:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.inq-btn-submit { border: 1px solid #0066FF; background: #0066FF; color: #fff; }
.inq-btn-submit:hover { background: #0066FF; border-color: #0066FF; box-shadow: 0 8px 26px rgba(0, 102, 255, 0.32); transform: translateY(-1px); }

/* success view */
.inq-success { display: none; text-align: center; padding: 26px 10px 14px; }
.inq-overlay.is-success .inq-body { display: none; }
.inq-overlay.is-success .inq-success { display: block; }
.inq-check {
  width: 64px; height: 64px; margin: 0 auto 22px;
  display: grid; place-items: center; border-radius: 999px;
  background: rgba(0, 102, 255, 0.12); border: 1px solid rgba(0, 102, 255, 0.4); color: #0066FF;
}
.inq-check svg { width: 30px; height: 30px; }
.inq-success h2 { font-size: 22px; font-weight: 600; margin: 0 0 10px; }
.inq-success p { font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, 0.62); max-width: 430px; margin: 0 auto 26px; }
.inq-success .inq-done { display: inline-block; }

/* Shared floating contact rail — direct actions, fixed beside long-form content. */
.gk-contact-rail {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}
.gk-contact-rail::before {
  content: none;
}
.gk-contact-rail.is-suppressed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(12px, -50%);
}
.gk-contact-action {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  background: #080b10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 18px rgba(8, 11, 16, 0.08);
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}
.gk-contact-inquiry {
  color: #fff;
  background: #0066FF;
}
.gk-contact-action svg {
  width: 21px;
  height: 21px;
  pointer-events: none;
}
.gk-contact-action::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  width: max-content;
  max-width: 220px;
  padding: 8px 11px;
  color: #fff;
  background: #080b10;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}
.gk-contact-action:hover,
.gk-contact-action:focus-visible {
  color: #fff;
  background: #0066FF;
}
.gk-contact-action:hover::after,
.gk-contact-action:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}
.gk-contact-action:focus-visible {
  outline: 2px solid #0066FF;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .inq-overlay { padding: 12px; }
  .inq-dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
  }
  .inq-dialog { padding: 34px 22px 22px; }
  .inq-form { grid-template-columns: 1fr; }
  .inq-foot { flex-direction: column-reverse; align-items: stretch; }
  .inq-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .inq-btn-cancel,
  .inq-btn-submit { min-height: 44px; }
}

@media (max-width: 900px) {
  /* The desktop contact rail obscures reading and controls on narrow screens.
     Inquiry stays available through the header/menu and page CTAs. */
  .gk-contact-rail { display: none !important; }
}
