/* =======================================
   MOBILE CTA BAR & QUOTE MODAL
   ======================================= */

/* Mobile CTA Bar - Sticky Bottom */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0;
  background: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: env(safe-area-inset-bottom, 0);
}

.mobile-cta-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.mobile-cta-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

/* Call Button - Green */
.mobile-cta-call {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-cta-call:active {
  background: linear-gradient(135deg, #059669, #047857);
  transform: scale(0.98);
}

/* Quote Button - Primary Color */
.mobile-cta-quote {
  background: linear-gradient(135deg, #0a3d62, #1e5f8c);
  color: #ffffff;
}

.mobile-cta-quote:active {
  background: linear-gradient(135deg, #082d47, #0a3d62);
  transform: scale(0.98);
}

/* Boat category colors */
body[data-category="boat"] .mobile-cta-quote {
  background: linear-gradient(135deg, #26a69a, #4db6ac);
}

body[data-category="boat"] .mobile-cta-quote:active {
  background: linear-gradient(135deg, #1e8c83, #26a69a);
}

/* Add padding to body to prevent content being hidden behind CTA bar */
body {
  padding-bottom: 68px;
}

/* Quote Modal */
.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.quote-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.quote-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.quote-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  max-height: 90vh;
  width: 100%;
  overflow-y: auto;
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-modal.active .quote-modal-content {
  transform: translateY(0);
}

.quote-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quote-modal-close svg {
  width: 20px;
  height: 20px;
  color: #424242;
}

.quote-modal-close:hover {
  background: #eeeeee;
}

.quote-modal-close:active {
  transform: scale(0.95);
}

.quote-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #0a3d62;
  margin-bottom: 8px;
  padding-right: 40px;
}

.quote-modal-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

/* Quote Form */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.2s ease;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0a3d62;
  box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.1);
}

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

.quote-submit-btn {
  margin-top: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #0a3d62, #1e5f8c);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quote-submit-btn:active {
  transform: scale(0.98);
}

body[data-category="boat"] .quote-submit-btn {
  background: linear-gradient(135deg, #26a69a, #4db6ac);
}

.quote-modal-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.quote-modal-footer p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.quote-modal-footer a {
  color: #0a3d62;
  font-weight: 600;
  text-decoration: none;
}

.quote-modal-footer a:hover {
  text-decoration: underline;
}

/* Tablet and Desktop - Hide mobile CTA */
@media (min-width: 768px) {
  .mobile-cta-bar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* Desktop - Better modal positioning */
@media (min-width: 1024px) {
  .quote-modal {
    align-items: center;
  }

  .quote-modal-content {
    border-radius: 24px;
    max-width: 500px;
    max-height: 85vh;
    transform: scale(0.9);
    opacity: 0;
  }

  .quote-modal.active .quote-modal-content {
    transform: scale(1);
    opacity: 1;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .mobile-cta-btn,
  .quote-modal,
  .quote-modal-content,
  .quote-submit-btn {
    transition: none;
  }
}
