  :root {
    --primary: #ff8c1a;
    --primary-dark: #e67e00;
    --gradient: linear-gradient(135deg, #ff8c1a, #ffb347);
    --text: #222;
  }

  /* ===== Modal Base ===== */
  .quote-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 40px 20px;
    /* top-bottom padding to avoid touching header/footer */
    overflow-y: hidden;
    box-sizing: border-box;
  }

  .quote-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: zoomIn 0.5s ease;
    position: relative;
    max-height: 90vh;
    /* ensures it never exceeds viewport height */
    overflow-y: auto;
    /* internal scroll if content is long */
  }

  .quote-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 26px;
    cursor: pointer;
    color: #666;
    transition: 0.3s;
  }

  .quote-close:hover {
    color: var(--primary);
  }

  /* ===== Header ===== */
  .quote-header {
    text-align: left;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }

  .quote-header h2 {
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
  }

  .quote-header p {
    font-size: 14px;
    color: #555;
    margin-top: 4px;
  }

  /* ===== Form ===== */
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
  }

  .form-group {
    display: flex;
    flex-direction: column;
  }

  .form-group.full {
    grid-column: span 2;
  }

  label {
    font-weight: 600;
    color: #333;
    font-size: 13.5px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* Inputs */
  input,
  select,
  textarea {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14.5px;
    transition: 0.3s;
    width: 100%;
  }

  input:focus,
  select:focus,
  textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 6px rgba(255, 140, 26, 0.3);
    outline: none;
  }

  /* ===== Inline Fields ===== */
  .date-row,
  .city-state-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
  }

  .date-row span {
    font-weight: 600;
    color: #444;
  }

  /* ===== Button ===== */
  .quote-btn {
    background: var(--gradient);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    transition: all 0.3s ease;
  }

  .quote-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
  }

  /* ===== Animations ===== */
  @keyframes zoomIn {
    from {
      transform: scale(0.9);
      opacity: 0;
    }

    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  /* ===== Responsive Design ===== */
  @media (max-width: 768px) {
    .form-grid {
      grid-template-columns: 1fr;
    }

    .quote-modal {
      padding: 20px;
    }

    .quote-modal-content {
      padding: 22px 18px;
      max-height: 85vh;
    }

    .quote-header h2 {
      font-size: 20px;
    }

    input,
    select,
    textarea {
      font-size: 14px;
    }

    .date-row,
    .city-state-row {
      flex-direction: column;
      align-items: stretch;
    }
  }

  .recaptcha-wrapper {
    transform: scale(0.9);
    transform-origin: left;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 18px;
    line-height: 1.5;
  }

  .btn-loader {
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  .success-toast, .error-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 14px 20px;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  z-index: 99999;
  animation: slideIn 0.4s ease;
}

.success-toast {
  background: #28a745;
}

.error-toast {
  background: #dc3545;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}