/* ============================================
   Quote Modal
   - Triggered by "Get A Quote" buttons
   - Overlay + centered modal with booking form
   ============================================ */

/* ---- Overlay ---- */

.quote-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.quote-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ---- Modal Box ---- */

.quote-modal {
  background: #fff;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.quote-modal-overlay.active .quote-modal {
  transform: scale(1) translateY(0);
}

/* ---- Modal Header ---- */

.quote-modal-header {
  background: var(--color-primary);
  color: #fff;
  padding: 20px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.quote-modal-header h3 {
  margin: 0;
  font-family: var(--title-font-family);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quote-modal-header h3 i {
  font-size: 20px;
  color: var(--color-secondary);
}

.quote-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  line-height: 1;
  flex-shrink: 0;
}

.quote-modal-close:hover {
  background: var(--color-secondary);
}

/* ---- Modal Body (scrollable form area) ---- */

.quote-modal-body {
  padding: 25px;
  overflow-y: auto;
  flex: 1;
}

/* ---- Form Styles ---- */

.quote-modal-body .form-group {
  margin-bottom: 16px;
}

.quote-modal-body label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  font-family: var(--body-font-family);
}

.quote-modal-body .form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--body-font-family);
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.quote-modal-body .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
  outline: none;
}

.quote-modal-body .form-control::placeholder {
  color: #999;
}

.quote-modal-body textarea.form-control {
  resize: none;
  min-height: 80px;
  height: auto;
  overflow: hidden;
}

.quote-modal-body select.form-control {
  appearance: auto;
  cursor: pointer;
}

/* ---- Form Row ---- */

.quote-form-row {
  display: flex;
  gap: 16px;
}

.quote-form-row .form-group {
  flex: 1;
}

/* ---- Submit Button ---- */

.quote-modal-body .quote-submit-wrap {
  text-align: center;
  margin-top: 8px;
}

.quote-modal-body .btn-common {
  width: 100%;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
}

/* ---- Success Message ---- */

.quote-success-message {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.quote-success-message.active {
  display: block;
}

.quote-success-message .success-icon {
  width: 70px;
  height: 70px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 20px;
}

.quote-success-message h4 {
  font-family: var(--title-font-family);
  font-size: 22px;
  color: #333;
  margin-bottom: 10px;
}

.quote-success-message p {
  color: #666;
  font-size: 15px;
  margin-bottom: 20px;
}

/* ---- Responsive ---- */

@media (max-width: 575px) {
  .quote-form-row {
    flex-direction: column;
    gap: 0;
  }

  .quote-modal-header {
    padding: 16px 20px;
  }

  .quote-modal-header h3 {
    font-size: 18px;
  }

  .quote-modal-body {
    padding: 20px;
  }
}
