/* General RFQ / Sample Request — Han Sphere — v1.0.0 */

.grq-bg { background: #f4f7ff; }
.grq-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #1d2939;
  box-sizing: border-box;
  counter-reset: hsec;
}
.grq-wrap *, .grq-wrap *::before, .grq-wrap *::after { box-sizing: border-box; }
.grq-wrap svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── HEADER ── */
.grq-wrap .grq-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 32px;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  padding: 26px 34px 26px 38px;
  box-shadow: 0 4px 18px rgba(22,119,255,.06);
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
}
.grq-wrap .grq-header::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: #1677ff; }
.grq-wrap .grq-header h1 { grid-column: 1; margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.01em; color: #1d2939; line-height: 1.25; }
.grq-wrap .grq-header p { grid-column: 1; margin: 0; font-size: 15px; color: #667085; max-width: 760px; }
.grq-wrap .grq-steps { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.grq-wrap .grq-step { display: flex; align-items: center; gap: 8px; color: #667085; font-size: 14px; font-weight: 600; cursor: pointer; transition: color .15s; }
.grq-wrap .grq-step:hover { color: #1677ff; }
.grq-wrap .grq-step:focus-visible { outline: 2px solid #1677ff; outline-offset: 3px; border-radius: 6px; }
.grq-wrap .grq-step-n { width: 28px; height: 28px; border-radius: 50%; background: #e6f4ff; color: #1677ff; border: 1px solid #91caff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.grq-wrap .grq-step.on { color: #1d2939; }
.grq-wrap .grq-step.on .grq-step-n { background: #1677ff; color: #fff; border-color: #1677ff; }
.grq-wrap .grq-step-sep { width: 44px; height: 2px; background: #dbe7ff; margin: 0 10px; border-radius: 2px; flex-shrink: 0; }

/* ── NOTICE ── */
.grq-notice { display: none; padding: 11px 15px; border-radius: 8px; font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.grq-notice.grq-err { display: block; background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; }
.grq-notice.grq-ok  { display: block; background: #e6f4ff; border: 1px solid #91caff; color: #0958d9; }

/* ── LAYOUT: sidebar on the left on wide screens ── */
.grq-wrap .grq-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.grq-wrap .grq-sidebar { position: static; }
@media (min-width: 1101px) {
  .grq-wrap .grq-layout { grid-template-columns: 330px minmax(0, 1fr); }
  .grq-wrap .grq-sidebar { order: -1; position: sticky; top: 24px; }
}

/* ── CARDS ── */
.grq-wrap .grq-card {
  counter-increment: hsec;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-top: 3px solid #1677ff;
  border-radius: 6px 6px 16px 16px;
  box-shadow: 0 1px 3px rgba(16,24,40,.05);
  margin-bottom: 26px;
  scroll-margin-top: 90px;
}
.grq-wrap .grq-card-head { display: flex; align-items: center; gap: 14px; padding: 20px 28px 16px; border-bottom: 1px solid #eef2f8; }
.grq-wrap .grq-card-head::before {
  content: counter(hsec, decimal-leading-zero);
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; border-radius: 12px;
  background: #1677ff; color: #fff; font-weight: 800; font-size: 17px; flex-shrink: 0;
}
.grq-wrap .grq-card-head h2 { margin: 0; font-size: 19px; font-weight: 700; color: #1d2939; line-height: 1.3; }
.grq-wrap .grq-card-sub { font-size: 13px; color: #98a2b3; margin-top: 2px; }
.grq-wrap .grq-card-body { padding: 6px 28px 12px; }

/* ── FIELD ROWS: label on the left, control on the right ── */
.grq-wrap .grq-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 8px 26px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid #eef2f8;
}
.grq-wrap .grq-row:last-child { border-bottom: none; }
.grq-wrap .grq-row > .grq-label { grid-column: 1; padding-top: 9px; margin: 0; }
.grq-wrap .grq-row > :not(.grq-label) { grid-column: 2; min-width: 0; }
.grq-wrap .grq-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #667085; display: block; }
.grq-wrap .grq-req { color: #f5222d; }
.grq-wrap .grq-hint { font-size: 12px; color: #98a2b3; text-align: right; margin-top: 4px; }

.grq-wrap input[type="text"],
.grq-wrap input[type="email"],
.grq-wrap input[type="date"],
.grq-wrap select,
.grq-wrap textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: #f4f7ff;
  color: #1d2939;
  font-family: inherit; font-size: 14px; line-height: 1.5;
  outline: none; margin: 0; box-shadow: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none; -webkit-appearance: none;
}
.grq-wrap input:focus, .grq-wrap select:focus, .grq-wrap textarea:focus { background: #fff; border-color: #1677ff; box-shadow: 0 0 0 4px rgba(22,119,255,.12); }
.grq-wrap select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231677ff' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer;
}
.grq-wrap textarea { resize: vertical; min-height: 110px; }
.grq-wrap .grq-extra { margin-top: 10px; }
.grq-wrap .grq-invalid > input,
.grq-wrap .grq-invalid > select,
.grq-wrap .grq-invalid > textarea,
.grq-wrap .grq-invalid textarea,
.grq-wrap .grq-invalid input { border-color: #f5222d; background: #fff2f0; }
.grq-wrap .grq-invalid .grq-btn { border-color: #ffa39e; }
.grq-wrap .grq-invalid > .grq-label { color: #cf1322; }

/* chips */
.grq-wrap .grq-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.grq-wrap .grq-btn {
  display: inline-flex; align-items: center;
  padding: 8px 18px; border: 1.5px solid #d0d5dd; border-radius: 999px;
  background: #fff; color: #344054; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.3;
  cursor: pointer; transition: all .18s; white-space: nowrap; margin: 0; box-shadow: none; text-transform: none; letter-spacing: 0;
}
.grq-wrap .grq-btn:hover { border-color: #1677ff; color: #1677ff; background: #f4f7ff; }
.grq-wrap .grq-btn.grq-active { background: #e6f4ff; border-color: #1677ff; color: #0958d9; }
.grq-wrap .grq-btn.grq-active::before {
  content: ""; display: inline-block; width: 8px; height: 5px;
  border-left: 2px solid #1677ff; border-bottom: 2px solid #1677ff;
  transform: rotate(-45deg); margin: 0 8px 3px 0;
}
.grq-wrap .grq-btn:focus-visible { outline: 3px solid rgba(22,119,255,.3); outline-offset: 1px; }

/* hidden conditional rows */
.grq-wrap .grq-commercial.grq-hide { display: none; }

/* ── UPLOAD ── */
.grq-wrap .grq-upload-body { padding-top: 22px; padding-bottom: 22px; }
.grq-wrap .grq-upload-zone { border: 2px dashed #91caff; border-radius: 18px; background: #f4f7ff; padding: 32px 20px; text-align: center; transition: all .25s; }
.grq-wrap .grq-upload-zone:hover, .grq-wrap .grq-upload-zone.grq-drag { border-color: #1677ff; background: #e6f4ff; }
.grq-wrap .grq-upload-icon { width: 60px; height: 60px; border-radius: 50%; background: #1677ff; color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.grq-wrap .grq-upload-icon svg { width: 26px; height: 26px; stroke: #fff; }
.grq-wrap .grq-upload-zone h3 { margin: 0 0 5px; font-size: 16px; font-weight: 700; color: #1d2939; }
.grq-wrap .grq-upload-zone p { margin: 0 0 4px; font-size: 13px; color: #667085; }
.grq-wrap .grq-upload-btn-lbl { display: inline-block; margin-top: 12px; padding: 9px 26px; border-radius: 999px; background: #1677ff; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s; }
.grq-wrap .grq-upload-btn-lbl:hover { background: #0958d9; }
#grq-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.grq-wrap .grq-file-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.grq-wrap .grq-file-item { display: flex; align-items: center; gap: 10px; background: #e6f4ff; border: 1px solid #bae0ff; border-radius: 10px; padding: 8px 12px; }
.grq-wrap .grq-file-ic { width: 28px; height: 28px; border-radius: 6px; background: #1677ff; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.grq-wrap .grq-file-ic svg { width: 15px; height: 15px; stroke: #fff; }
.grq-wrap .grq-file-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; color: #1d2939; word-break: break-all; }
.grq-wrap .grq-file-size { font-size: 12px; color: #667085; flex-shrink: 0; }
.grq-wrap .grq-file-del { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid #ffccc7; color: #cf1322; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; transition: background .2s; }
.grq-wrap .grq-file-del:hover { background: #fff2f0; }
.grq-wrap .grq-file-del svg { width: 11px; height: 11px; }
.grq-wrap .grq-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 10px 14px; background: #f4f7ff; border: 1px solid #dbe7ff; border-radius: 10px; font-size: 12px; color: #475467; line-height: 1.6; }
.grq-wrap .grq-note svg { width: 16px; height: 16px; stroke: #1677ff; flex-shrink: 0; margin-top: 1px; }

/* ── SUBMIT BAR (sticky) ── */
.grq-wrap .grq-submit-bar {
  position: sticky; bottom: 16px; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: #fff; border: 1px solid #dbe7ff; border-radius: 18px;
  box-shadow: 0 10px 34px rgba(22,119,255,.18); padding: 16px 22px;
}
.grq-wrap .grq-agree-wrap { flex: 1; min-width: 0; }
.grq-wrap .grq-agree-check { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.grq-wrap .grq-agree-check input[type="checkbox"] { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #1677ff; flex-shrink: 0; }
.grq-wrap .grq-agree-check label { font-size: 13px; color: #344054; cursor: pointer; line-height: 1.5; }
.grq-wrap .grq-agree-check a { color: #1677ff; font-weight: 600; }
.grq-wrap .grq-agree-note { margin: 0; font-size: 12px; color: #667085; line-height: 1.5; }
.grq-wrap .grq-submit-btn {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 13px 34px; border: none; border-radius: 999px;
  background: #1677ff; color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: .2px;
  cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; box-shadow: 0 4px 16px rgba(22,119,255,.3);
}
.grq-wrap .grq-submit-btn:hover { background: #0958d9; transform: translateY(-1px); }
.grq-wrap .grq-submit-btn:disabled { opacity: .7; cursor: default; transform: none; }
.grq-wrap .grq-submit-btn svg { width: 17px; height: 17px; stroke: #fff; }

/* ── SIDEBAR ── */
.grq-wrap .grq-next { background: #fff; border: 1px solid #dbe7ff; border-radius: 18px; box-shadow: 0 14px 34px rgba(22,119,255,.1); overflow: hidden; }
.grq-wrap .grq-next-head { background: #1677ff; padding: 16px 22px; }
.grq-wrap .grq-next-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: #fff; }
.grq-wrap .grq-next-list { list-style: none; margin: 0; padding: 18px 20px 8px; }
.grq-wrap .grq-next-list li { display: flex; gap: 14px; padding: 0 0 18px; position: relative; }
.grq-wrap .grq-next-list li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 2px; background: #dbe7ff; }
.grq-wrap .grq-next-n { width: 30px; height: 30px; border-radius: 50%; background: #e6f4ff; border: 1px solid #91caff; color: #0958d9; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.grq-wrap .grq-next-list strong { display: block; font-size: 14px; color: #1d2939; line-height: 1.4; }
.grq-wrap .grq-next-list p { margin: 2px 0 0; font-size: 12.5px; color: #667085; line-height: 1.5; }
.grq-wrap .grq-contact-box { margin-top: 14px; background: #f4f7ff; border: 1px solid #dbe7ff; border-radius: 14px; padding: 16px 18px; }
.grq-wrap .grq-contact-title { font-size: 14px; font-weight: 700; color: #0958d9; }
.grq-wrap .grq-contact-box p { margin: 4px 0 12px; font-size: 12.5px; color: #667085; }
.grq-wrap .grq-wa { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #1677ff; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s; }
.grq-wrap .grq-wa:hover { background: #0958d9; color: #fff; }
.grq-wrap .grq-wa svg { width: 18px; height: 18px; stroke: #fff; }

/* ── MODAL ── */
.grq-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(16,24,40,.5); z-index: 99999; align-items: center; justify-content: center; padding: 20px; }
.grq-modal-overlay.grq-show { display: flex; }
.grq-modal-box { background: #fff; border-radius: 16px; width: 100%; max-width: 460px; max-height: 92vh; overflow: auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; animation: grqModalIn .28s ease; }
@keyframes grqModalIn { from { transform: scale(.92) translateY(12px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.grq-modal-hd { background: #1677ff; padding: 30px 26px 22px; text-align: center; position: relative; }
.grq-modal-close-x { position: absolute; top: 11px; right: 11px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; line-height: 1; padding: 0; transition: background .18s; }
.grq-modal-close-x:hover { background: rgba(255,255,255,.32); }
.grq-modal-check { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.grq-modal-check svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.grq-modal-title { margin: 0; font-size: 21px; font-weight: 700; color: #fff; }
.grq-modal-subtitle { margin: 6px 0 0; font-size: 13px; color: rgba(255,255,255,.82); }
.grq-modal-bd { padding: 22px 26px 26px; }
.grq-modal-msg { margin: 0 0 18px; font-size: 14px; color: #475467; line-height: 1.65; }
.grq-modal-msg strong { color: #0958d9; }
.grq-modal-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.grq-modal-step { display: flex; align-items: flex-start; gap: 11px; }
.grq-dot { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: #e6f4ff; border: 1px solid #91caff; color: #0958d9; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.grq-step-title { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: #1d2939; }
.grq-step-desc { margin: 0; font-size: 12px; color: #667085; line-height: 1.5; }
.grq-modal-chat { display: block; text-align: center; padding: 11px; border-radius: 999px; background: #1677ff; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s; }
.grq-modal-chat:hover { background: #0958d9; color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grq-wrap .grq-header { grid-template-columns: 1fr; padding: 22px 20px 22px 26px; }
  .grq-wrap .grq-steps { grid-column: 1; grid-row: auto; margin-top: 14px; justify-content: flex-start; }
  .grq-wrap .grq-row { grid-template-columns: 1fr; }
  .grq-wrap .grq-row > .grq-label { padding-top: 0; }
  .grq-wrap .grq-row > :not(.grq-label) { grid-column: 1; }
  .grq-wrap .grq-card-body { padding: 4px 18px 10px; }
  .grq-wrap .grq-card-head { padding: 16px 18px 14px; }
}
@media (max-width: 768px) {
  .grq-wrap { padding: 14px 12px 40px; }
  .grq-wrap .grq-header h1 { font-size: 23px; }
  .grq-wrap .grq-step-sep { width: 20px; margin: 0 6px; }
  .grq-wrap .grq-submit-bar { position: static; flex-direction: column; align-items: stretch; }
  .grq-wrap .grq-submit-btn { width: 100%; justify-content: center; }
}
@media (max-width: 400px) {
  .grq-wrap { padding: 10px 8px 32px; }
  .grq-wrap .grq-header { padding: 18px 14px 18px 20px; }
  .grq-wrap .grq-steps { gap: 8px 0; }
  .grq-wrap .grq-step { font-size: 13px; }
  .grq-wrap .grq-step-sep { width: 12px; margin: 0 4px; }
  .grq-wrap .grq-card-head::before { min-width: 38px; height: 38px; font-size: 15px; }
  .grq-wrap .grq-card-head h2 { font-size: 17px; }
  .grq-wrap .grq-btn { padding: 7px 14px; font-size: 13px; }
}
