/* ================= OVERLAYS — Green Theme ================= */

/* Shared overlay base */
.gc-overlay,
.products-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,44,34,0.55);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.gc-overlay.show,
.products-overlay.show {
  display: flex;
}

/* Quote overlay box */
.gc-quotes-box {
  position: relative;
  background: #ffffff;
  width: 96vw;
  max-width: 1200px;
  max-height: 94vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(7,181,168,0.2);
  animation: overlayPop 0.25s ease-out;
}

/* Wizard overlay box */
.gc-wizard-box {
  position: relative;
  background: #ffffff;
  width: 96vw;
  max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 30px 80px rgba(7,181,168,0.2);
  animation: overlayPop 0.25s ease-out;
}

/* Wizard title area */
.gc-wizard-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.gc-wizard-title .gc-wizard-icon {
  font-size: 32px;
  line-height: 1;
}
.gc-wizard-title h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.gc-wizard-sub {
  font-size: 14px;
  color: #64748b;
  margin: 4px 0 20px;
}

@keyframes overlayPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Close button */
.gc-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #64748b;
  transition: all 0.2s;
  z-index: 10;
}
.gc-close:hover {
  background: #fef2f2;
  color: #ef4444;
}

/* Wizard form steps */
.gc-step {
  display: none;
}
.gc-step.active {
  display: block;
}

.gc-step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.gc-step label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin: 10px 0 4px;
}

.gc-step input,
.gc-step select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.gc-step input:focus,
.gc-step select:focus {
  outline: none;
  border-color: #07b5a8;
  box-shadow: 0 0 0 3px rgba(7,181,168,0.1);
}

/* Pills */
.gc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

.gc-pills button {
  padding: 9px 18px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  color: #475569;
}
.gc-pills button:hover {
  border-color: #07b5a8;
  color: #07b5a8;
}
.gc-pills button.active {
  background: linear-gradient(135deg, #07b5a8, #22c55e);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(7,181,168,0.2);
}

/* Actions row */
.gc-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.gc-next,
.gc-primary {
  flex: 1;
  padding: 13px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #07b5a8, #22c55e);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.gc-next:hover,
.gc-primary:hover {
  box-shadow: 0 8px 24px rgba(7,181,168,0.25);
  transform: translateY(-1px);
}

.gc-back {
  padding: 13px 20px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  color: #475569;
  transition: all 0.2s;
}
.gc-back:hover {
  border-color: #07b5a8;
  color: #07b5a8;
}

/* Checkboxes */
.gc-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 14px;
}
.gc-checkboxes label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}
.gc-checkboxes input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #07b5a8;
}

.gc-muted {
  font-size: 14px;
  color: #64748b;
  margin: 4px 0 16px;
}

/* Simple form style — 2-column grid */
.gc-simple-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

/* Form section divider */
.gc-form-section {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 0;
  padding-top: 4px;
}
.gc-form-section:first-child {
  margin-top: 0;
  padding-top: 0;
}
.gc-form-section span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #07b5a8;
  white-space: nowrap;
}
.gc-form-section::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #ccfbf1, transparent);
}

/* Individual field wrapper */
.gc-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.gc-field label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.gc-field input,
.gc-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  color: #0f172a;
}
.gc-field input:focus,
.gc-field select:focus {
  outline: none;
  border-color: #07b5a8;
  box-shadow: 0 0 0 3px rgba(7,181,168,0.1);
}
.gc-field input::placeholder {
  color: #94a3b8;
}
.gc-field select:disabled {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

/* Override quotes.css margin-bottom on wizard inputs */
.gc-wizard-box .gc-field input,
.gc-wizard-box .gc-field select {
  margin-bottom: 0;
  background: #fff;
}

/* Toggle switch */
.gc-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.gc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.gc-toggle-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #cbd5e1;
  border-radius: 24px;
  transition: 0.3s;
}
.gc-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.gc-toggle input:checked + .gc-toggle-slider {
  background: #0d9488;
}
.gc-toggle input:checked + .gc-toggle-slider::before {
  transform: translateX(20px);
}

/* Full-width element (spans both columns) */
.gc-form-full {
  grid-column: 1 / -1;
}

/* Submit button */
.gc-simple-form button[type="submit"] {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 15px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #07b5a8, #22c55e);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.gc-simple-form button[type="submit"]:hover {
  box-shadow: 0 8px 24px rgba(7,181,168,0.25);
  transform: translateY(-1px);
}
.gc-simple-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Legacy .gc-simple-form label/input for backward compat (non-wrapped) */
.gc-simple-form > label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-top: 4px;
  grid-column: 1 / -1;
}
.gc-simple-form > input,
.gc-simple-form > select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  grid-column: 1 / -1;
}
.gc-simple-form > input:focus,
.gc-simple-form > select:focus {
  outline: none;
  border-color: #07b5a8;
  box-shadow: 0 0 0 3px rgba(7,181,168,0.1);
}

/* ================= PRODUCTS / RENEW / SUPPORT / CLAIMS OVERLAYS ================= */

.products-panel {
  position: relative;
  background: #ffffff;
  width: 96vw;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(7,181,168,0.15);
  animation: overlayPop 0.25s ease-out;
}

.products-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #64748b;
  transition: all 0.2s;
}
.products-close:hover {
  background: #fef2f2;
  color: #ef4444;
}

.products-panel h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.products-sub {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}

.products-col h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #07b5a8;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ccfbf1;
}

.products-col a,
.renew-link {
  display: block;
  font-size: 14px;
  color: #334155;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 2px;
  transition: all 0.2s;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.products-col a:hover,
.renew-link:hover {
  background: #f0fdfa;
  color: #07b5a8;
}

/* Responsive — Wizard form modals */
@media (max-width: 768px) {
  .gc-wizard-box {
    max-width: 100%;
    width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 24px 20px;
    max-height: 95vh;
    align-self: flex-end;
  }
  .gc-simple-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gc-wizard-title h3 {
    font-size: 18px;
  }
  .gc-wizard-title .gc-wizard-icon {
    font-size: 26px;
  }
  .gc-field input,
  .gc-field select {
    padding: 14px;
    min-height: 48px;
  }
  .gc-simple-form button[type="submit"] {
    padding: 16px;
    min-height: 52px;
    font-size: 15px;
  }
}

/* Responsive — Products overlay */
@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .products-panel {
    padding: 24px 18px;
  }
}
