/* ===== INQUIRY FORM PAGE ===== */

/* ── Hero Banner ─────────────────────────────── */
.iq-hero {
  background: linear-gradient(135deg, #001a3e 0%, #003da5 60%, #0a2255 100%);
  padding: 50px 0 55px;
  color: #fff;
}

.iq-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.iq-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}

.iq-breadcrumb a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}

.iq-breadcrumb a:hover {
  color: #fff;
}

.iq-hero-label {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #7eb3ff;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.iq-hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.15;
}

.iq-hero-sub {
  font-size: 1.6rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  max-width: 50%;
}

/* ── Body Layout ─────────────────────────────── */

select {
    height: 3.2em !important;
}

.iq-body-section {
  background: #f4f6f9;
  padding: 60px 0 80px;
}

.iq-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

/* ── Sidebar ─────────────────────────────────── */
.iq-sidebar {
  position: sticky;
  top: 100px;
}

.iq-sidebar-label {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #003da5;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.iq-sidebar-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.iq-sidebar-desc {
  font-size: 1.5rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 24px;
}

.iq-response-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f4f6f9;
  border: 1.5px solid #1a3a8f;
  border-radius: 12px;
  padding: 18px 20px;
  color: #1a3a8f;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
}

.iq-response-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  width: 22px;
  height: 22px;
  color: #1a3a8f;
}

/* ── Form Card ───────────────────────────────── */
.iq-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 40px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.iq-required-note {
  text-align: right;
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 24px;
}

/* ── Form Rows & Fields ──────────────────────── */
.iq-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.iq-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.iq-field-full {
  margin-bottom: 20px;
}

.iq-field label,
.iq-file-label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-dark);
}

.iq-checkbox-label {
  font-weight: 400;
}

.iq-field .iq-checkbox-label {
  font-weight: 400;
}

.iq-req {
  color: #c0392b;
  font-weight: 700;
}

.iq-optional {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-text);
}

/* Inputs & Textarea */
.iq-field input[type="text"],
.iq-field input[type="email"],
.iq-field input[type="tel"],
.iq-field textarea {
  width: 100%;
  padding: 2px 10px;
  font-size: 1.5rem;
  font-family: var(--font-family);
  color: var(--color-dark);
  border: 1.5px solid #cdd4e0;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.iq-field input[type="text"]:focus,
.iq-field input[type="email"]:focus,
.iq-field input[type="tel"]:focus,
.iq-field textarea:focus {
  outline: none;
  border-color: #003da5;
  box-shadow: 0 0 0 3px rgba(0,61,165,0.12);
}

.iq-field textarea {
  resize: vertical;
  min-height: 130px;
}

/* Select wrapper with custom chevron */
.iq-select-wrap {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.iq-select-wrap select {
  width: 100%;
  max-width: 100%;
  padding: 10px 38px 10px 14px;
  font-size: 1.5rem;
  font-family: var(--font-family);
  color: var(--color-dark);
  border: 1.5px solid #cdd4e0;
  border-radius: 8px;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iq-select-wrap select:focus {
  outline: none;
  border-color: #003da5;
  box-shadow: 0 0 0 3px rgba(0,61,165,0.12);
}

.iq-select-wrap select option[value=""] {
  color: #888;
}

.iq-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #555;
}

/* ── File Attachment ─────────────────────────── */
.iq-file-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid #cdd4e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  margin-top: 6px;
}

.iq-file-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #003da5;
  color: #fff !important;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.iq-file-btn:hover {
  background: #002d80;
}

input[type="file"]#iq-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.iq-file-name {
  padding: 10px 14px;
  font-size: 1.4rem;
  color: #666;
  flex: 1;
}

.iq-file-hint {
  font-size: 1.3rem;
  color: #888;
  margin-top: 6px;
}

/* ── Consent ─────────────────────────────────── */
.iq-consent-row {
  margin-top: 4px;
}

.iq-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.4rem;
  color: var(--color-text);
  line-height: 1.6;
  cursor: pointer;
  font-weight: 200;
}

.iq-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #003da5;
  cursor: pointer;
}

.iq-checkbox-label a {
  color: #003da5;
  text-decoration: underline;
}

/* ── Error message ───────────────────────────── */
.iq-form-error {
  font-size: 1.4rem;
  color: #c0392b;
  margin-bottom: 12px;
  min-height: 0;
}

.iq-form-error:not(:empty) {
  margin-bottom: 16px;
}

/* ── Submit button ───────────────────────────── */
.iq-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* ── Success message ─────────────────────────── */
.iq-success {
  text-align: center;
  padding: 60px 20px;
}

.iq-success svg {
  display: block;
  margin: 0 auto 20px;
}

.iq-success h3 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.iq-success p {
  font-size: 1.6rem;
  color: var(--color-text);
  line-height: 1.6;
}

/* ── Custom dropdown (product of interest) ───── */
.iq-custom-select {
  position: relative;
  width: 100%;
}

.iq-custom-selected {
  width: 100%;
  padding: 10px 38px 10px 14px;
  border: 1.5px solid #cdd4e0;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 1.5rem;
  font-weight: 400;
  color: #888;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  position: relative;
  user-select: none;
  box-sizing: border-box;
}

.iq-custom-selected:hover {
  background: #f8f8f8;
}

.iq-custom-selected.has-value {
  color: var(--color-dark);
}

.iq-custom-select:focus > .iq-custom-selected,
.iq-custom-select.open > .iq-custom-selected {
  outline: none;
  border-color: #003da5;
  box-shadow: 0 0 0 3px rgba(0,61,165,0.12);
}

.iq-custom-select.iq-error > .iq-custom-selected {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

.iq-custom-selected .iq-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #555;
  transition: transform 0.2s ease;
}

.iq-custom-select.open .iq-custom-selected .iq-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.iq-custom-selected-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iq-custom-options {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 200;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 220px;
  overflow-y: auto;
  width: 100%;
}

.iq-custom-select.open .iq-custom-options {
  display: block;
}

.iq-custom-option {
  padding: 5px 10px 1px;
  font-size: 1.4rem;
  font-family: var(--font-family);
  font-weight: 400;
  color: black;
  cursor: pointer;
  transition: background-color 0.1s ease;
  text-align: left;
}

.iq-custom-option:hover,
.iq-custom-option:focus {
  background: #f5f5f5;
  outline: none;
}

.iq-custom-option.selected {
  background: #0066cc;
  color: #fff;
}

.iq-custom-option.iq-placeholder {
  color: #666;
  font-weight: 400;
  font-size: 1.4rem;
}

.iq-custom-option sup.tm {
  font-size: 0.65em;
  vertical-align: super;
  line-height: 0;
}

/* Scrollbar */
.iq-custom-options::-webkit-scrollbar {
  width: 8px;
}

.iq-custom-options::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0 4px 4px 0;
}

.iq-custom-options::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 6px;
}

.iq-custom-options::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ── Dropdown search ─────────────────────────── */
.iq-dropdown-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 200;
  /* Cap total panel height so it never overflows the page layout */
  max-height: 280px;
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.iq-custom-select.open .iq-dropdown-panel {
  display: flex;
}

/* Move the options list inside the panel — it scrolls within the capped height */
.iq-dropdown-panel .iq-custom-options {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  display: block;
  /* Fill remaining height after the search bar and scroll */
  flex: 1;
  overflow-y: auto;
  max-height: none;
}

.iq-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #e8e8e8;
}

.iq-search-icon {
  flex-shrink: 0;
  color: #999;
}

.iq-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.4rem;
  font-family: var(--font-family);
  color: var(--color-dark);
  background: transparent;
  padding: 0;
}

.iq-search-input::placeholder {
  color: #aaa;
}

.iq-no-results {
  padding: 10px 14px;
  font-size: 1.4rem;
  color: #999;
  text-align: center;
}

/* ── Multi-select (industry) ─────────────────── */
.iq-multi-select .iq-custom-selected {
  flex-wrap: wrap;
  min-height: 42px;
  height: auto;
  gap: 4px;
  align-items: center;
  padding: 6px 38px 6px 10px;
}

.iq-multi-placeholder {
  color: #888;
  font-size: 1.5rem;
}

.iq-multi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}

.iq-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #003da5;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.iq-tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.iq-tag-remove:hover {
  background: rgba(255,255,255,0.6);
}

/* Checkbox style inside multi options */
.iq-multi-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

.iq-checkbox {
  width: 16px;
  height: 16px;
  border: 2px solid #cdd4e0;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  transition: all 0.15s ease;
}

.iq-checkbox svg {
  display: none;
  color: #fff;
}

.iq-multi-option.selected .iq-checkbox {
  background: #0066cc;
  border-color: #0066cc;
}

.iq-multi-option.selected .iq-checkbox svg {
  display: block;
}

.iq-multi-option.selected {
  background: #f0f6ff;
  color: var(--color-dark);
  font-weight: 500;
}

/* ── Validation error state ──────────────────── */
.iq-field input.iq-error,
.iq-field textarea.iq-error,
.iq-select-wrap select.iq-error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 960px) {
  .iq-layout {
    grid-template-columns: 220px 1fr;
    gap: 30px;
  }

  .iq-hero-title {
    font-size: 3.2rem;
  }

  .iq-form-card {
    padding: 28px 28px 32px;
    min-width: 0;
    overflow: hidden;
  }

  .iq-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .iq-layout {
    grid-template-columns: 1fr;
  }

  .iq-sidebar {
    position: static;
  }

  .iq-hero {
    padding: 36px 0 40px;
  }

  .iq-hero-inner {
    padding: 0 20px;
  }

  .iq-hero-title {
    font-size: 2.8rem;
  }

  .iq-hero-sub br {
    display: none;
  }

  .iq-form-card {
    padding: 24px 20px 28px;
  }

  .iq-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .iq-body-section {
    padding: 40px 0 60px;
  }

  .iq-hero-title {
    font-size: 2.4rem;
  }
}
