/* Inquiry pop-up */
#inquiry {
  box-sizing: border-box;
  width: min(760px, calc(100% - 28px));
  max-width: 760px;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 30px;
  overflow-y: auto;
  border: 1px solid #e6e9f0;
  border-radius: 18px;
  color: #13213e;
  background: #fff;
  box-shadow: 0 24px 80px rgba(10, 23, 48, 0.28);
  font-family: inherit;
}

#inquiry::backdrop {
  background: rgba(13, 26, 49, 0.68);
  backdrop-filter: blur(4px);
}

#inquiry *,
#inquiry *::before,
#inquiry *::after {
  box-sizing: border-box;
}

#inquiry [hidden] {
  display: none !important;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow.dark {
  color: #7151c8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

#inquiry .close {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid #e3e6ee;
  border-radius: 50%;
  color: #13213e;
  background: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

#inquiry .close:hover {
  color: #7151c8;
  background: #f6f3ff;
}

#dialog-title {
  margin: 0 0 8px;
  color: #13213e;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
}

.dialog-description {
  margin: 0 0 24px;
  color: #667085;
  font-size: 15px;
  line-height: 1.6;
}

#inquiry-form {
  display: grid;
  gap: 20px;
}

#inquiry .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: 18px;
  row-gap: 12px;
}

#inquiry-form > label,
#inquiry-form .form-row > label {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: #263653;
  font-size: 14px;
  font-weight: 600;
}

#inquiry .field-label {
  display: block;
  min-height: 19px;
  line-height: 1.35;
}

#inquiry input:not([type="file"]),
#inquiry select,
#inquiry textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d8deea;
  border-radius: 8px;
  outline: none;
  color: #13213e;
  background: #fff;
  font: inherit;
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#inquiry textarea {
  height: auto;
  min-height: 110px;
  resize: vertical;
}

#inquiry input::placeholder,
#inquiry textarea::placeholder {
  color: #98a2b3;
}

#inquiry input:focus,
#inquiry select:focus,
#inquiry textarea:focus {
  border-color: #7151c8;
  box-shadow: 0 0 0 3px rgba(113, 81, 200, 0.14);
}

#inquiry .file-label {
  gap: 6px;
  padding: 16px;
  border: 1px dashed #b9addf;
  border-radius: 12px;
  background: #faf9fe;
  cursor: pointer;
}

#inquiry .file-title {
  color: #263653;
  font-size: 14px;
  font-weight: 700;
}

#inquiry .file-subtitle,
#inquiry #drawing-note {
  color: #667085;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

#inquiry input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 8px;
  color: #667085;
  font: inherit;
  font-size: 13px;
}

#inquiry input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #7151c8;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
}

#inquiry input[type="file"]::file-selector-button:hover {
  background: #5e40b1;
}

#inquiry .inquiry-notice {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.6;
}

#inquiry .inquiry-notice a,
#inquiry .inquiry-extra a {
  color: #5e40b1;
  text-underline-offset: 3px;
}

#inquiry .button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #7151c8;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

#inquiry .button:hover {
  background: #5e40b1;
}

#inquiry .button span {
  font-size: 18px;
}

@media (max-width: 600px) {
  #inquiry {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    padding: 22px 18px;
    border-radius: 14px;
  }

  #inquiry .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #inquiry .button {
    width: 100%;
  }
}

#inquiry .field-help {
  display: block;
  min-height: 18px;
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}
