#gc-quote-widget, #gc-quote-widget * { box-sizing: border-box; }

.gc-qw {
  --gc-primary: #3D6B4A;
  --gc-secondary: #6B8F5E;
  --gc-dark: #1F3325;
  --gc-text: #2f3a2a;
  --gc-bg: #F4F6F1;
  --gc-card: #FFFFFF;
  --gc-alt: #EAEFE6;
  --gc-on-primary: #FFFFFF;
  --gc-error: #B3413A;

  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gc-text);
}

.gc-qw-card {
  background: var(--gc-card);
  border-radius: 16px;
  padding: 28px 26px 24px;
  box-shadow: 0 20px 45px -18px rgba(31, 51, 37, 0.45), 0 2px 8px rgba(31, 51, 37, 0.08);
  border: 1px solid rgba(31, 51, 37, 0.06);
}

.gc-qw-head h3 {
  margin: 0 0 4px;
  font-size: 21px;
  line-height: 1.2;
  color: var(--gc-dark);
  font-weight: 700;
}
.gc-qw-head p {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--gc-secondary);
  font-weight: 500;
}

.gc-qw-progress {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.gc-qw-step-dot {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: var(--gc-alt);
  color: var(--gc-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease;
}
.gc-qw-step-dot.active {
  background: var(--gc-primary);
  color: var(--gc-on-primary);
}
.gc-qw-step-dot.done {
  background: var(--gc-secondary);
  color: var(--gc-on-primary);
}
.gc-qw-bar {
  flex: 1;
  height: 3px;
  background: var(--gc-alt);
  margin: 0 6px;
  border-radius: 2px;
  overflow: hidden;
}
.gc-qw-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gc-primary);
  transition: width 0.3s ease;
}

.gc-qw-step[hidden] { display: none; }

.gc-qw-row {
  display: flex;
  gap: 12px;
}
.gc-qw-row .gc-qw-field { flex: 1; }
.gc-qw-field-sm { max-width: 90px; }

.gc-qw-field {
  margin-bottom: 14px;
}
.gc-qw-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gc-dark);
  margin-bottom: 5px;
}
.gc-qw-field input,
.gc-qw-field select {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid #DDE3D8;
  border-radius: 9px;
  font-size: 14px;
  color: var(--gc-text);
  background: var(--gc-bg);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.gc-qw-field input:focus,
.gc-qw-field select:focus {
  border-color: var(--gc-primary);
  box-shadow: 0 0 0 3px rgba(61, 107, 74, 0.15);
  background: #fff;
}
.gc-qw-field input.gc-invalid,
.gc-qw-field select.gc-invalid {
  border-color: var(--gc-error);
}
.gc-qw-err {
  display: block;
  min-height: 15px;
  font-size: 11.5px;
  color: var(--gc-error);
  margin-top: 4px;
  font-weight: 500;
}

.gc-qw-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.gc-qw-check {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gc-bg);
  border: 1.5px solid #DDE3D8;
  border-radius: 9px;
  padding: 9px 10px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.gc-qw-check:has(input:checked) {
  border-color: var(--gc-primary);
  background: rgba(61, 107, 74, 0.08);
}
.gc-qw-check input {
  accent-color: var(--gc-primary);
  width: 15px;
  height: 15px;
  flex: none;
}

.gc-qw-row-btns {
  margin-top: 6px;
}

.gc-qw-btn {
  border: none;
  border-radius: 9px;
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.05s ease, opacity 0.15s ease;
}
.gc-qw-btn:active { transform: scale(0.98); }

.gc-qw-btn-primary {
  background: var(--gc-primary);
  color: var(--gc-on-primary);
  width: 100%;
}
.gc-qw-btn-primary:hover { background: #345c40; }
.gc-qw-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.gc-qw-row-btns .gc-qw-btn-primary { flex: 1; width: auto; }

.gc-qw-btn-ghost {
  background: transparent;
  color: var(--gc-dark);
  border: 1.5px solid #DDE3D8;
  flex: none;
  width: auto;
}
.gc-qw-btn-ghost:hover { background: var(--gc-alt); }

.gc-qw-success {
  text-align: center;
  padding: 20px 4px 6px;
}
.gc-qw-success-icon {
  width: 48px;
  height: 48px;
  line-height: 48px;
  border-radius: 50%;
  background: var(--gc-primary);
  color: #fff;
  font-size: 22px;
  margin: 0 auto 14px;
  font-weight: 700;
}
.gc-qw-success h4 {
  margin: 0 0 8px;
  color: var(--gc-dark);
  font-size: 19px;
}
.gc-qw-success p {
  margin: 0;
  font-size: 13.5px;
  color: var(--gc-text);
  line-height: 1.5;
}

@media (max-width: 992px) {
  .gc-qw { max-width: 440px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .gc-qw-card { padding: 22px 18px 18px; border-radius: 14px; }
  .gc-qw-head h3 { font-size: 19px; }
  .gc-qw-checks { grid-template-columns: 1fr; }
}
