/* Quote Page Styles */
.quote-page {
  background: #f5f5f5;
  padding: 60px 0;
  min-height: 100vh;
}

.quote-title {
  text-align: center;
  font-size: 42px;
  color: #092030;
  margin-bottom: 50px;
  font-weight: 600;
}

/* Flow Section */
.flow-section {
  margin: 0 auto 40px;
  padding: 0 130px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.flow-section.hidden {
  display: none;
}

.section-label {
  font-size: 18px;
  color:#092030;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Options Grid */
.options-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.options-grid.horizontal {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.options-grid.vertical {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid transparent;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(122, 182, 68, 0.1), transparent);
  transition: left 0.6s;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.card.selected {
  border-color:#092030;
  background: linear-gradient(135deg, #f0f8ea 0%, #ffffff 100%);
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(122, 182, 68, 0.3);
}

.card.selected::after {
  content: '✓';
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background:#092030;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  animation: checkmark 0.4s ease;
}

@keyframes checkmark {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.card h3 {
  font-size: 22px;
  color: #092030;
  margin: 15px 0 8px;
  font-weight: 600;
}

.card p {
  font-size: 15px;
  color: #666;
  margin: 0;
}

/* Icon Emoji in Cards */
.card h3::before {
  display: block;
  font-size: 48px;
  margin-bottom: 15px;
}

/* Form Wrapper */
.form-wrapper {
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-wrapper h4 {
  color:#092030;
  font-size: 24px;
  margin-bottom: 25px;
  font-weight: 600;
}

/* Form Inputs */
.form-wrapper input,
.form-wrapper textarea,
.form-wrapper select {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  margin-bottom: 20px;
  transition: all 0.3s;
  font-family: 'Rubik', sans-serif;
  background: #fafafa;
}

.form-wrapper input:focus,
.form-wrapper textarea:focus,
.form-wrapper select:focus {
  outline: none;
  border-color:#092030;
  background: white;
  box-shadow: 0 0 0 4px rgba(122, 182, 68, 0.1);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-wrapper textarea {
  resize: vertical;
  min-height: 140px;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #7ab644 0%, #6aa038 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
  box-shadow: 0 6px 20px rgba(122, 182, 68, 0.3);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(122, 182, 68, 0.4);
}

.submit-btn:active {
  transform: translateY(-1px);
}

/* Dynamic Fields */
#dynamic-fields {
  margin-bottom: 20px;
}

#dynamic-fields label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  font-size: 15px;
}

/* Progress Indicator */
.progress-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.progress-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #999;
  transition: all 0.4s;
  position: relative;
}

.progress-step.active {
  background: #092030;
  color: white;
  transform: scale(1.2);
  box-shadow: 0 4px 15px rgba(122, 182, 68, 0.4);
}

.progress-step.completed {
  background: #092030;
  color: white;
}

.progress-step.completed::after {
  content: '✓';
  position: absolute;
}

.progress-line {
  flex: 1;
  height: 3px;
  background: #e0e0e0;
  position: relative;
  overflow: hidden;
}

.progress-line.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #7ab644;
  animation: progressFill 0.6s ease forwards;
}

@keyframes progressFill {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .flow-section{
    padding: 0 30px;
  }
  .quote-page{
    padding: 20px 0;
  }
  .quote-title {
    font-size: 32px;
  }
  
  .form-wrapper {
    padding: 30px 20px;
  }
  
  .input-row {
    grid-template-columns: 1fr;
  }
  
  .options-grid.horizontal,
  .options-grid.vertical {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: 30px 20px;
  }
  
  .progress-indicator {
    gap: 8px;
  }
  
  .progress-step {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flow-section.visible {
  animation: fadeInUp 0.6s ease;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 20px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.success-message .checkmark-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #7ab644;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-message .checkmark-circle svg {
  width: 50px;
  height: 50px;
  stroke: white;
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawCheck 0.8s 0.3s ease-out forwards;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.success-message h2 {
  font-size: 28px;
  color: #092030;
  margin-bottom: 15px;
}

.success-message p {
  font-size: 16px;
  color: #666;
}
.icon{
    width: 48px;
    height: 48px;
    margin: auto;
}