/**
 * HireSkipBins Modern UI Enhancement
 * Bootstrap 5 inspired improvements with animations
 * Version: 1.0
 */

/* ============================================
   CSS VARIABLES (Design Tokens)
   ============================================ */
:root {
  /* Brand Colors */
  --hsb-primary: #179BD7;
  --hsb-primary-hover: #1287b8;
  --hsb-primary-light: #e8f6fc;
  --hsb-primary-gradient: linear-gradient(135deg, #1cb5e0 0%, #179BD7 100%);

  --hsb-secondary: #5CB869;
  --hsb-secondary-hover: #4fa75b;

  --hsb-accent: #ff9826;
  --hsb-accent-hover: #e8891f;

  /* Neutrals */
  --hsb-dark: #1a1a2e;
  --hsb-gray-900: #212529;
  --hsb-gray-800: #343a40;
  --hsb-gray-700: #495057;
  --hsb-gray-600: #6c757d;
  --hsb-gray-500: #adb5bd;
  --hsb-gray-400: #ced4da;
  --hsb-gray-300: #dee2e6;
  --hsb-gray-200: #e9ecef;
  --hsb-gray-100: #f8f9fa;
  --hsb-white: #ffffff;

  /* Status Colors */
  --hsb-success: #28a745;
  --hsb-warning: #ffc107;
  --hsb-danger: #dc3545;
  --hsb-info: #17a2b8;

  /* Typography */
  --hsb-font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --hsb-font-heading: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --hsb-spacing-xs: 0.25rem;
  --hsb-spacing-sm: 0.5rem;
  --hsb-spacing-md: 1rem;
  --hsb-spacing-lg: 1.5rem;
  --hsb-spacing-xl: 2rem;
  --hsb-spacing-2xl: 3rem;

  /* Border Radius */
  --hsb-radius-sm: 0.375rem;
  --hsb-radius-md: 0.5rem;
  --hsb-radius-lg: 0.75rem;
  --hsb-radius-xl: 1rem;
  --hsb-radius-full: 9999px;

  /* Shadows */
  --hsb-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --hsb-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --hsb-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --hsb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --hsb-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --hsb-shadow-glow: 0 0 20px rgba(23, 155, 215, 0.3);

  /* Touch Targets */
  --hsb-touch-min: 44px;
  --hsb-input-height: 48px;

  /* Transitions */
  --hsb-transition-fast: 150ms ease;
  --hsb-transition: 250ms ease;
  --hsb-transition-slow: 350ms ease;

  /* Z-index layers */
  --hsb-z-dropdown: 1000;
  --hsb-z-sticky: 1020;
  --hsb-z-fixed: 1030;
  --hsb-z-modal-backdrop: 1040;
  --hsb-z-modal: 1050;
  --hsb-z-tooltip: 1080;
}

/* ============================================
   BASE RESET & ACCESSIBILITY
   ============================================ */

/* Better box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Smooth scrolling (respects user preference) */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--hsb-primary);
  color: var(--hsb-white);
  padding: 12px 24px;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--hsb-radius-md) 0;
  transition: top var(--hsb-transition);
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--hsb-accent);
  outline-offset: 2px;
}

/* Better focus states */
:focus-visible {
  outline: 3px solid var(--hsb-primary);
  outline-offset: 2px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Fade in up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in down animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scale in animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide in from right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Pulse animation for CTAs */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* Shimmer loading effect */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Bounce subtle */
@keyframes bounceSubtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Animation utility classes */
.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.5s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.3s ease forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.5s ease forwards;
}

.animate-slide-right {
  animation: slideInRight 0.5s ease forwards;
}

/* Staggered animations */
.animate-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.animate-stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   FORM IMPROVEMENTS
   ============================================ */

/* Modern form controls */
.form-control,
.sky-form .input input,
.sky-form .select select,
.sky-form .textarea textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
  min-height: var(--hsb-input-height) !important;
  height: auto !important;
  padding: 12px 16px !important;
  font-size: 16px !important; /* Prevents iOS zoom */
  line-height: 1.5 !important;
  border: 2px solid var(--hsb-gray-300) !important;
  border-radius: var(--hsb-radius-md) !important;
  background-color: var(--hsb-white) !important;
  transition: border-color var(--hsb-transition), box-shadow var(--hsb-transition), transform var(--hsb-transition-fast) !important;
}

.form-control:hover,
.sky-form .input:hover input,
.sky-form .select:hover select {
  border-color: var(--hsb-gray-400) !important;
}

.form-control:focus,
.sky-form .input input:focus,
.sky-form .select select:focus,
.sky-form .textarea textarea:focus {
  border-color: var(--hsb-primary) !important;
  box-shadow: 0 0 0 4px rgba(23, 155, 215, 0.15) !important;
  outline: none !important;
  transform: translateY(-1px);
}

/* Input with icon styling */
.input-group .form-control {
  border-radius: var(--hsb-radius-md) !important;
}

.input-group .input-group-addon,
.input-group-text {
  background: var(--hsb-gray-100);
  border: 2px solid var(--hsb-gray-300);
  border-radius: var(--hsb-radius-md);
  padding: 12px 16px;
  color: var(--hsb-gray-600);
}

/* Floating labels effect (optional) */
.form-floating {
  position: relative;
}

.form-floating > label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: 1rem 0.75rem;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity var(--hsb-transition), transform var(--hsb-transition);
  color: var(--hsb-gray-600);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Select dropdown styling */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px !important;
}

/* Checkbox and Radio improvements */
.checkbox-modern,
.radio-modern {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--hsb-radius-md);
  transition: background-color var(--hsb-transition);
}

.checkbox-modern:hover,
.radio-modern:hover {
  background-color: var(--hsb-gray-100);
}

/* Error states — catch all input types (form-control, form-input, bare inputs) */
.has-error .form-control,
.has-error .form-input,
.has-error input,
.has-error select,
.has-error textarea,
.form-control.is-invalid,
.form-input.is-invalid,
.state-error input,
.state-error select,
.state-error textarea {
  border-color: #E53E3E !important;
  background-color: #FFF5F5 !important;
  box-shadow: 0 0 0 1px rgba(229, 62, 62, 0.35) !important;
}

.has-error .form-control:focus,
.has-error .form-input:focus,
.has-error input:focus,
.has-error select:focus,
.has-error textarea:focus,
.form-control.is-invalid:focus,
.form-input.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.22) !important;
  border-color: #E53E3E !important;
}

/* Error message — catchy red alert box, shown under the field */
.help-block,
.invalid-feedback,
.field-error .help-block,
.has-error .help-block {
  display: block;
  margin-top: 8px;
  padding: 10px 14px;
  background-color: #FEE7E7;
  border: 1px solid #FBC4C4;
  border-left: 4px solid #E53E3E;
  border-radius: 8px;
  color: #9B1C1C;
  font-family: var(--hsb-font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  animation: hsb-shake 0.35s ease-in-out;
  box-shadow: 0 1px 2px rgba(229, 62, 62, 0.08);
}

.help-block:empty,
.invalid-feedback:empty,
.has-error .help-block:empty {
  display: none !important;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  animation: none;
  box-shadow: none;
}

.help-block::before,
.invalid-feedback::before {
  content: "⚠";
  display: inline-block;
  margin-right: 6px;
  color: #E53E3E;
  font-weight: 700;
}

/* Also style field labels red when the field has an error, for clarity */
.has-error > label,
.has-error .control-label {
  color: #9B1C1C !important;
}

@keyframes hsb-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Success states */
.has-success .form-control,
.form-control.is-valid,
.state-success input,
.state-success select {
  border-color: var(--hsb-success) !important;
  background-color: #f0fff4 !important;
}

/* ============================================
   BUTTON IMPROVEMENTS
   ============================================ */

/* Base button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--hsb-touch-min);
  padding: 12px 24px;
  font-family: var(--hsb-font-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 2px solid transparent;
  border-radius: var(--hsb-radius-md);
  transition: all var(--hsb-transition);
}

.btn:active {
  transform: translateY(1px);
}

/* Primary button with gradient */
.btn-primary,
.sky-form .button,
button[type="submit"].btn-primary {
  background: var(--hsb-primary-gradient) !important;
  border-color: var(--hsb-primary) !important;
  color: var(--hsb-white) !important;
  box-shadow: var(--hsb-shadow-md), 0 4px 14px -3px rgba(23, 155, 215, 0.4);
}

.btn-primary:hover,
.sky-form .button:hover,
button[type="submit"].btn-primary:hover {
  background: linear-gradient(135deg, #1287b8 0%, #106a95 100%) !important;
  border-color: var(--hsb-primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: var(--hsb-shadow-lg), 0 8px 20px -4px rgba(23, 155, 215, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:focus-visible {
  box-shadow: var(--hsb-shadow-md), 0 0 0 4px rgba(23, 155, 215, 0.3);
}

/* Secondary/Success button */
.btn-success {
  background: linear-gradient(135deg, #5CB869 0%, #4fa75b 100%);
  border-color: var(--hsb-secondary);
  color: var(--hsb-white);
  box-shadow: var(--hsb-shadow-md), 0 4px 14px -3px rgba(92, 184, 105, 0.4);
}

.btn-success:hover {
  background: linear-gradient(135deg, #4fa75b 0%, #3d8c48 100%);
  transform: translateY(-2px);
  box-shadow: var(--hsb-shadow-lg), 0 8px 20px -4px rgba(92, 184, 105, 0.5);
}

/* Accent/Warning button */
.btn-warning,
.btn-accent {
  background: linear-gradient(135deg, #ffad47 0%, #ff9826 100%);
  border-color: var(--hsb-accent);
  color: var(--hsb-dark);
  box-shadow: var(--hsb-shadow-md), 0 4px 14px -3px rgba(255, 152, 38, 0.4);
}

.btn-warning:hover,
.btn-accent:hover {
  background: linear-gradient(135deg, #ff9826 0%, #e8891f 100%);
  transform: translateY(-2px);
}

/* Outline buttons */
.btn-outline-primary {
  background: transparent;
  border-color: var(--hsb-primary);
  color: var(--hsb-primary);
}

.btn-outline-primary:hover {
  background: var(--hsb-primary);
  color: var(--hsb-white);
  transform: translateY(-2px);
}

/* Large button */
.btn-lg {
  min-height: 56px;
  padding: 16px 32px;
  font-size: 18px;
  border-radius: var(--hsb-radius-lg);
}

/* Block button */
.btn-block {
  display: flex;
  width: 100%;
}

/* Button with icon */
.btn i,
.btn .fa,
.btn .glyphicon {
  font-size: 1.1em;
}

/* Loading state */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Pulse effect on CTA buttons */
.btn-cta {
  animation: pulse 2s ease-in-out infinite;
}

.btn-cta:hover {
  animation: none;
}

/* ============================================
   CARD IMPROVEMENTS
   ============================================ */

.card,
.panel,
.box-icon.box-icon-content {
  background: var(--hsb-white);
  border: 1px solid var(--hsb-gray-200) !important;
  border-radius: var(--hsb-radius-lg) !important;
  box-shadow: var(--hsb-shadow);
  transition: transform var(--hsb-transition), box-shadow var(--hsb-transition);
}

.card:hover,
.panel:hover,
.box-icon.box-icon-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--hsb-shadow-lg);
}

/* Card with hover glow effect */
.card-glow:hover {
  box-shadow: var(--hsb-shadow-lg), var(--hsb-shadow-glow);
}

/* Pricing cards */
.pricing-card,
.price-clean {
  position: relative;
  overflow: hidden;
  border-radius: var(--hsb-radius-xl) !important;
  transition: all var(--hsb-transition);
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--hsb-primary-gradient);
}

.pricing-card.featured {
  transform: scale(1.02);
  border-color: var(--hsb-primary);
}

.pricing-card.featured::before {
  height: 6px;
}

/* ============================================
   NAVIGATION IMPROVEMENTS
   ============================================ */

/* Top bar styling */
#topBar {
  background: var(--hsb-dark);
  padding: 8px 0;
  font-size: 13px;
  transition: transform var(--hsb-transition);
}

#topBar a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--hsb-transition);
}

#topBar a:hover {
  color: var(--hsb-white);
}

/* Main header */
#header {
  background: var(--hsb-white);
  box-shadow: var(--hsb-shadow-md);
  transition: all var(--hsb-transition);
}

#header.scrolled {
  box-shadow: var(--hsb-shadow-lg);
}

/* Logo animation */
.logo img {
  transition: transform var(--hsb-transition);
}

.logo:hover img {
  transform: scale(1.02);
}

/* Nav links */
#topMain > li > a {
  position: relative;
  padding: 10px 16px;
  font-weight: 600;
  color: var(--hsb-gray-700) !important;
  transition: color var(--hsb-transition);
}

#topMain > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--hsb-primary-gradient);
  border-radius: var(--hsb-radius-full);
  transform: translateX(-50%);
  transition: width var(--hsb-transition);
}

#topMain > li > a:hover::after,
#topMain > li.active > a::after {
  width: 80%;
}

#topMain > li > a:hover,
#topMain > li.active > a {
  color: var(--hsb-primary) !important;
}

/* Dropdown menu improvements */
.dropdown-menu {
  border: none;
  border-radius: var(--hsb-radius-lg);
  box-shadow: var(--hsb-shadow-xl);
  padding: 8px;
  animation: fadeInDown 0.2s ease;
}

.dropdown-menu > li > a {
  padding: 10px 16px;
  border-radius: var(--hsb-radius-md);
  transition: all var(--hsb-transition);
}

.dropdown-menu > li > a:hover {
  background: var(--hsb-primary-light);
  color: var(--hsb-primary);
  transform: translateX(4px);
}

/* Mobile menu button */
.btn-mobile {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--hsb-dark);
  font-size: 24px;
  cursor: pointer;
  transition: color var(--hsb-transition);
}

.btn-mobile:hover {
  color: var(--hsb-primary);
}

@media (max-width: 991px) {
  .btn-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ============================================
   HERO SECTION IMPROVEMENTS
   ============================================ */

/* Hero parallax enhancement */
.parallax,
.hero-section {
  position: relative;
  overflow: hidden;
}

.parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.parallax > * {
  position: relative;
  z-index: 2;
}

/* Hero heading animation */
.parallax h1,
.hero-heading {
  animation: fadeInUp 0.8s ease;
}

.parallax h4,
.hero-subheading {
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* ============================================
   QUOTE FORM SECTION
   ============================================ */

#quote-form,
.quote-form-container {
  background: var(--hsb-white);
  border-radius: var(--hsb-radius-xl);
  box-shadow: var(--hsb-shadow-xl);
  padding: 32px;
  animation: scaleIn 0.5s ease;
}

#quote-form header,
.quote-form-container h3 {
  color: var(--hsb-dark);
  font-weight: 700;
  margin-bottom: 24px;
}

/* Price display */
.price-display {
  background: var(--hsb-primary-gradient);
  color: var(--hsb-white);
  padding: 24px;
  border-radius: var(--hsb-radius-lg);
  text-align: center;
  animation: scaleIn 0.5s ease;
}

.price-display h4,
.price-clean h4 {
  font-size: 48px !important;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.price-display h4 em,
.price-clean h4 em {
  font-size: 20px;
  font-style: normal;
  opacity: 0.9;
}

/* ============================================
   FOOTER IMPROVEMENTS
   ============================================ */

#footer {
  background: linear-gradient(180deg, #3a3a4a 0%, #1a1a2e 100%);
  color: rgba(255, 255, 255, 0.7);
}

#footer h4 {
  color: var(--hsb-white);
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

#footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--hsb-primary-gradient);
  border-radius: var(--hsb-radius-full);
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--hsb-transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--hsb-white);
  transform: translateX(4px);
}

.footer-logo {
  opacity: 0.9;
  transition: opacity var(--hsb-transition);
}

.footer-logo:hover {
  opacity: 1;
}

.copyright {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  font-size: 13px;
}

/* ============================================
   MOBILE STICKY CTA
   ============================================ */

.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: var(--hsb-white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: var(--hsb-z-fixed);
  animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.mobile-sticky-cta .btn {
  width: 100%;
  min-height: 52px;
  font-size: 18px;
}

/* Using Bootstrap 3 visible-xs/visible-sm classes instead of d-md-none */
.mobile-sticky-cta.visible-xs,
.mobile-sticky-cta.visible-sm {
  display: block;
}

@media (min-width: 992px) {
  .mobile-sticky-cta.visible-xs,
  .mobile-sticky-cta.visible-sm {
    display: none;
  }
}

@media (max-width: 991px) {
  /* Add padding to body to account for sticky CTA */
  body {
    padding-bottom: 80px;
  }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

#toTop {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--hsb-primary-gradient);
  color: var(--hsb-white);
  border-radius: var(--hsb-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--hsb-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--hsb-transition);
  z-index: var(--hsb-z-fixed);
  cursor: pointer;
}

#toTop.visible,
#toTop:not([style*="display: none"]) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#toTop:hover {
  transform: translateY(-4px);
  box-shadow: var(--hsb-shadow-xl);
}

@media (max-width: 767px) {
  #toTop {
    bottom: 90px;
    right: 16px;
  }
}

/* ============================================
   TESTIMONIALS & REVIEWS
   ============================================ */

.testimonial-card {
  background: var(--hsb-white);
  border-radius: var(--hsb-radius-lg);
  padding: 24px;
  box-shadow: var(--hsb-shadow);
  transition: all var(--hsb-transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hsb-shadow-lg);
}

.testimonial-stars {
  color: #ffc107;
  font-size: 18px;
  margin-bottom: 12px;
}

.testimonial-text {
  font-style: italic;
  color: var(--hsb-gray-700);
  margin-bottom: 16px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--hsb-dark);
}

/* ============================================
   WASTE TYPE & BIN SIZE CARDS
   ============================================ */

.waste-type-card,
.bin-size-card {
  position: relative;
  padding: 24px;
  border-radius: var(--hsb-radius-lg);
  background: var(--hsb-white);
  box-shadow: var(--hsb-shadow);
  transition: all var(--hsb-transition);
  cursor: pointer;
  overflow: hidden;
}

.waste-type-card::before,
.bin-size-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--hsb-primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--hsb-transition);
}

.waste-type-card:hover,
.bin-size-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hsb-shadow-xl);
}

.waste-type-card:hover::before,
.bin-size-card:hover::before {
  transform: scaleX(1);
}

/* Bin size selector */
.binsizes,
.wasteoptions {
  transition: all var(--hsb-transition);
}

.binsizes:hover,
.wasteoptions:hover {
  transform: scale(1.02);
  box-shadow: var(--hsb-shadow-glow);
}

.binsizes.selected,
.wasteoptions.selected {
  border-color: var(--hsb-primary) !important;
  box-shadow: 0 0 0 3px rgba(23, 155, 215, 0.2);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.toggle,
.faq-item {
  border: 1px solid var(--hsb-gray-200);
  border-radius: var(--hsb-radius-md);
  margin-bottom: 8px;
  overflow: hidden;
  transition: all var(--hsb-transition);
}

.toggle:hover,
.faq-item:hover {
  border-color: var(--hsb-primary);
}

.toggle > label,
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  background: var(--hsb-gray-100);
  transition: all var(--hsb-transition);
}

.toggle > label:hover,
.faq-question:hover {
  background: var(--hsb-primary-light);
  color: var(--hsb-primary);
}

.toggle > label i,
.faq-question::after {
  transition: transform var(--hsb-transition);
}

.toggle.active > label i,
.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.toggle-content,
.faq-answer {
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

/* ============================================
   PROCESS STEPS
   ============================================ */

.process-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.process-step {
  text-align: center;
  padding: 20px;
  animation: fadeInUp 0.5s ease backwards;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }

.process-step-number {
  width: 64px;
  height: 64px;
  border-radius: var(--hsb-radius-full);
  background: var(--hsb-primary-gradient);
  color: var(--hsb-white);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--hsb-shadow-md);
  transition: transform var(--hsb-transition);
}

.process-step:hover .process-step-number {
  transform: scale(1.1);
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */

.alert {
  border: none;
  border-radius: var(--hsb-radius-md);
  padding: 16px 20px;
  animation: slideInRight 0.3s ease;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
  color: #856404;
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
}

/* ============================================
   LOADING STATES
   ============================================ */

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--hsb-radius-md);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--hsb-z-modal);
  animation: fadeIn 0.2s ease;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--hsb-gray-200);
  border-top-color: var(--hsb-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 991px) {
  /* Stack navigation */
  .nav-main-collapse {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--hsb-white);
    box-shadow: var(--hsb-shadow-xl);
    transition: left var(--hsb-transition);
    z-index: var(--hsb-z-fixed);
    overflow-y: auto;
  }

  .nav-main-collapse.in,
  .nav-main-collapse.show {
    left: 0;
  }

  #topMain {
    flex-direction: column;
    padding: 20px;
  }

  #topMain > li {
    width: 100%;
  }

  #topMain > li > a {
    display: block;
    padding: 14px 16px;
    border-radius: var(--hsb-radius-md);
  }

  #topMain > li > a::after {
    display: none;
  }

  #topMain > li > a:hover {
    background: var(--hsb-primary-light);
  }
}

@media (max-width: 767px) {
  /* Improve touch targets */
  .form-control {
    min-height: 52px !important;
  }

  .btn {
    min-height: 52px;
    padding: 14px 24px;
  }

  /* Reduce spacing on mobile */
  section,
  .section {
    padding: 40px 0;
  }

  h1 {
    font-size: 28px !important;
  }

  h2 {
    font-size: 24px !important;
  }

  /* Card spacing */
  .card,
  .panel {
    margin-bottom: 16px;
  }

  /* Quote form mobile */
  #quote-form {
    padding: 20px;
    margin: 0 -15px;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .btn-lg {
    width: 100%;
  }

  .price-display h4,
  .price-clean h4 {
    font-size: 36px !important;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .mobile-sticky-cta,
  #toTop,
  .btn-mobile,
  #topBar,
  .social-icons,
  .no-print {
    display: none !important;
  }

  body {
    padding: 0 !important;
  }

  .card,
  .panel {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Text utilities */
.text-primary { color: var(--hsb-primary) !important; }
.text-secondary { color: var(--hsb-secondary) !important; }
.text-accent { color: var(--hsb-accent) !important; }
.text-muted { color: var(--hsb-gray-600) !important; }

/* Background utilities */
.bg-primary { background: var(--hsb-primary-gradient) !important; }
.bg-light { background: var(--hsb-gray-100) !important; }
.bg-white { background: var(--hsb-white) !important; }

/* Shadow utilities */
.shadow-sm { box-shadow: var(--hsb-shadow-sm) !important; }
.shadow { box-shadow: var(--hsb-shadow) !important; }
.shadow-md { box-shadow: var(--hsb-shadow-md) !important; }
.shadow-lg { box-shadow: var(--hsb-shadow-lg) !important; }
.shadow-xl { box-shadow: var(--hsb-shadow-xl) !important; }

/* Rounded utilities */
.rounded { border-radius: var(--hsb-radius-md) !important; }
.rounded-lg { border-radius: var(--hsb-radius-lg) !important; }
.rounded-xl { border-radius: var(--hsb-radius-xl) !important; }
.rounded-full { border-radius: var(--hsb-radius-full) !important; }

/* Transition utility */
.transition { transition: all var(--hsb-transition) !important; }

/* Hover utilities */
.hover-lift:hover { transform: translateY(-4px); }
.hover-scale:hover { transform: scale(1.02); }
.hover-glow:hover { box-shadow: var(--hsb-shadow-glow); }

/* Margin utilities (BS3 compatible) */
.margin-top-20 { margin-top: 20px !important; }
.margin-bottom-20 { margin-bottom: 20px !important; }
.margin-top-30 { margin-top: 30px !important; }
.margin-bottom-30 { margin-bottom: 30px !important; }

/* ============================================
   HOMEPAGE HERO SECTION
   ============================================ */

.hero-section {
  padding: 2rem 0 3rem;
  background: linear-gradient(180deg, var(--hsb-gray-100) 0%, var(--hsb-white) 100%);
}

.hero-header {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--hsb-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--hsb-gray-700);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* ============================================
   TRUST BAR
   ============================================ */

.trust-bar {
  background: var(--hsb-primary-gradient);
  padding: 0.75rem 0;
}

.trust-item {
  color: var(--hsb-white);
  padding: 0.75rem 1rem;
  border-radius: var(--hsb-radius-md);
  transition: all var(--hsb-transition);
  display: flex;
  align-items: center;
}

.trust-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.trust-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.trust-icon i {
  font-size: 1.25rem;
}

.trust-content strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.trust-content p {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0;
}

/* ============================================
   PROCESS STEPS (MODERN)
   ============================================ */

.process-steps-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}

.step-icon {
  width: 70px;
  height: 70px;
  background: var(--hsb-gray-100);
  border: 3px solid var(--hsb-gray-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all var(--hsb-transition);
}

.step-icon i {
  font-size: 1.75rem;
  color: var(--hsb-gray-600);
  transition: all var(--hsb-transition);
}

.step.active .step-icon {
  background: var(--hsb-primary-gradient);
  border-color: var(--hsb-primary);
  box-shadow: 0 8px 25px rgba(23, 155, 215, 0.3);
}

.step.active .step-icon i {
  color: var(--hsb-white);
}

.step-content h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--hsb-gray-800);
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--hsb-gray-600);
  margin: 0;
}

.step-connector {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--hsb-primary) 0%, var(--hsb-gray-300) 100%);
  margin-top: -2.5rem;
  border-radius: 2px;
}

/* Animate steps on scroll */
.step.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
}

.step.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease-out;
}

.step:nth-child(1).animated { transition-delay: 0s; }
.step:nth-child(3).animated { transition-delay: 0.2s; }
.step:nth-child(5).animated { transition-delay: 0.4s; }

/* ============================================
   QUOTE FORM CARD
   ============================================ */

.quote-form-card {
  background: var(--hsb-white);
  border-radius: var(--hsb-radius-xl);
  box-shadow: var(--hsb-shadow-lg);
  padding: 2rem;
  border: 1px solid var(--hsb-gray-200);
  position: relative;
  overflow: hidden;
}

.quote-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--hsb-primary-gradient);
}

.quote-form-card .form-group {
  margin-bottom: 1.25rem;
}

.quote-form-card .control-label {
  font-weight: 600;
  color: var(--hsb-gray-800);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.btn-submit-quote {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem 2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-submit-quote::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn-submit-quote:hover::after {
  left: 100%;
}

/* ============================================
   SUMMARY CARD
   ============================================ */

.summary-card {
  background: var(--hsb-white);
  border-radius: var(--hsb-radius-xl);
  box-shadow: var(--hsb-shadow-md);
  padding: 1.5rem;
  border: 1px solid var(--hsb-gray-200);
  height: 100%;
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--hsb-gray-200);
}

.summary-header i {
  font-size: 1.5rem;
  color: var(--hsb-primary);
}

.summary-header h6 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hsb-gray-800);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-content {
  text-align: center;
  color: var(--hsb-gray-700);
}

/* ============================================
   BENEFITS BAR
   ============================================ */

.benefits-bar {
  background: var(--hsb-dark);
  padding: 1rem 0;
  overflow: hidden;
}

.benefits-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--hsb-white);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: var(--hsb-radius-full);
  background: rgba(255, 255, 255, 0.05);
  transition: all var(--hsb-transition);
}

.benefit-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.benefit-item i {
  color: var(--hsb-secondary);
  font-size: 1rem;
}

@media (max-width: 767px) {
  .benefits-scroll {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }

  .benefit-item {
    flex-shrink: 0;
  }
}

/* ============================================
   WASTE TYPE CARDS
   ============================================ */

.waste-type-card {
  background: var(--hsb-white);
  border-radius: var(--hsb-radius-lg);
  box-shadow: var(--hsb-shadow);
  padding: 2rem;
  height: 100%;
  border: 1px solid var(--hsb-gray-200);
  transition: all var(--hsb-transition);
}

.waste-type-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hsb-shadow-lg);
  border-color: var(--hsb-primary);
}

.waste-type-card h3 {
  color: var(--hsb-gray-800);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.waste-type-card .theme-color {
  font-size: 1rem;
  font-weight: 600;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

#testimonials {
  background: var(--hsb-dark);
  position: relative;
}

#testimonials h2 {
  color: var(--hsb-white);
}

#testimonials .lead {
  color: var(--hsb-gray-400);
}

#testimonials hr {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Carousel improvements */
.carousel-control {
  background: none !important;
  width: 5%;
}

.carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  border: 2px solid var(--hsb-white);
  background: transparent;
  transition: all var(--hsb-transition);
}

.carousel-indicators li.active {
  background: var(--hsb-white);
}

/* ============================================
   FAQ TOGGLES
   ============================================ */

.toggle {
  border: 1px solid var(--hsb-gray-200);
  border-radius: var(--hsb-radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all var(--hsb-transition);
}

.toggle:hover {
  border-color: var(--hsb-primary);
}

.toggle label {
  display: block;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--hsb-gray-800);
  background: var(--hsb-gray-100);
  margin: 0;
  transition: all var(--hsb-transition);
}

.toggle label:hover {
  background: var(--hsb-primary-light);
  color: var(--hsb-primary);
}

.toggle-content {
  padding: 1rem 1.5rem;
  background: var(--hsb-white);
  display: none;
}

.toggle.active .toggle-content {
  display: block;
}

.toggle.active label {
  background: var(--hsb-primary);
  color: var(--hsb-white);
}

/* ============================================
   SELECTED STATE FOR BIN/WASTE SELECTORS
   ============================================ */

.binsizes,
.wasteoptions {
  cursor: pointer;
  transition: all var(--hsb-transition);
}

.binsizes.selected,
.wasteoptions.selected {
  background: var(--hsb-primary-light);
  border-color: var(--hsb-primary) !important;
  box-shadow: 0 0 0 3px rgba(23, 155, 215, 0.2);
}

/* ============================================
   PRICE CARDS
   ============================================ */

.price-clean {
  background: var(--hsb-white);
  border-radius: var(--hsb-radius-lg);
  box-shadow: var(--hsb-shadow);
  padding: 1.5rem;
  text-align: center;
  border: 2px solid var(--hsb-gray-200);
  transition: all var(--hsb-transition);
  position: relative;
}

.price-clean:hover {
  transform: translateY(-5px);
  box-shadow: var(--hsb-shadow-lg);
  border-color: var(--hsb-primary);
}

.price-clean h4 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--hsb-primary);
  margin-bottom: 1rem;
}

.price-clean h4 em {
  font-style: normal;
  font-size: 1.5rem;
}

.price-clean .ribbon {
  position: absolute;
  top: -5px;
  right: -5px;
}

.price-clean .ribbon-inner {
  background: var(--hsb-accent);
  color: var(--hsb-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--hsb-radius-sm);
  text-transform: uppercase;
}

/* ============================================
   VOLUME CALCULATOR
   ============================================ */

#volume-calculator {
  background: var(--hsb-gray-100);
}

#volume-calculator .form-group {
  margin-bottom: 1rem;
}

#volume-calculator label {
  font-weight: 600;
  color: var(--hsb-gray-700);
}

#simpleVolumeResult,
#binResult {
  margin-top: 1.5rem;
  border-radius: var(--hsb-radius-md);
  border: none;
  animation: fadeIn 0.3s ease-out;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */

.checkout-section {
  padding: 2rem 0 4rem;
  background: var(--hsb-gray-100);
}

.checkout-header {
  margin-bottom: 2rem;
}

.checkout-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--hsb-gray-800);
  margin-bottom: 0.75rem;
}

.checkout-title i {
  color: var(--hsb-primary);
  margin-right: 0.5rem;
}

.checkout-subtitle {
  font-size: 1.1rem;
  color: var(--hsb-gray-600);
}

/* Order Summary Card */
.order-summary-card {
  background: var(--hsb-white);
  border-radius: var(--hsb-radius-xl);
  box-shadow: var(--hsb-shadow-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--hsb-gray-200);
}

/* Price Display */
#left-price-display {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--hsb-secondary) !important;
}

/* Addon Items */
.addon-item {
  background: var(--hsb-white) !important;
  border: 1px solid var(--hsb-gray-200) !important;
  border-radius: var(--hsb-radius-md) !important;
  padding: 1rem !important;
  margin-bottom: 0.75rem !important;
  transition: all var(--hsb-transition);
}

.addon-item:hover {
  border-color: var(--hsb-primary) !important;
  box-shadow: var(--hsb-shadow-sm);
}

.addon-qty-selector {
  border-radius: var(--hsb-radius-sm) !important;
  border: 2px solid var(--hsb-gray-300) !important;
  font-weight: 600;
  text-align: center;
}

.addon-qty-selector:focus {
  border-color: var(--hsb-primary) !important;
  box-shadow: 0 0 0 3px rgba(23, 155, 215, 0.15) !important;
}

/* Checkout Form */
.checkout-form-card {
  background: var(--hsb-white);
  border-radius: var(--hsb-radius-xl);
  box-shadow: var(--hsb-shadow-lg);
  padding: 2rem;
}

/* Checkout Button */
.btn-checkout {
  font-size: 1.25rem !important;
  font-weight: 700;
  padding: 1rem 2rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--hsb-secondary) !important;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-checkout:hover {
  background: var(--hsb-secondary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(92, 184, 105, 0.4);
}

.btn-checkout i {
  margin-right: 0.5rem;
}

/* Order Total Display */
.toggle-content .clearfix {
  padding: 0.5rem 0;
}

.toggle-content hr {
  margin: 1rem 0;
  border-color: var(--hsb-gray-200);
}

#grand-total-display {
  font-weight: 700;
  color: var(--hsb-secondary);
}

/* Payment Icons */
.heading-title h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hsb-gray-800);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--hsb-gray-200);
}

/* Credit Card Fields */
.card-number,
.card-cvc,
.card-expiry {
  margin-bottom: 1rem;
}

/* Terms Checkbox */
.cbx-wrapper {
  margin: 1rem 0;
}

.cbx-label {
  font-size: 0.95rem;
  color: var(--hsb-gray-700);
}

.cbx-label a {
  color: var(--hsb-primary);
  font-weight: 600;
}

/* Divider styling */
.divider-center {
  text-align: center;
}

.divider-center i {
  width: 40px;
  height: 40px;
  background: var(--hsb-secondary);
  color: var(--hsb-white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Alert Info styling for details page */
.alert-info.padding-xxs {
  padding: 1rem !important;
  background: var(--hsb-primary-light);
  border: none;
  border-left: 4px solid var(--hsb-primary);
  color: var(--hsb-gray-800);
}

.alert-info.padding-xxs h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

/* Mobile improvements for checkout */
@media (max-width: 767px) {
  .checkout-section {
    padding: 1rem 0 6rem; /* Extra bottom padding for sticky CTA */
  }

  .checkout-title {
    font-size: 1.5rem;
  }

  .checkout-subtitle {
    font-size: 1rem;
  }

  .btn-checkout {
    font-size: 1.1rem !important;
    padding: 0.875rem 1.5rem !important;
  }

  .addon-item .col-xs-6 {
    padding: 0 10px;
  }

  .addon-qty-selector {
    width: 70px !important;
  }
}

/* ============================================
   COUNCIL PAGES
   ============================================ */

/* Council Content Sections */
.council-content section {
  padding: 3rem 0;
}

.council-content section:nth-child(even) {
  background: var(--hsb-gray-100);
}

.council-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--hsb-gray-800);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--hsb-primary);
  display: inline-block;
}

.council-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--hsb-gray-800);
  margin-bottom: 1rem;
}

.council-content p {
  color: var(--hsb-gray-700);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Suburb Tags */
.suburb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.suburb-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--hsb-white);
  border: 1px solid var(--hsb-gray-300);
  border-radius: var(--hsb-radius-full);
  font-size: 0.875rem;
  color: var(--hsb-gray-700);
  transition: all var(--hsb-transition);
}

.suburb-tag:hover {
  background: var(--hsb-primary-light);
  border-color: var(--hsb-primary);
  color: var(--hsb-primary);
}

/* Council Info Cards */
.council-info-card {
  background: var(--hsb-white);
  border-radius: var(--hsb-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--hsb-shadow-sm);
  border: 1px solid var(--hsb-gray-200);
  margin-bottom: 1.5rem;
  transition: all var(--hsb-transition);
}

.council-info-card:hover {
  box-shadow: var(--hsb-shadow-md);
  transform: translateY(-3px);
}

.council-info-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--hsb-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.council-info-card h4 i {
  font-size: 1.25rem;
}

/* Pricing Table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--hsb-white);
  border-radius: var(--hsb-radius-md);
  overflow: hidden;
  box-shadow: var(--hsb-shadow-sm);
}

.pricing-table th {
  background: var(--hsb-primary-gradient);
  color: var(--hsb-white);
  padding: 1rem;
  font-weight: 600;
  text-align: left;
}

.pricing-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--hsb-gray-200);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table tr:hover td {
  background: var(--hsb-primary-light);
}

/* FAQ Accordion for Council Pages */
.council-faq .faq-item {
  background: var(--hsb-white);
  border-radius: var(--hsb-radius-md);
  margin-bottom: 0.75rem;
  border: 1px solid var(--hsb-gray-200);
  overflow: hidden;
}

.council-faq .faq-question {
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--hsb-gray-800);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--hsb-transition);
}

.council-faq .faq-question:hover {
  background: var(--hsb-gray-100);
}

.council-faq .faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--hsb-primary);
  transition: transform var(--hsb-transition);
}

.council-faq .faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.council-faq .faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--hsb-gray-700);
  display: none;
}

.council-faq .faq-item.active .faq-answer {
  display: block;
}

/* Subtle pulse animation for CTA buttons */
@keyframes pulse-subtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.animate-pulse-subtle {
  animation: pulse-subtle 2s ease-in-out infinite;
}

.animate-pulse-subtle:hover {
  animation: none;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .council-content section {
    padding: 2rem 0;
  }

  .council-content h2 {
    font-size: 1.5rem;
  }

  .pricing-table {
    font-size: 0.875rem;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 0.75rem 0.5rem;
  }
}
