/* ========================================
   Quote Request Form Styles
   Reuses nonprofit form patterns for consistency
   ======================================== */

.quote-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  padding: 140px 60px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.quote-hero .section-badge {
  position: relative;
  z-index: 1;
}

.quote-hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #f9fafb;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.quote-hero p {
  font-size: 1.15rem;
  color: #94a3af;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Form Container */
.quote-form-section {
  background: #111827;
  padding: 60px;
}

.quote-form-container {
  max-width: 860px;
  margin: 0 auto;
}

/* Progress Indicator */
.form-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  transition: all 0.3s ease;
  cursor: default;
}

.progress-step .step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #9ca3af;
  transition: all 0.3s ease;
}

.progress-step.active {
  background: rgba(37, 99, 235, 0.15);
  border-color: #2563eb;
  color: #60a5fa;
}

.progress-step.active .step-num {
  background: #2563eb;
  color: white;
}

.progress-step.completed {
  background: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
  color: #4ade80;
}

.progress-step.completed .step-num {
  background: #22c55e;
  color: white;
}

/* Form Sections */
.form-section {
  background: #1f2937;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 30px;
  border: 1px solid #374151;
}

.form-section-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #374151;
}

.form-section-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-header h2 .section-number {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.form-section-header p {
  font-size: 0.9rem;
  color: #9ca3af;
  margin: 0;
  padding-left: 42px;
}

/* Form Fields */
.np-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.np-form-group {
  margin-bottom: 22px;
}

.np-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 8px;
}

.np-form-group label .required {
  color: #ef4444;
  margin-left: 2px;
}

.np-form-group label .optional-tag {
  font-weight: 400;
  color: #6b7280;
  font-size: 0.8rem;
}

.np-form-group input[type="text"],
.np-form-group input[type="email"],
.np-form-group input[type="tel"],
.np-form-group input[type="url"],
.np-form-group input[type="number"],
.np-form-group textarea,
.np-form-group select {
  width: 100%;
  padding: 14px 18px;
  background: #111827;
  border: 2px solid #374151;
  border-radius: 10px;
  color: #f9fafb;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: all 150ms ease;
}

.np-form-group input::placeholder,
.np-form-group textarea::placeholder {
  color: #6b7280;
}

.np-form-group input:focus,
.np-form-group textarea:focus,
.np-form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.np-form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.np-form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.np-form-group select option {
  background: #1f2937;
  color: #f9fafb;
}

/* Checkbox & Radio Groups */
.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-group.inline,
.radio-group.inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 8px;
  cursor: pointer;
  transition: all 150ms ease;
}

.checkbox-item:hover,
.radio-item:hover {
  border-color: #4b5563;
  background: #1a2332;
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-item label,
.radio-item label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #d1d5db;
  margin-bottom: 0;
  cursor: pointer;
}

.checkbox-item input:checked + label,
.radio-item input:checked + label {
  color: #f9fafb;
}

.checkbox-item:has(input:checked),
.radio-item:has(input:checked) {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

/* Helper text */
.field-help {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 6px;
}

/* Submit Area */
.form-submit-area {
  background: #1f2937;
  border-radius: 16px;
  padding: 40px;
  border: 1px solid #374151;
  text-align: center;
}

.np-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  padding: 18px 32px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 10px;
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.np-form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.np-form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Altcha widget styling override for dark bg */
.np-altcha-wrapper {
  margin: 20px auto 30px;
  max-width: 400px;
}

/* Responsive */
@media (max-width: 768px) {
  .quote-hero {
    padding: 120px 20px 60px;
  }

  .quote-form-section {
    padding: 20px;
  }

  .form-section {
    padding: 25px 20px;
  }

  .np-form-row {
    grid-template-columns: 1fr;
  }

  .form-progress {
    gap: 6px;
  }

  .progress-step {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .progress-step .step-label {
    display: none;
  }

  .form-section-header h2 {
    font-size: 1.15rem;
  }

  .form-section-header p {
    padding-left: 0;
  }

  .checkbox-group.inline,
  .radio-group.inline {
    flex-direction: column;
  }
}