:root {
  --gqs-brand: #384d48;
  --gqs-brand-dark: #384d48;
  --gqs-brand-light: #e8f0fe;
  --gqs-success: #17a96e;
  --gqs-error: #e03b3b;
  --gqs-text-dark: #0d1117;
  --gqs-text-mid: #4a5568;
  --gqs-text-light: #8896aa;
  --gqs-border: #96ca2d;
  --gqs-bg-page: #ffffff;
  --gqs-bg-card: #ffffff;
  --gqs-shadow-sm: 0 1px 3px rgba(0, 0, 0, .07), 0 1px 2px rgba(0, 0, 0, .05);
  --gqs-shadow-md: 0 4px 16px rgba(0, 0, 0, .08), 0 1px 4px rgba(0, 0, 0, .05);
  --gqs-shadow-lg: 0 10px 40px rgba(0, 0, 0, .10);
  --gqs-radius-sm: 6px;
  --gqs-radius-md: 10px;
  --gqs-radius-lg: 16px;
  --gqs-transition: .22s cubic-bezier(.4, 0, .2, 1);
}

.gqs-wrap *,
.gqs-wrap *::before,
.gqs-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.gqs-wrap {
  color: var(--gqs-text-dark);
  background: var(--gqs-bg-page);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 80px;
}

/* ── Outer container ───────────────────────────────────── */
.gqs-container {
  width: 1024px;
  max-width: 100%;
}

/* ── Header ────────────────────────────────────────────── */
.gqs-header {
  text-align: center;
  margin-bottom: 36px;
}

.gqs-header p {
  color: var(--gqs-text-mid);
  margin: 0;
}

/* ── Step progress indicator ───────────────────────────── */
.gqs-progress {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.gqs-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.gqs-step-node:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--gqs-border);
  z-index: -1;
  transition: background var(--gqs-transition);
}

.gqs-step-node.completed:not(:last-child)::after {
  background: var(--gqs-brand);
}

.gqs-step-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gqs-border);
  background: var(--gqs-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gqs-text-light);
  transition: all var(--gqs-transition);
  box-shadow: var(--gqs-shadow-sm);
}

.gqs-step-node.active .gqs-step-bubble {
  border-color: var(--gqs-brand);
  background: var(--gqs-brand);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(26, 108, 246, .18);
}

.gqs-step-node.completed .gqs-step-bubble {
  border-color: var(--gqs-brand);
  background: var(--gqs-brand);
  color: #fff;
}

.gqs-step-node.completed .gqs-step-bubble::after {
  content: '✓';
}

.gqs-step-node.completed .gqs-step-num {
  display: none;
}

.gqs-step-label {
  margin-top: 6px;
  font-size: .72rem;
  font-weight: 500;
  color: var(--gqs-text-light);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: color var(--gqs-transition);
}

.gqs-step-node.active .gqs-step-label,
.gqs-step-node.completed .gqs-step-label {
  color: var(--gqs-brand);
}

/* ── Card shell ────────────────────────────────────────── */
.gqs-card {
  background: var(--gqs-bg-card);
  border-radius: var(--gqs-radius-lg);
  box-shadow: var(--gqs-shadow-lg);
  overflow: hidden;
}

.gqs-card-head {
  padding: 20px 30px 20px;
  border-bottom: 1px solid var(--gqs-border);
}

.gqs-card-head p {
  color: var(--gqs-text-mid);
  margin: 0;
}

.gqs-card-body {
  padding: 28px 32px;
}

.gqs-card-foot {
  padding: 20px 30px;
  border-top: 1px solid var(--gqs-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fafbfc;
}

/* ── Step panels ───────────────────────────────────────── */
.gqs-step-panel {
  display: none;
  animation: gqfFadeIn .3s ease forwards;
}

.gqs-step-panel.active {
  display: block;
}

@keyframes gqfFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Form fields ───────────────────────────────────────── */
.gqs-field {
  margin-bottom: 16px;
}

.gqs-field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gqs-text-mid);
  margin-bottom: 6px;
  text-transform: none !important;
  letter-spacing: .4px;
}

.gqs-field label .gqs-req {
  color: var(--gqs-brand);
  margin-left: 2px;
}

.gqs-field label .gqs-opt {
  font-weight: 400;
  color: var(--gqs-text-light);
  font-size: .74rem;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}

.gqs-input,
.gqs-select,
.gqs-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gqs-border);
  border-radius: var(--gqs-radius-sm);
  font-size: .9rem;
  color: var(--gqs-text-dark);
  background: #fff;
  transition: border-color var(--gqs-transition), box-shadow var(--gqs-transition);
  appearance: none;
  -webkit-appearance: none;
}

.gqs-input:focus,
.gqs-select:focus,
.gqs-textarea:focus {
  outline: none;
  border-color: var(--gqs-brand);
  box-shadow: 0 0 0 3px rgba(26, 108, 246, .12);
}

.gqs-input.invalid,
.gqs-select.invalid,
.gqs-textarea.invalid {
  border-color: var(--gqs-error);
  box-shadow: 0 0 0 3px rgba(224, 59, 59, .1);
}

.gqs-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='%238896aa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.gqs-textarea {
  resize: vertical;
  min-height: 90px;
}

.gqs-field-error {
  display: none;
  font-size: .76rem;
  color: var(--gqs-error);
  margin-top: 5px;
  font-weight: 500;
}

.gqs-field-error.visible {
  display: block;
}

/* ── Grid helpers ──────────────────────────────────────── */
.gqs-row {
  display: grid;
  gap: 14px;
}

.gqs-col-2 {
  grid-template-columns: 1fr 1fr;
}

.gqs-col-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* ── Checkbox ──────────────────────────────────────────── */
.gqs-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.gqs-checkbox-wrap input[type="radio"] {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gqs-border);
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all var(--gqs-transition);
  background: #fff;
}

.gqs-checkbox-wrap input[type="radio"]:checked {
  background-color: var(--gqs-brand) !important;
  border-color: var(--gqs-brand) !important;
}

.gqs-checkbox-wrap input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(40deg);
}

.gqs-checkbox-label {
  font-size: .92rem;
  font-weight: 500;
  color: var(--gqs-text-dark);
}

/* ── Delivery sub-panel ─────────────────────────────────── */
.gqs-delivery-panel {
  margin-top: 22px;
  padding: 20px;
  border: 1.5px solid rgba(26, 108, 246, .2);
  border-radius: var(--gqs-radius-md);
  background: var(--gqs-brand-light);
  display: none;
  animation: gqfFadeIn .25s ease forwards;
}

.gqs-delivery-panel.open {
  display: block;
}

/* ── Multi-image upload zone ───────────────────────────── */
.gqs-file-upload {
  border: 2px dashed var(--gqs-border);
  border-radius: var(--gqs-radius-sm);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--gqs-transition);
  position: relative;
  background: #fafbfc;
}

.gqs-file-upload:hover,
.gqs-file-upload.drag-over {
  border-color: var(--gqs-brand);
  background: var(--gqs-brand-light);
}

.gqs-file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.gqs-file-upload-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 6px;
}

.gqs-file-upload-text {
  font-size: .83rem;
  color: var(--gqs-text-light);
  font-weight: 500;
  line-height: 1.5;
}

.gqs-file-upload-text strong {
  color: var(--gqs-brand);
  font-weight: 600;
}

.gqs-file-upload-hint {
  font-size: .74rem;
  color: var(--gqs-text-light);
  margin-top: 4px;
}

/* Image chip previews */
.gqs-file-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.gqs-file-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid var(--gqs-border);
  border-radius: 20px;
  padding: 4px 10px 4px 4px;
  font-size: .75rem;
  font-weight: 500;
  color: var(--gqs-text-dark);
  max-width: 200px;
  animation: gqfFadeIn .2s ease;
}

.gqs-file-chip-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gqs-brand-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
}

.gqs-file-chip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gqs-file-chip-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gqs-file-chip-remove {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: transparent !important;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--gqs-error) !important;
  padding: 0 !important;
  line-height: 1;
  flex-shrink: 0;
  transition: background var(--gqs-transition), color var(--gqs-transition);
  position: relative;
  z-index: 3;
  margin: 0 !important;
}


/* ── Glass item card ───────────────────────────────────── */
.gqs-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gqs-item-card {
  border: 1.5px solid var(--gqs-border);
  border-radius: var(--gqs-radius-md);
  background: #fafbfc;
  overflow: hidden;
  transition: box-shadow var(--gqs-transition);
}

.gqs-item-card:hover {
  box-shadow: var(--gqs-shadow-md);
}

.gqs-item-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--gqs-bg-card);
  border-bottom: 1px solid var(--gqs-border);
}

.gqs-item-num {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gqs-brand);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.gqs-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--gqs-radius-sm);
  font-size: .78rem;
  color: var(--gqs-error);
  font-weight: 600;
  transition: background var(--gqs-transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.gqs-item-remove:hover {
  background: #ffeaea;
}

.gqs-item-card-body {
  padding: 16px;
}

.gqs-size-conditional {
  display: none;
}

.gqs-size-conditional.visible {
  display: block;
}

/* ── Add item button ───────────────────────────────────── */
.gqs-add-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 2px dashed var(--gqs-brand);
  border-radius: var(--gqs-radius-md);
  background: none;
  color: var(--gqs-brand);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  transition: all var(--gqs-transition);
}

.gqs-add-item:hover {
  background: var(--gqs-brand-light);
}

.gqs-add-item svg {
  transition: transform var(--gqs-transition);
}

.gqs-add-item:hover svg {
  transform: rotate(90deg);
}

/* ── Buttons ───────────────────────────────────────────── */
.gqs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--gqs-radius-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--gqs-transition);
  border: none;
  white-space: nowrap;
  line-height: 1;
}

.gqs-btn-primary {
  background: var(--gqs-brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 108, 246, .3);
}

.gqs-btn-primary:hover {
  background: var(--gqs-brand-dark);
  box-shadow: 0 4px 14px rgba(26, 108, 246, .4);
  transform: translateY(-1px);
}

.gqs-btn-primary:active {
  transform: translateY(0);
}

.gqs-btn-ghost {
  background: transparent;
  color: var(--gqs-text-mid);
  border: 1.5px solid var(--gqs-border);
}

.gqs-btn-ghost:hover {
  background: #f0f3f8;
  color: var(--gqs-text-dark);
}

.gqs-btn-success {
  background: var(--gqs-success);
  color: #fff;
  box-shadow: 0 2px 8px rgba(23, 169, 110, .3);
}

.gqs-btn-success:hover {
  background: #129e60;
  box-shadow: 0 4px 14px rgba(23, 169, 110, .4);
  transform: translateY(-1px);
}

.gqs-btn-success:active {
  transform: translateY(0);
}

.gqs-btn.loading {
  pointer-events: none;
  opacity: .8;
}

.gqs-spinner {
  width: 16px;
  display: inline-block;
  height: 16px;
  border: 2px solid rgba(150, 202, 45, 1);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gqfSpin .7s linear infinite;
  flex-shrink: 0;
  margin-right: 3px;
  vertical-align: middle;
}

@keyframes gqfSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Review summary ────────────────────────────────────── */
.gqs-review-section {
  margin-bottom: 24px;
}

.gqs-review-section:last-child {
  margin-bottom: 0;
}

.gqs-review-section h4 {
  font-size: 20px !important;
  letter-spacing: .6px;
  margin-bottom: 12px;
}

.gqs-review-item {
  background: #f7f9fc;
  border: 1px solid var(--gqs-border);
  border-radius: var(--gqs-radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.gqs-review-item:last-child {
  margin-bottom: 0;
}

.gqs-review-item-title {
  font-weight: 700;
  font-size: .88rem;
  color: var(--gqs-brand);
  margin-bottom: 8px;
}

.gqs-review-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: .84rem;
  padding: 3px 0;
  color: var(--gqs-text-mid);
  gap: 12px;
}

.gqs-review-row span:first-child {
  flex-shrink: 0;
}

.gqs-review-row span:last-child {
  font-weight: 600;
  color: var(--gqs-text-dark);
  text-align: right;
}

.gqs-review-files {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.gqs-review-file-chip {
  background: var(--gqs-brand-light);
  color: var(--gqs-brand);
  border-radius: 12px;
  padding: 2px 9px;
  font-size: .72rem;
  font-weight: 600;
}

.gqs-review-delivery {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--gqs-brand-light);
  border: 1px solid rgba(26, 108, 246, .2);
  border-radius: var(--gqs-radius-sm);
  padding: 14px 16px;
  font-size: .88rem;
}

.gqs-review-delivery-icon {
  font-size: 1.1rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.gqs-review-delivery-info {
  color: var(--gqs-text-mid);
  line-height: 1.6;
}

.gqs-review-delivery-info strong {
  color: var(--gqs-text-dark);
  display: block;
  font-weight: 600;
}

.gqs-review-customer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gqs-review-customer-field {
  background: #f7f9fc;
  border: 1px solid var(--gqs-border);
  border-radius: var(--gqs-radius-sm);
  padding: 10px 14px;
}

.gqs-review-customer-field .label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--gqs-text-light);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.gqs-review-customer-field .value {
  font-size: .88rem;
  font-weight: 500;
  color: var(--gqs-text-dark);
  margin-top: 2px;
  word-break: break-word;
}

/* ── Notices ───────────────────────────────────────────── */
.gqs-notice {
  display: none;
  padding: 14px 18px;
  border-radius: var(--gqs-radius-sm);
  font-size: .88rem;
  font-weight: 500;
  margin: 16px 32px 0;
  align-items: center;
  gap: 10px;
}

.gqs-notice.visible {
  display: flex;
}

.gqs-notice-success {
  background: #edfaf4;
  color: #0e7a4e;
  border: 1px solid #a3e6c8;
}

.gqs-notice-error {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #f5a9a9;
}

.gqs-notice-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Success screen ────────────────────────────────────── */
.gqs-success-screen {
  display: none;
  text-align: center;
  padding: 60px 32px;
}

.gqs-success-screen.visible {
  display: block;
}

.gqs-success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #17a96e, #0e9058);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(23, 169, 110, .3);
  animation: gqfPop .5s cubic-bezier(.175, .885, .32, 1.275) forwards;
}

@keyframes gqfPop {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.gqs-success-screen h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gqs-text-dark);
}

.gqs-success-screen p {
  color: var(--gqs-text-mid);
  margin-top: 8px;
  font-size: .95rem;
}

/* ── Step counter ──────────────────────────────────────── */
.gqs-step-count {
  font-size: .8rem;
  color: var(--gqs-text-light);
  font-weight: 500;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {

  .gqs-card-head,
  .gqs-card-body,
  .gqs-card-foot {
    padding-left: 18px;
    padding-right: 18px;
  }

  .gqs-notice {
    margin-left: 18px;
    margin-right: 18px;
  }

  .gqs-col-2,
  .gqs-col-3 {
    grid-template-columns: 1fr;
  }

  .gqs-step-label {
    display: none;
  }

  .gqs-step-bubble {
    width: 30px;
    height: 30px;
    font-size: .72rem;
  }

  .gqs-step-node:not(:last-child)::after {
    top: 14px;
  }

  .gqs-review-customer {
    grid-template-columns: 1fr;
  }

  .gqs-card-foot {
    flex-wrap: wrap;
  }

  .gqs-btn {
    width: 100%;
  }
}