/* Lead Form & Quick Quote Modal Styles for AV Pool Cleaners */

.av-quote-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 75, 135, 0.12);
  border: 1px solid rgba(0, 119, 190, 0.15);
  padding: 2.2rem;
  max-width: 580px;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
}

.av-quote-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #0077be 0%, #00a86b 50%, #0077be 100%);
}

.av-quote-card h3 {
  font-size: 1.5rem;
  color: #0b2545;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-align: center;
}

.av-quote-card p.form-subtitle {
  color: #4a5568;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.av-quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .av-quote-grid {
    grid-template-columns: 1fr;
  }
}

.av-form-group {
  margin-bottom: 1.1rem;
  text-align: left;
}

.av-form-group.full-width {
  grid-column: 1 / -1;
}

.av-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.35rem;
}

.av-form-group input,
.av-form-group select,
.av-form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #cbd5e0;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1a202c;
  background: #f8fafc;
  box-sizing: border-box;
  transition: all 0.2s ease;
  font-family: inherit;
}

.av-form-group input:focus,
.av-form-group select:focus,
.av-form-group textarea:focus {
  outline: none;
  border-color: #0077be;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 119, 190, 0.15);
}

.av-submit-btn {
  width: 100%;
  padding: 0.95rem 1.5rem;
  background: linear-gradient(135deg, #0077be 0%, #005a92 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(0, 119, 190, 0.35);
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.av-submit-btn:hover {
  background: linear-gradient(135deg, #005a92 0%, #004068 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 119, 190, 0.45);
}

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

.form-trust-signals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #718096;
}

.form-trust-signals span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Success State Screen */
.av-form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.av-form-success .success-icon {
  width: 64px;
  height: 64px;
  background: #e6fffa;
  color: #00a86b;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.av-form-success h3 {
  color: #0b2545;
  margin-bottom: 0.5rem;
}

.av-form-success p {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.av-call-cta {
  display: inline-block;
  background: #00a86b;
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3);
}

.av-call-cta:hover {
  background: #008f5a;
}

/* Omnipresent Floating Quick-Quote Trigger */
.av-floating-quote-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #0077be 0%, #00a86b 100%);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  cursor: pointer;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.av-floating-quote-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 119, 190, 0.4);
}

/* Modal Overlay & Container */
.av-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 37, 69, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.av-modal-overlay.active {
  display: flex;
  animation: avFadeIn 0.25s ease-out;
}

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

.av-modal-content {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
}

.av-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.6rem;
  color: #a0aec0;
  cursor: pointer;
  z-index: 10;
  background: transparent;
  border: none;
  line-height: 1;
}

.av-modal-close:hover {
  color: #2d3748;
}
