/* ============================================
   Daedalus Design — Lead Capture Components
   Quote modal, mobile CTA, exit-intent
   ============================================ */

/* --- Quote Modal Overlay --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-container {
  background: var(--dark-surface, #111827);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--grey, #9ca3af);
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold, #D4AF37);
}

.modal-header {
  padding: 28px 28px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.modal-header h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.modal-header p {
  color: var(--grey, #9ca3af);
  font-size: 0.95rem;
  margin: 0;
}

.modal-body {
  padding: 24px 28px;
}

/* --- Quote Steps --- */
.quote-step h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  text-align: center;
}

.quote-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quote-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quote-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--dark-card, #1a2332);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  font-family: var(--font);
  color: var(--white);
}

.quote-option:hover {
  border-color: var(--gold, #D4AF37);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.quote-option:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.option-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.option-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.option-desc {
  color: var(--grey, #9ca3af);
  font-size: 0.82rem;
}

/* --- Quote Back Button --- */
.quote-back {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: none;
  color: var(--grey, #9ca3af);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 8px 16px;
  transition: color 0.2s;
}

.quote-back:hover {
  color: var(--gold, #D4AF37);
}

/* --- Quote Form Fields --- */
.quote-step .form-group {
  margin-bottom: 16px;
}

.quote-step .form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--grey-light, #d1d5db);
}

.quote-step .form-group input,
.quote-step .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--dark, #0A0E14);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  color: var(--white, #f0f0f0);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.quote-step .form-group input:focus,
.quote-step .form-group textarea:focus {
  outline: none;
  border-color: var(--gold, #D4AF37);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.quote-step .form-group input::placeholder,
.quote-step .form-group textarea::placeholder {
  color: var(--grey, #9ca3af);
  opacity: 0.7;
}

.quote-form-footer {
  text-align: center;
  margin-top: 20px;
}

.quote-form-footer .btn {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 1rem;
}

.form-privacy {
  color: var(--grey, #9ca3af);
  font-size: 0.78rem;
  margin-top: 10px;
  margin-bottom: 0;
}

/* --- Quote Success State --- */
.quote-success {
  text-align: center;
  padding: 20px 0;
}

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

.quote-success h3 {
  margin-bottom: 8px;
}

.quote-success > p {
  color: var(--grey, #9ca3af);
  margin-bottom: 20px;
}

.success-next-steps {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  text-align: left;
}

.success-next-steps h4 {
  font-size: 0.85rem;
  color: var(--gold, #D4AF37);
  margin-bottom: 8px;
}

.success-next-steps ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.success-next-steps li {
  padding: 4px 0;
}

.success-next-steps a {
  color: var(--grey-light, #d1d5db);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.success-next-steps a:hover {
  color: var(--gold, #D4AF37);
}

/* --- Modal Progress Dots --- */
.modal-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px 24px;
}

.progress-step {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.progress-step.active {
  background: var(--gold, #D4AF37);
  transform: scale(1.3);
}

.progress-step.completed {
  background: var(--green, #10b981);
}

/* --- Sticky Mobile CTA --- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  padding: 12px 16px;
  background: rgba(10, 14, 20, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.mobile-cta-bar .btn {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: block;
  }
  
  /* Add bottom padding to body to prevent content being hidden behind CTA */
  body {
    padding-bottom: 68px;
  }
  
  .quote-options-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Exit Intent Popup --- */
.exit-intent-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 11000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.exit-intent-popup.visible {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.exit-intent-container {
  background: var(--dark-surface, #111827);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  padding: 32px 28px;
  position: relative;
  text-align: center;
  animation: slideUp 0.3s ease;
}

.exit-intent-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--grey);
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.exit-intent-close:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
}

.exit-intent-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.exit-intent-popup h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.exit-intent-popup .lead-magnet-desc {
  color: var(--grey);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.exit-intent-popup .lead-magnet-benefits {
  text-align: left;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.exit-intent-popup .lead-magnet-benefits h4 {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.exit-intent-popup .lead-magnet-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exit-intent-popup .lead-magnet-benefits li {
  padding: 4px 0;
  font-size: 0.88rem;
  color: var(--grey-light);
}

.exit-intent-popup .lead-magnet-benefits li::before {
  content: "✓ ";
  color: var(--green, #10b981);
  font-weight: 600;
}

.exit-intent-form .form-group {
  margin-bottom: 12px;
}

.exit-intent-form input {
  width: 100%;
  padding: 12px 14px;
  background: var(--dark, #0A0E14);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: var(--font);
}

.exit-intent-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.exit-intent-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.exit-intent-footer {
  font-size: 0.75rem;
  color: var(--grey);
  margin-top: 12px;
}

.exit-intent-success {
  display: none;
  padding: 20px 0;
}

.exit-intent-success .success-icon {
  margin-bottom: 12px;
}

.exit-intent-success h3 {
  margin-bottom: 8px;
}

.exit-intent-success p {
  color: var(--grey);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* --- Trust Signals Section --- */
.trust-signals {
  padding: 40px 0;
  background: rgba(212, 175, 55, 0.02);
  border-top: 1px solid rgba(212, 175, 55, 0.08);
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

.trust-signals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 768px) {
  .trust-signals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trust-signal-item {
  padding: 16px;
}

.trust-signal-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.trust-signal-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold, #D4AF37);
  margin-bottom: 4px;
}

.trust-signal-label {
  font-size: 0.85rem;
  color: var(--grey, #9ca3af);
}

/* --- Service Page CTA Bar (within content) */
.service-cta-bar {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.03));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.service-cta-bar .cta-content h3 {
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.service-cta-bar .cta-content p {
  color: var(--grey, #9ca3af);
  font-size: 0.9rem;
  margin: 0;
}

.service-cta-bar .cta-action {
  flex-shrink: 0;
}

.service-cta-bar .btn {
  padding: 12px 24px;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .service-cta-bar {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .service-cta-bar .cta-action {
    width: 100%;
  }
  
  .service-cta-bar .btn {
    width: 100%;
    justify-content: center;
  }
}
