.quote-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  z-index: 2000;
  padding: var(--space-4, 1rem);
}

.quote-modal.active {
  opacity: 1;
  visibility: visible;
}

.quote-modal-content {
  background: var(--bg-white, var(--white, #ffffff));
  border-radius: var(--radius-xl, 1.5rem);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: var(--space-8, 2rem) var(--space-6, 1.5rem);
  animation: modalAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalAppear {
  from {
      opacity: 0;
      transform: scale(0.9) translateY(20px);
  }
  to {
      opacity: 1;
      transform: scale(1) translateY(0);
  }
}

.quote-modal-close {
  position: absolute;
  top: var(--space-4, 1rem);
  right: var(--space-4, 1rem);
  font-size: 2rem;
  color: var(--text-muted, var(--gray-400, #94a3b8));
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.quote-modal-close:hover {
  background: var(--bg-light, var(--gray-100, #f8fafc));
  color: var(--text-primary, var(--gray-900, #0f172a));
}

.quote-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-2, 0.5rem);
  text-align: center;
  color: var(--text-primary, var(--gray-900, #0f172a));
}

.quote-modal-subtitle {
  color: var(--text-secondary, var(--gray-500, #475569));
  text-align: center;
  margin-bottom: var(--space-6, 1.5rem);
  font-size: 0.9375rem;
}

/* Form Progress */
.form-progress {
  margin-bottom: var(--space-6, 1.5rem);
}

.progress-bar {
  height: 4px;
  background: var(--bg-light, var(--gray-200, #e5e7eb));
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-4, 1rem);
}

.progress-bar::before {
  content: '';
  display: block;
  height: 100%;
  background: var(--primary, var(--primary-blue, #1e40af));
  width: 33.33%;
  transition: width 300ms ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
}

.step {
  width: 32px;
  height: 32px;
  background: var(--bg-light, var(--gray-200, #e5e7eb));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-muted, var(--gray-400, #94a3b8));
  transition: background 200ms ease, color 200ms ease;
}

.step.active {
  background: var(--primary, var(--primary-blue, #1e40af));
  color: var(--bg-white, var(--white, #ffffff));
}

.step.completed {
  background: var(--success, var(--success-green, #22c55e));
  color: var(--bg-white, var(--white, #ffffff));
}

/* Form Steps */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-step h3 {
  margin-bottom: var(--space-5, 1.25rem);
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary, var(--gray-900, #0f172a));
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-5, 1.25rem);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-2, 0.5rem);
  font-weight: 500;
  color: var(--text-primary, var(--gray-800, #0f172a));
  font-size: 0.9375rem;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"] {
  width: 100%;
  padding: var(--space-4, 1rem);
  border: 1px solid var(--border, var(--gray-300, #e2e8f0));
  border-radius: var(--radius-md, 0.5rem);
  font-size: 1rem;
  background: var(--bg-white, var(--white, #ffffff));
  color: var(--text-primary, var(--gray-900, #0f172a));
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group input[type="email"]::placeholder {
  color: var(--text-muted, var(--gray-400, #94a3b8));
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary, var(--primary-blue, #1e40af));
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Size Options */
.size-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3, 0.75rem);
}

.size-option {
  cursor: pointer;
}

.size-option input {
  display: none;
}

.size-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2, 0.5rem);
  padding: var(--space-5, 1.25rem);
  border: 2px solid var(--border, var(--gray-300, #e2e8f0));
  border-radius: var(--radius-md, 0.5rem);
  background: var(--bg-white, var(--white, #ffffff));
  transition: border-color 200ms ease, background 200ms ease;
}

.size-card:hover {
  border-color: var(--primary-light, var(--primary-blue-light, #3b82f6));
}

.size-option input:checked + .size-card {
  border-color: var(--primary, var(--primary-blue, #1e40af));
  background: rgba(30, 64, 175, 0.05);
}

.size-icon {
  font-size: 1.75rem;
}

.size-name {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-primary, var(--gray-800, #0f172a));
}

/* Service Options */
.service-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 0.75rem);
}

.service-option {
  display: flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  padding: var(--space-4, 1rem);
  border: 1px solid var(--border, var(--gray-300, #e2e8f0));
  border-radius: var(--radius-md, 0.5rem);
  cursor: pointer;
  background: var(--bg-white, var(--white, #ffffff));
  transition: border-color 200ms ease, background 200ms ease;
}

.service-option:hover {
  border-color: var(--primary, var(--primary-blue, #1e40af));
  background: var(--bg-light, var(--gray-50, #f8fafc));
}

.service-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary, var(--primary-blue, #1e40af));
  flex-shrink: 0;
}

.service-name {
  font-weight: 500;
  color: var(--text-primary, var(--gray-800, #0f172a));
}

/* Form Navigation */
.form-navigation {
  display: flex;
  gap: var(--space-4, 1rem);
  margin-top: var(--space-6, 1.5rem);
  justify-content: space-between;
}

.btn-prev,
.btn-next,
.btn-submit {
  flex: 1;
  padding: var(--space-4, 1rem) var(--space-6, 1.5rem);
  border-radius: var(--radius-md, 0.5rem);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 200ms ease;
  border: none;
}

.btn-prev {
  background: var(--bg-light, var(--gray-200, #e5e7eb));
  color: var(--text-secondary, var(--gray-600, #475569));
}

.btn-prev:hover {
  background: var(--gray-300, #d1d5db);
}

.btn-next,
.btn-submit {
  background: var(--primary, var(--primary-blue, #1e40af));
  color: var(--bg-white, var(--white, #ffffff));
}

.btn-next:hover,
.btn-submit:hover {
  background: var(--primary-dark, var(--primary-blue-dark, #1e3a8a));
}

/* Form validation states */
.form-group input.error {
  border-color: var(--danger, var(--primary-orange, #ef4444));
}

.form-group .error-message {
  color: var(--danger, var(--primary-orange, #ef4444));
  font-size: 0.875rem;
  margin-top: var(--space-1, 0.25rem);
}