/* RAPID Schlüsseldienst - Custom Styles */
/* Modern gradient-based design with purple theme */

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --dark-gradient: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --warning-color: #ffc107;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --light-bg: #f8f9fa;
  --dark-text: #2c3e50;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
  --border-radius: 15px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: #ffffff;
  overflow-x: hidden;
  padding-top: 70px; /* Offset for fixed navbar */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.display-1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.display-2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.display-3 { font-size: clamp(1.75rem, 3.5vw, 3rem); }
.display-4 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.display-5 { font-size: clamp(1.25rem, 2.5vw, 2rem); }

/* Gradient Text */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons Enhancement */
.btn {
  padding: 12px 28px;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-warning {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: var(--dark-text);
}

.btn-warning:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  overflow: hidden;
}

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

.card-gradient {
  background: var(--primary-gradient);
  color: white;
}

/* Service Cards */
.service-card {
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  height: 100%;
  opacity: 0.1;
}

/* Icon Boxes */
.icon-box {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.icon-box:hover {
  transform: rotate(360deg) scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Hero Sections */
.hero-section {
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

/* Pricing Cards */
.pricing-card {
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  transform: scale(1.05);
  background: var(--primary-gradient);
  color: white;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

/* Review Cards */
.review-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.avatar-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Process Cards */
.process-card {
  transition: var(--transition);
  position: relative;
  background: white;
}

.process-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2) !important;
}

.process-number {
  transition: var(--transition);
}

.process-card:hover .process-number {
  transform: scale(1.1) rotate(360deg);
}

/* Forms */
.form-control,
.form-select {
  padding: 12px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Badges */
.badge {
  padding: 6px 12px;
  font-weight: 600;
  border-radius: 20px;
}

/* Progress Bars */
.progress {
  height: 30px;
  border-radius: 15px;
  background: #f0f0f0;
  overflow: hidden;
}

.progress-bar {
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: width 0.6s ease;
}

/* Accordions */
.accordion-button {
  font-weight: 600;
  background: white;
  transition: var(--transition);
}

.accordion-button:not(.collapsed) {
  background: var(--primary-gradient);
  color: white;
}

.accordion-button:focus {
  box-shadow: none;
}

/* Tables */
.table {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.table thead {
  background: var(--primary-gradient);
  color: white;
}

.table-hover tbody tr:hover {
  background: rgba(102, 126, 234, 0.1);
}

/* Modals */
.modal-content {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Tooltips */
.tooltip {
  font-size: 0.875rem;
}

.tooltip-inner {
  background: var(--dark-gradient);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Loading Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(102, 126, 234, 0.3);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Utility Classes */
.bg-gradient-primary {
  background: var(--primary-gradient) !important;
}

.bg-gradient-dark {
  background: var(--dark-gradient) !important;
}

.shadow-soft {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.rounded-4 {
  border-radius: calc(var(--border-radius) * 1.5) !important;
}

.hover-scale {
  transition: var(--transition);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: row !important;
  }
  
  .timeline-icon {
    left: 30px;
  }
  
  .pricing-card.featured {
    transform: none;
    margin-top: 1rem;
  }
  
  .hero-section {
    min-height: 500px;
    text-align: center;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  body {
    background: #1a1a1a;
    color: #e0e0e0;
  }
  
  .card,
  .service-card,
  .review-card,
  .timeline-content {
    background: #2a2a2a;
    color: #e0e0e0;
  }
  
  .form-control,
  .form-select {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #404040;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .fixed-call-btn,
  .btn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .container {
    width: 100%;
    max-width: none;
  }
}

/* Blog Page Specific Styles */
.article-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.widget a {
  color: #333;
  transition: color 0.3s ease;
}

.widget a:hover {
  color: #667eea;
}

.page-link {
  border: none;
  color: #667eea;
}

.page-item.active .page-link {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* Article Page Specific Styles */
.article-content p {
  color: #6c757d !important;
  line-height: 1.7;
}

.article-content ul li,
.article-content ol li {
  color: #6c757d;
  margin-bottom: 8px;
}

.toc-box a {
  color: #667eea;
  transition: color 0.3s ease;
}

.toc-box a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.article-content h2 {
  color: #2c3e50;
  padding-top: 20px;
  margin-bottom: 15px;
}

.related-card {
  transition: transform 0.3s ease;
}

.related-card:hover {
  transform: translateY(-5px);
}

.article-summary ul li {
  color: #6c757d;
}

/* Reviews Page Specific Styles */
.star-rating-input i {
  cursor: pointer;
  transition: color 0.2s ease;
}

.star-rating-input i:hover {
  color: #ffc107 !important;
}

.stat-badge {
  transition: transform 0.3s ease;
  cursor: default;
}

.stat-badge:hover {
  transform: translateY(-3px);
}

.stat-card {
  backdrop-filter: blur(10px);
}

/* Datenschutz Page Specific Styles */
.quick-nav a {
  transition: all 0.3s ease;
}

.quick-nav a:hover {
  transform: translateY(-2px);
}

.right-item {
  transition: transform 0.3s ease;
}

.right-item:hover {
  transform: translateX(5px);
}

/* Navbar Specific Styles */
.navbar {
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar-brand {
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #ffc107;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.brand-icon {
  animation: pulse 2s infinite;
}

/* Footer Specific Styles */
.footer-links a {
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #ffc107 !important;
  transform: translateX(5px);
}

.pulse-animation {
  animation: pulse 2s infinite;
}

/* District Cards */
.district-card {
  transition: all 0.3s ease;
}

.district-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
  background: rgba(255, 255, 255, 1) !important;
}

/* Emergency Cards */
.emergency-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.emergency-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Contact Form Styles */
.contact-form .form-control,
.contact-form .form-select {
  transition: all 0.3s ease;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: white !important;
  border-color: #667eea !important;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15) !important;
  outline: none;
}

.contact-form .form-control:hover,
.contact-form .form-select:hover {
  background: white !important;
  border-color: #667eea !important;
}

.contact-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Blog Card Specific */
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
}

/* Timeline Styles */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #e0e0e0;
}

/* Accordion Overrides for FAQ */
.accordion-item {
  background: white;
  border: 1px solid #dee2e6 !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.accordion-button {
  background: white;
  color: #333;
  border: none;
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.accordion-button:hover {
  background: #f8f9fa;
  color: #333;
}

.accordion-button:not(.collapsed):hover {
  background: linear-gradient(135deg, #7a8fff 0%, #8755b3 100%);
  color: white;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-body {
  background: white;
  padding: 1.25rem;
}

/* ========================================
   CUSTOM STYLES FROM INLINE - RAPID SITE
   ======================================== */

/* Additional Form Control Styles */
.form-control {
  background-color: #ffffff !important;
  color: #212529 !important;
}

.form-control:focus {
  border-color: #667eea !important;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
  background-color: #ffffff !important;
  color: #212529 !important;
}

.form-floating > label {
  color: #6c757d !important;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  opacity: 0 !important;
  visibility: hidden !important;
}

.form-floating > .form-control {
  background-color: #ffffff !important;
  padding: 0.75rem 1.25rem !important;
}

.form-floating > .form-control,
.form-floating > .form-select,
.form-floating > textarea {
  background-color: #ffffff !important;
  padding: 0.75rem 1.25rem !important;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown),
.form-floating > textarea:focus,
.form-floating > textarea:not(:placeholder-shown) {
  background-color: #ffffff !important;
}

#jq_submit:hover > div {
  opacity: 1 !important;
}

/* Additional Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 0;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

/* Fix Bootstrap row overflow on mobile */
.row {
  max-width: none !important;
}

/* Table styles */
.table th.width-40 {
  width: 40%;
}

.table th.bg-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Certificate images */
.cert-img {
  max-width: 120px;
}

/* Hero Stats */
.hero-stats {
  margin-top: 2rem;
}

.hero-stat-item {
  padding: 0.5rem;
}

.hero-stat-icon {
  font-size: 1.5rem;
}

.hero-stat-label {
  font-size: 0.75rem;
  line-height: 1.2;
}

.hero-stat-value {
  font-size: 0.9rem;
  line-height: 1.2;
}

/* Mobile Hero Stats */
@media (max-width: 576px) {
  .hero-section {
    overflow-x: hidden;
  }
  
  .hero-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 0.75rem;
    margin: 1.5rem auto 0;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-stat-item {
    padding: 0.25rem;
  }
  
  .hero-stat-icon {
    font-size: 1.25rem;
  }
  
  .hero-stat-label {
    font-size: 0.65rem;
    margin-top: 0.25rem;
  }
  
  .hero-stat-value {
    font-size: 0.75rem;
    font-weight: 600 !important;
  }
}

@media (min-width: 577px) and (max-width: 767px) {
  .hero-stat-icon {
    font-size: 1.25rem;
    margin-right: 0.5rem;
  }
  
  .hero-stat-label {
    font-size: 0.7rem;
  }
  
  .hero-stat-value {
    font-size: 0.85rem;
  }
}

@media (min-width: 768px) {
  .hero-stat-icon {
    font-size: 1.75rem;
    margin-right: 0.75rem;
  }
  
  .hero-stat-label {
    font-size: 0.85rem;
  }
  
  .hero-stat-value {
    font-size: 1rem;
  }
}

.hero-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  max-width: 400px;
}

@media (max-width: 991px) {
  .hero-box {
    max-width: 100%;
  }
}

/* Trust Indicators Bar */
.trust-bar {
  background: #ffc107;
  padding: 0.75rem 0;
}

.trust-item-icon {
  font-size: 1.5rem;
  color: #212529;
}

.trust-item-text {
  font-size: 0.85rem;
  font-weight: bold;
  color: #212529;
}

.trust-item-text-mobile {
  font-size: 0.65rem;
  line-height: 1;
  color: #212529;
}

/* Live Activity Dashboard */
.activity-dashboard {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 0.75rem 0;
}

.activity-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.75rem;
  padding: 0.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.08);
  height: 100%;
  min-height: 70px;
}

.activity-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.activity-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: #28a745;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* Service Cards */
.service-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1.5rem;
  border: 0;
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-icon {
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: inline-flex;
  margin-bottom: 1rem;
}

.service-icon-primary { background: rgba(102, 126, 234, 0.1); }
.service-icon-success { background: rgba(40, 167, 69, 0.1); }
.service-icon-warning { background: rgba(255, 193, 7, 0.1); }
.service-icon-danger { background: rgba(220, 53, 69, 0.1); }
.service-icon-info { background: rgba(23, 162, 184, 0.1); }
.service-icon-purple { background: rgba(102, 16, 242, 0.1); }

/* Process Cards */
.process-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  border-top: 4px solid;
}

.process-card-1 { border-top-color: #667eea; }
.process-card-2 { border-top-color: #ffc107; }
.process-card-3 { border-top-color: #17a2b8; }
.process-card-4 { border-top-color: #28a745; }
.process-card-5 { border-top-color: #dc3545; }
.process-card-6 { border-top-color: #6f42c1; }

.process-number {
  width: 50px;
  height: 50px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
}

.process-number-1 { background: #667eea; }
.process-number-2 { background: #ffc107; color: #212529; }
.process-number-3 { background: #17a2b8; }
.process-number-4 { background: #28a745; }
.process-number-5 { background: #dc3545; }
.process-number-6 { background: #6f42c1; }

/* Pricing Cards */
.pricing-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  height: 100%;
  position: relative;
}

.pricing-card-featured {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  border: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.price-display {
  margin: 1.5rem 0;
}

/* Contact Form */
.contact-form {
  background: white;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-input {
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s;
  background-color: #ffffff;
  color: #212529;
}

.form-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  background-color: #ffffff;
  color: #212529;
}

.form-floating > label {
  color: #6c757d;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  opacity: 0;
  visibility: hidden;
}

.urgent-checkbox {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 0.5rem;
  padding: 1rem;
}

.btn-submit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 15px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  padding: 0.75rem 2rem;
  position: relative;
  overflow: hidden;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* District Cards */
.district-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.75rem;
  padding: 0.75rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.district-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.district-card i {
  font-size: 1.25rem;
}

.district-card h6 {
  font-size: 0.85rem;
  margin: 0;
}

/* Service Areas Section */
.service-areas {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 3rem 0;
}

/* Mobile Services Table Card */
.service-table-card {
  background: white;
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
}

/* Blog Cards */
.blog-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Review Cards */
.review-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  animation: slideIn 0.5s ease-out;
}

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

/* Utility Classes */
.bg-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-dark {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.bg-gradient-light {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
}

.shadow-soft { box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.shadow-medium { box-shadow: 0 5px 15px rgba(0,0,0,0.12); }
.shadow-strong { box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

/* Comparison Cards Mobile */
.comparison-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
}

.comparison-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.75rem;
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #667eea;
}

.comparison-item {
  background: #f8f9fa;
  border-radius: 0.5rem;
  padding: 0.75rem;
  height: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-item-rapid {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.comparison-item-other {
  background: #fff;
  border: 1px solid #dee2e6;
}

.comparison-item strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #666;
}

.comparison-item small {
  font-size: 0.7rem;
  color: #666;
  line-height: 1.2;
}

/* Emergency Cards */
.emergency-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #dee2e6;
  border-radius: 1.5rem;
  padding: 1.5rem;
}

/* Achievement Card */
.achievement-card-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Background Decorations */
.bg-decoration-top {
  position: absolute;
  top: 10%;
  left: 5%;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.bg-decoration-bottom {
  position: absolute;
  bottom: 10%;
  right: 5%;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.rotate-minus-15 {
  transform: rotate(-15deg);
}

.rotate-15 {
  transform: rotate(15deg);
}

/* Activity Dashboard Text */
.activity-label {
  font-size: 0.7rem;
  line-height: 1;
}

.activity-value {
  font-size: 0.85rem;
}

.activity-icon-size {
  font-size: 1.25rem;
}

/* Table Service Headers */
.table-service-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

/* Dark Achievement Section */
.achievement-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
}

/* Max Width Container */
.max-width-800 {
  max-width: 800px;
}

/* Table Light Header */
.table-header-light {
  background: #f8f9fa;
}

/* Pricing Card Border */
.pricing-card-border {
  border: 1px solid #e0e0e0;
}

/* Text Purple */
.text-purple {
  color: #6f42c1 !important;
}

/* Dark Navbar Placeholder */
.navbar-placeholder {
  height: 70px;
  background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
}

/* Achievement Icon Size */
.achievement-icon {
  font-size: 48px;
}

/* Achievement Card Gradients */
.achievement-card-pink {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
}

.achievement-card-blue {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

.achievement-card-yellow {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  box-shadow: 0 10px 30px rgba(250, 112, 154, 0.3);
}

/* FAQ Section Background */
.faq-section {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

/* Light Gradient Background */
.bg-gradient-light-blue {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Blog Card */
.blog-card {
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.blog-badge {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 6px 12px;
}

.text-line-height {
  line-height: 1.6;
}

.link-primary {
  color: #667eea;
}

/* Table Column Width */
.table-col-40 {
  width: 40%;
}

/* Table Header Gradient */
.table-header-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Certificate Images */
.certificate-img {
  max-width: 120px;
}

/* Footer Lead Text */
.footer-lead {
  color: #b8bcc8;
}

.backdrop-blur { backdrop-filter: blur(10px); }
.bg-white-95 { background: rgba(255, 255, 255, 0.95); }
.bg-white-10 { background: rgba(255, 255, 255, 0.1); }
.bg-white-20 { background: rgba(255, 255, 255, 0.2); }

.rounded-1 { border-radius: 0.25rem; }
.rounded-2 { border-radius: 0.5rem; }
.rounded-3 { border-radius: 0.75rem; }
.rounded-4 { border-radius: 1rem; }

/* Mobile Responsive */
@media (max-width: 576px) {
  /* Fix districts alignment on mobile */
  .districts-wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .districts-grid {
    width: 100%;
  }
  
  .districts-grid .row {
    margin-left: -8px;
    margin-right: -8px;
  }
  
  .districts-grid .row > [class*='col-'] {
    padding-left: 8px;
    padding-right: 8px;
  }
  
  /* Activity Dashboard Mobile */
  .activity-dashboard {
    padding: 0.5rem 0;
  }
  
  .activity-item {
    padding: 0.5rem 0.75rem;
    min-height: 60px;
  }
  
  .activity-icon {
    width: 32px;
    height: 32px;
  }
  
  .activity-icon i {
    font-size: 1rem !important;
  }
  
  .pulse-dot {
    width: 8px;
    height: 8px;
  }
  
  .hero-section {
    padding: 60px 0;
    padding-top: 80px;
  }
  
  .contact-form {
    padding: 1rem;
    border-radius: 20px;
  }
  
  .service-card,
  .process-card,
  .pricing-card {
    padding: 0.75rem;
  }
  
  .service-icon {
    padding: 0.5rem;
  }
  
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .district-card {
    padding: 0.5rem;
    min-height: 70px;
  }
  
  .district-card h6 {
    font-size: 0.75rem;
    line-height: 1.2;
  }
  
  .district-card i {
    font-size: 1rem;
    margin-bottom: 0.25rem !important;
  }
  
  /* Fix district cards alignment on mobile */
  .districts-grid {
    padding: 0;
  }
  
  .activity-item {
    padding: 0.5rem;
  }
  
  .pulse-dot {
    width: 8px;
    height: 8px;
  }
}

@media (min-width: 768px) {
  .contact-form {
    padding: 3rem;
  }
  
  .service-card,
  .process-card,
  .pricing-card {
    padding: 1.5rem;
  }
  
  .activity-dashboard {
    padding: 1.5rem 0;
  }
  
  .activity-item {
    padding: 1rem;
  }
  
  .activity-item .text-muted {
    font-size: 0.75rem !important;
  }
  
  .activity-item .fw-bold {
    font-size: 1rem !important;
  }
  
  .activity-icon i {
    font-size: 1.5rem !important;
  }
}

/* ========================================
   ADDITIONAL MOBILE RESPONSIVE STYLES
   ======================================== */

/* Mobile-specific improvements (max-width: 576px) */
@media (max-width: 576px) {
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .display-md-3 {
    font-size: 2.5rem !important;
  }
  
  .display-md-4 {
    font-size: 2rem !important;
  }
  
  .fs-md-2 {
    font-size: 1.5rem !important;
  }
  
  .fs-md-3 {
    font-size: 1.25rem !important;
  }
  
  .fs-md-5 {
    font-size: 1rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .service-card h3,
  .process-card h4,
  .pricing-card h3 {
    font-size: 1.1rem !important;
  }
  
  .service-card p,
  .process-card p,
  .pricing-card li {
    font-size: 0.9rem !important;
  }
  
  .badge {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
  }
  
  .table {
    font-size: 0.85rem !important;
  }
  
  /* Fix overflow issues */
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .row {
    margin-left: -10px !important;
    margin-right: -10px !important;
  }
  
  .row > * {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  /* Hide background decorations on mobile */
  .position-absolute .fas.fa-key,
  .position-absolute .fas.fa-lock {
    display: none !important;
  }
  
  /* Pricing cards specific */
  .pricing-card .display-4,
  .pricing-card .display-5 {
    font-size: 2rem !important;
  }
  
  /* District cards */
  .district-card h6 {
    font-size: 0.8rem !important;
  }
}

/* Ensure cards stack properly on mobile */
@media (max-width: 575px) {
  .col-sm-6 {
    width: 100% !important;
  }
}

/* Mobile Responsive - Medium devices (max-width: 768px) */
@media (max-width: 768px) {
  .contact-form {
    border-radius: 20px !important;
  }
  
  .transform-scale {
    transform: none !important;
  }
}

/* Desktop styles (min-width: 768px) */
@media (min-width: 768px) {
  .display-md-3 {
    font-size: 3rem !important;
  }
  
  .display-md-4 {
    font-size: 3.5rem !important;
  }
  
  .fs-md-2 {
    font-size: 2rem !important;
  }
  
  .fs-md-3 {
    font-size: 1.75rem !important;
  }
  
  .fs-md-5 {
    font-size: 1.25rem !important;
  }
  
  .my-md-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .p-md-3 {
    padding: 1rem !important;
  }
  
  .p-md-4 {
    padding: 1.5rem !important;
  }
  
  .me-md-2 {
    margin-right: 0.5rem !important;
  }
  
  .me-md-3 {
    margin-right: 1rem !important;
  }
  
  .mb-md-4 {
    margin-bottom: 1.5rem !important;
  }
  
  .mb-md-5 {
    margin-bottom: 3rem !important;
  }
  
  .py-md-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  
  .py-md-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  
  .px-md-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-md-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .px-md-5 {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }
  
  .gap-md-3 {
    gap: 1rem !important;
  }
  
  .g-md-3 {
    --bs-gutter-x: 1rem !important;
    --bs-gutter-y: 1rem !important;
  }
  
  .g-md-4 {
    --bs-gutter-x: 1.5rem !important;
    --bs-gutter-y: 1.5rem !important;
  }
}