/**
 * AJAX Page Transition Styles
 * ─────────────────────────────────────────────────────────────
 * Minimal top progress bar page transition style.
 * A elegant progress bar sweeps across the top of the viewport.
 * ─────────────────────────────────────────────────────────────
 */

/* Hide/Remove panel styles & loading bar */
.pt-panel-top,
.pt-panel-bottom,
.pt-loading-bar {
  display: none !important;
}

/* Ensure subheader has a dark green background on load to prevent visual flashing during Jarallax image initialization */
#subheader {
  background-color: #2a3e28 !important;
}

/* Quote Modal Success Card Design */
.quote-modal-success-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-top: 15px;
}

/* Dark mode styling for success card */
.dark-mode .quote-modal-success-card {
  background: #1a2c19;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.quote-modal-success-icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.quote-modal-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #f1f8f0;
  border: 2px solid #e1f0de;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #559f37;
  animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.dark-mode .quote-modal-success-icon {
  background-color: #213f1e;
  border: 2px solid #2d5a29;
}

.quote-modal-success-icon svg {
  width: 36px;
  height: 36px;
}

.quote-modal-success-title {
  color: #333333;
  font-size: 28px;
}

.dark-mode .quote-modal-success-title {
  color: #ffffff;
}

.quote-modal-success-desc {
  font-size: 16px;
  color: #777777;
}

.dark-mode .quote-modal-success-desc {
  color: #a5bda3;
}

.quote-modal-success-btn {
  background-color: #6a963b !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600;
  transition: all 0.25s ease;
}

.quote-modal-success-btn:hover {
  background-color: #55792f !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(106, 150, 59, 0.3);
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

/* Premium Underline Animation and White Colors for Header Menu items on hover & active */
#mainmenu > li > a {
  position: relative !important;
}

#mainmenu > li > a::after {
  content: '';
  position: absolute;
  bottom: 12px; /* position it right under the text */
  left: 0;
  right: 6px; /* align width with text by excluding 6px padding-right */
  height: 2px;
  background-color: #ffffff !important;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show the line and keep color white on hover or active */
#mainmenu > li:hover > a::after,
#mainmenu > li > a.active::after {
  transform: scaleX(1);
}

#mainmenu > li:hover > a,
#mainmenu > li > a.active {
  color: #ffffff !important;
}

/* Adjust the success card styling to have no double boundary lines */
.quote-modal-success-card {
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
  padding: 10px 0 0 0 !important;
}
.dark-mode .quote-modal-success-card {
  background: transparent !important;
  box-shadow: none !important;
}

/* Ensure the success button exactly matches the mockup style */
.quote-modal-success-btn {
  background-color: #78a23d !important; /* olive green */
  border: none !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 10px 45px !important;
  border-radius: 4px !important;
  font-size: 16px;
  box-shadow: none !important;
  transition: background-color 0.2s ease;
}
.quote-modal-success-btn:hover {
  background-color: #628432 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Service Card Titles - Larger & Fixed Size Across Screen Sizes */
.hover h4.mb-3 {
  font-size: 24px !important;
  line-height: 1.25em !important;
  letter-spacing: 0.5px !important;
}
