/* Quote Form Specific Styles */

.quote-hero {
  padding: 120px 0 60px;
  background: 
    radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    #0a0a0a;
  text-align: center;
}

.quote-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.quote-hero h1 {
  font-size: 3rem;
  background: linear-gradient(135deg, #ffffff 0%, #667eea 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.quote-hero p {
  font-size: 1.125rem;
  color: #94a3b8;
  margin-bottom: 40px;
  line-height: 1.7;
}

.quote-benefits {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
}

.benefit-icon {
  width: 24px;
  height: 24px;
  color: #667eea;
  flex-shrink: 0;
}

/* Form Section */
.quote-form-section {
  padding: 60px 0 120px;
  background: #0f172a;
}

.quote-form-section .container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
  align-items: start;
}

.form-container {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
  border-radius: 20px;
  padding: 40px;
  position: relative;
}

/* Progress Bar */
.progress-container {
  margin-bottom: 40px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: #1e293b;
  border-radius: 2px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
  width: 25%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.progress-step.active {
  opacity: 1;
}

.progress-step.completed {
  opacity: 1;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #334155;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.progress-step.completed .step-number {
  background: #10b981;
  color: white;
}

.progress-step span {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 500;
}

.progress-step.active span,
.progress-step.completed span {
  color: #e2e8f0;
}

/* Form Steps */
.quote-form {
  position: relative;
}

.form-step {
  display: none;
  animation: fadeIn 0.5s ease-out;
}

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

.form-step h2 {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 1.75rem;
}

.step-description {
  color: #94a3b8;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Service Selection Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.service-option {
  position: relative;
}

.service-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-card-option {
  display: block;
  background: rgba(30, 41, 59, 0.5);
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.service-card-option:hover {
  border-color: #475569;
  background: rgba(30, 41, 59, 0.8);
  transform: translateY(-2px);
}

.service-option input[type="checkbox"]:checked + .service-card-option {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.service-option input[type="checkbox"]:checked + .service-card-option::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20,6 9,17 4,12"/></svg>');
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.service-card-option .service-icon {
  color: #667eea;
  margin-bottom: 16px;
}

.service-content h3 {
  color: #ffffff;
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.service-content p {
  color: #94a3b8;
  font-size: 0.875rem;
  margin: 0;
}

/* Form Groups */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px;
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.field-tip {
  color: #64748b;
  font-size: 0.875rem;
  margin-top: 6px;
}

/* Budget Options */
.budget-options {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
}

.budget-option {
  position: relative;
}

.budget-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.budget-card {
  display: block;
  background: rgba(30, 41, 59, 0.5);
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.budget-card:hover {
  border-color: #475569;
  background: rgba(30, 41, 59, 0.8);
}

.budget-option input[type="radio"]:checked + .budget-card {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.budget-option input[type="radio"]:checked + .budget-card::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20,6 9,17 4,12"/></svg>');
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.budget-amount {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.budget-description {
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Form Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #1e293b;
}

.form-navigation .btn {
  min-width: 120px;
}

.btn-submit {
  position: relative;
  overflow: hidden;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-spinner {
  animation: spin 1s linear infinite;
}

.btn-spinner svg {
  display: block;
}

/* Success Step */
.success-step {
  text-align: center;
  padding: 40px 20px;
}

.success-content {
  max-width: 500px;
  margin: 0 auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  color: white;
}

.success-step h2 {
  color: #10b981;
  margin-bottom: 16px;
}

.success-step p {
  color: #94a3b8;
  margin-bottom: 40px;
  font-size: 1.125rem;
}

.next-steps {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 32px;
  margin: 40px 0;
  text-align: left;
}

.next-step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.next-step:last-child {
  margin-bottom: 0;
}

.next-step .step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.step-content h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 4px;
}

.step-content p {
  color: #94a3b8;
  font-size: 0.875rem;
  margin: 0;
}

.success-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

/* Info Sidebar */
.quote-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.info-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 32px;
  position: sticky;
  top: 100px;
}

.info-card h3 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #cbd5e1;
}

.info-list li:last-child {
  margin-bottom: 0;
}

.info-list svg {
  color: #10b981;
  flex-shrink: 0;
}

.info-card p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Error states */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.error-message svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .quote-form-section .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .quote-info {
    order: -1;
  }

  .info-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .quote-hero h1 {
    font-size: 2.25rem;
  }

  .quote-benefits {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .form-container {
    padding: 24px;
  }

  .progress-steps {
    gap: 8px;
  }

  .progress-step span {
    font-size: 12px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-navigation {
    flex-direction: column;
    gap: 16px;
  }

  .form-navigation .btn {
    width: 100%;
  }

  .success-actions {
    flex-direction: column;
  }

  .success-actions .btn {
    width: 100%;
  }

  .info-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .quote-hero {
    padding: 100px 0 40px;
  }

  .quote-hero h1 {
    font-size: 1.875rem;
  }

  .form-container {
    padding: 20px;
  }

  .progress-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .service-card-option {
    padding: 20px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px;
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .next-steps {
    padding: 24px;
  }

  .next-step {
    flex-direction: column;
    gap: 12px;
  }
}

/* Dark mode support for better contrast */
@media (prefers-contrast: high) {
  .service-card-option,
  .budget-card {
    border-width: 3px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    border-width: 3px;
  }
}