/* ========================================
   HIGH-RISK LANDING PAGES - OPTIMIZED CSS
   ======================================== */

/* ===== CSS VARIABLES & CUSTOM PROPERTIES ===== */
:root {
  /* Color Palette */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  
  /* Neutral Colors */
  --white: #ffffff;
  --light: #f8f9fa;
  --dark: #343a40;
  --muted: #6c757d;
  --border-color: #e9ecef;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-base: 0.875rem;
  --font-size-lg: 1rem;
  --font-size-xl: 1.125rem;
  --font-size-2xl: 1.25rem;
  --font-size-3xl: 1.5rem;
  --font-size-4xl: 1.875rem;
  --font-size-5xl: 3rem;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-cookie-consent: 1080;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--dark);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800;
  line-height: 1.1;
}

.display-3 {
  font-size: var(--font-size-5xl);
}

.display-5 {
  font-size: var(--font-size-4xl);
}

.lead {
  font-size: var(--font-size-lg);
  font-weight: 400;
  line-height: 1.7;
}

.text-muted {
  color: var(--muted) !important;
}

.text-white {
  color: var(--white) !important;
}

.text-dark {
  color: var(--dark) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-success {
  color: var(--success-color) !important;
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Bootstrap Grid - Let Bootstrap handle it natively */
/* Removed custom overrides that were breaking the grid system */

/* ===== SPACING UTILITIES ===== */
.py-5 {
  padding-top: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
}

.py-lg-6 {
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
}

.mb-3 { margin-bottom: var(--spacing-md) !important; }
.mb-4 { margin-bottom: var(--spacing-lg) !important; }
.mb-5 { margin-bottom: var(--spacing-2xl) !important; }

.g-4 { gap: var(--spacing-md) !important; }
.g-5 { gap: var(--spacing-lg) !important; }

.h-100 { height: 100% !important; }

/* ===== NAVIGATION ===== */
.navbar {
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
  font-weight: 700;
  font-size: var(--font-size-2xl);
  color: var(--primary-color) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md) !important;
  color: var(--dark) !important;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 80%;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: var(--spacing-3xl) 0 var(--spacing-2xl);
  min-height: 100vh;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-section h1 {
  color: var(--white);
  margin-bottom: var(--spacing-lg);
  font-weight: 800;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-2xl);
}

/* ===== COMPLIANCE BADGES ===== */
.compliance-badge {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
  height: 100%;
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.compliance-badge:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.badge-icon {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-3xl);
}

.compliance-badge span {
  color: var(--white);
  font-weight: 600;
  font-size: var(--font-size-base);
}

/* ===== SERVICE CARDS ===== */
.service-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  margin: var(--spacing-md) 0;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  flex-shrink: 0;
}

.service-card h3 {
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--dark);
  flex-shrink: 0;
}

.service-card p {
  color: var(--muted);
  margin-bottom: var(--spacing-lg);
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.service-card .btn {
  margin-top: auto;
  flex-shrink: 0;
  align-self: center;
}

/* ===== COMPLIANCE INFO CARDS ===== */
.compliance-info-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  margin: var(--spacing-md) 0;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.compliance-list {
  list-style: none;
}

.compliance-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm) 0;
}

.compliance-item i {
  color: var(--success-color);
  margin-right: var(--spacing-md);
  font-size: var(--font-size-lg);
}

.compliance-item span {
  color: var(--dark);
  font-weight: 500;
}

/* ===== CONTACT CARDS ===== */
.contact-info-card, .contact-form-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  margin: var(--spacing-md) 0;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.contact-details .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
}

.contact-details .contact-item i {
  color: var(--primary-color);
  margin-right: var(--spacing-md);
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-lg);
}

.contact-details .contact-item div {
  flex: 1;
}

.contact-details .contact-item strong {
  color: var(--dark);
  font-weight: 600;
}

.contact-details .contact-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-details .contact-item a:hover {
  color: var(--primary-dark);
}

/* ===== FORMS ===== */
.form-control {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-size-base);
  background: var(--white);
  width: 100%;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control-lg {
  padding: var(--spacing-lg) var(--spacing-xl);
  font-size: var(--font-size-lg);
}

.form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--spacing-sm);
  display: block;
  font-size: var(--font-size-base);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  margin: var(--spacing-sm);
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  text-align: center;
  line-height: 1.5;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: var(--font-size-lg);
}

.btn-sm {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-base);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer h3, .footer h4 {
  color: var(--white);
  margin-bottom: var(--spacing-lg);
  font-weight: 600;
  font-size: var(--font-size-lg);
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  padding: var(--spacing-sm) 0;
  display: block;
  font-size: var(--font-size-base);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--white);
}

.social-links a {
  display: inline-block;
  margin-right: var(--spacing-md);
  transition: all var(--transition-normal);
}

.social-links a:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

/* ===== MODERN PRICING CARDS ===== */
#pricing {
  padding: 60px 0;
  background: #f8f9fa;
  min-height: auto;
  overflow: visible;
  width: 100%;
}

#pricing-container {
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
}

/* Pastikan Bootstrap grid bekerja dengan benar */
#pricing-container.row {
  display: flex !important;
  flex-wrap: wrap;
  margin-left: 0;
  margin-right: 0;
}

/* Pastikan columns Bootstrap bekerja */
#pricing-container .col-lg-4 {
  flex: 0 0 auto;
  width: 33.33333333%;
  display: flex;
  flex-direction: column;
}

#pricing-container .col-md-6 {
  flex: 0 0 auto;
  width: 50%;
  display: flex;
  flex-direction: column;
}

#pricing-container .col-sm-12 {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

#pricing-container > * {
  padding-left: 0;
  padding-right: 0;
}

.pricing-card-modern {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  border: 2px solid #e9ecef;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 600px;
}

.pricing-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 24px 24px 0 0;
}

.pricing-card-modern:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 16px 48px rgba(102, 126, 234, 0.15);
  border-color: #667eea;
}

.pricing-card-modern:hover::before {
  opacity: 1;
}

.pricing-card-modern.featured {
  border: 3px solid #667eea;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25), 0 8px 40px rgba(102, 126, 234, 0.15);
  transform: scale(1.05);
  z-index: 2;
}

.pricing-card-modern.featured::before {
  opacity: 1;
  height: 6px;
}

.pricing-card-modern.featured:hover {
  transform: scale(1.05) translateY(-12px);
  box-shadow: 0 12px 48px rgba(102, 126, 234, 0.3), 0 20px 64px rgba(102, 126, 234, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  z-index: 20;
  transform: translateY(0);
}

.pricing-badge .badge-text {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1a1a1a;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.savings-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 11px;
  font-weight: 700;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.savings-badge i {
  font-size: 10px;
  margin-right: 4px;
}

.pricing-card-header {
  padding: 50px 30px 30px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-radius: 24px 24px 0 0;
  position: relative;
}

.pricing-card-title {
  font-size: 26px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 24px 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.price-currency {
  font-size: 32px;
  font-weight: 700;
  color: #667eea;
  line-height: 1;
}

.price-amount {
  font-size: 64px;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1;
  letter-spacing: -2px;
}

.price-period {
  font-size: 20px;
  font-weight: 600;
  color: #6c757d;
  margin-left: 4px;
}

.pricing-card-description {
  font-size: 14px;
  line-height: 1.7;
  color: #6c757d;
  margin: 0;
  min-height: 70px;
  max-height: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pricing-card-body {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 auto 0;
  text-align: left;
  flex: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.pricing-feature-item:last-child {
  border-bottom: none;
}

.pricing-feature-item i {
  color: #28a745;
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(40, 167, 69, 0.2));
}

.pricing-feature-item span {
  flex: 1;
  font-weight: 500;
}

.pricing-card-footer {
  padding: 0 30px 30px;
  margin-top: auto;
}

.pricing-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
  border: none;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.pricing-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.45);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  color: white;
}

.pricing-btn:active {
  transform: translateY(-1px);
}

.pricing-btn i {
  font-size: 15px;
  margin-right: 8px;
}

/* Responsive Design - Desktop First */
/* Desktop (default) - 3 columns menggunakan Bootstrap grid */
@media (min-width: 992px) {
  #pricing-container .col-lg-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
    display: flex;
    flex-direction: column;
  }
  
  .pricing-card-modern {
    min-height: 650px;
  }
}

@media (max-width: 1200px) {
  .pricing-card-modern {
    min-height: 620px;
  }
}

/* Tablet */
@media (max-width: 991.98px) {
  #pricing {
    padding: 50px 0;
  }
  
  #pricing-container .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
    display: flex;
    flex-direction: column;
  }
  
  .pricing-card-modern {
    min-height: auto;
  }
  
  .pricing-card-modern.featured {
    transform: scale(1);
  }
  
  .pricing-card-modern.featured:hover {
    transform: translateY(-10px) scale(1.01);
  }
  
  .price-amount {
    font-size: 56px;
  }
  
  .pricing-card-header {
    padding: 40px 25px 25px;
  }
  
  .pricing-card-body {
    padding: 25px;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  #pricing {
    padding: 40px 0;
  }
  
  #pricing-container {
    padding: 0 15px;
  }
  
  #pricing-container .col-sm-12,
  #pricing-container .col-lg-4,
  #pricing-container .col-md-6 {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
  }
  
  .pricing-card-modern {
    min-height: auto;
    margin-bottom: 0;
  }
  
  .pricing-card-modern.featured {
    transform: scale(1);
  }
  
  .pricing-card-modern.featured:hover {
    transform: translateY(-8px) scale(1.01);
  }
  
  .price-amount {
    font-size: 52px;
  }
  
  .price-currency {
    font-size: 28px;
  }
  
  .price-period {
    font-size: 18px;
  }
  
  .pricing-card-title {
    font-size: 24px;
  }
  
  .pricing-card-header {
    padding: 40px 20px 20px;
  }
  
  .pricing-card-body {
    padding: 20px;
  }
  
  .pricing-card-footer {
    padding: 0 20px 20px;
  }
  
  .pricing-feature-item {
    font-size: 14px;
    padding: 12px 0;
  }
  
  .pricing-badge {
    top: -10px;
    right: 15px;
  }
  
  .savings-badge {
    top: -10px;
    left: 15px;
  }
}

@media (max-width: 576px) {
  #pricing {
    padding: 30px 0;
  }
  
  #pricing-container {
    padding: 0 5px;
    gap: 24px;
  }
  
  .pricing-card-modern {
    border-radius: 20px;
    min-height: auto;
  }
  
  .pricing-card-header {
    padding: 35px 15px 20px;
    border-radius: 20px 20px 0 0;
  }
  
  .price-amount {
    font-size: 48px;
  }
  
  .pricing-card-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
  
  .pricing-card-body {
    padding: 20px 15px;
  }
  
  .pricing-card-footer {
    padding: 0 15px 20px;
  }
  
  .pricing-btn {
    padding: 16px 24px;
    font-size: 16px;
  }
}

/* ===== COOKIE CONSENT POPUP ===== */
.cookie-consent-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.cookie-consent-popup:not(.hidden) {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cookie-consent-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-consent-modal {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 550px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(102, 126, 234, 0.3);
  z-index: 1;
}

.cookie-consent-popup:not(.hidden) .cookie-consent-modal {
  transform: scale(1) translateY(0);
}

.cookie-consent-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 25px 30px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-icon {
  flex-shrink: 0;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  animation: cookiePulse 2s ease-in-out infinite;
}

@keyframes cookiePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.7);
  }
}

.cookie-consent-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  letter-spacing: 0.3px;
  flex: 1;
}

.cookie-consent-body {
  padding: 25px 30px;
}

.cookie-consent-message {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

.cookie-link {
  color: #667eea;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.cookie-link:hover {
  color: #764ba2;
}

.cookie-consent-footer {
  display: flex;
  gap: 12px;
  padding: 20px 30px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.cookie-btn:active {
  transform: translateY(0);
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  order: 3;
}

.cookie-btn-accept:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  color: white;
}

.cookie-btn-essential {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  order: 1;
}

.cookie-btn-essential:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.cookie-btn-learn {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  order: 2;
}

.cookie-btn-learn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive Design for Cookie Consent Popup */
@media (max-width: 768px) {
  .cookie-consent-modal {
    width: 95%;
    max-width: none;
    border-radius: 16px;
  }
  
  .cookie-consent-header {
    padding: 20px 20px 15px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .cookie-consent-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  .cookie-consent-title {
    font-size: 20px;
  }
  
  .cookie-consent-body {
    padding: 20px;
  }
  
  .cookie-consent-message {
    font-size: 14px;
  }
  
  .cookie-consent-footer {
    padding: 15px 20px 20px;
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
    padding: 14px 20px;
  }
  
  .cookie-btn-accept {
    order: 1;
  }
  
  .cookie-btn-essential {
    order: 2;
  }
  
  .cookie-btn-learn {
    order: 3;
  }
}

@media (max-width: 576px) {
  .cookie-consent-modal {
    width: 100%;
    border-radius: 0;
    max-height: 100vh;
    height: 100%;
  }
  
  .cookie-consent-header {
    padding: 18px 18px 12px;
  }
  
  .cookie-consent-icon {
    width: 45px;
    height: 45px;
    font-size: 22px;
  }
  
  .cookie-consent-title {
    font-size: 18px;
  }
  
  .cookie-consent-body {
    padding: 18px;
  }
  
  .cookie-consent-message {
    font-size: 13px;
  }
  
  .cookie-consent-footer {
    padding: 12px 18px 18px;
  }
}

/* ===== UTILITY CLASSES ===== */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.bg-white {
  background-color: var(--white);
}

.bg-light {
  background-color: var(--light);
}

.bg-dark {
  background-color: var(--dark);
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.position-fixed {
  position: fixed;
}

.overflow-hidden {
  overflow: hidden;
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* ===== ANIMATIONS & TRANSITIONS ===== */
[data-aos] {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  .hero-section h1 {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  
  .hero-section .lead {
    font-size: clamp(0.875rem, 2vw, 1rem);
  }
  
  .py-lg-6 {
    padding: var(--spacing-2xl) 0;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
    padding: 0 var(--spacing-sm);
  }
  
  .hero-section h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  }
  
  .hero-section .lead {
    font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
  }
  
  .hero-section {
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
  }
  
  section {
    padding: var(--spacing-2xl) 0;
  }
  
  .service-card, .compliance-info-card, .contact-info-card, .contact-form-card {
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
  }
  
  .btn {
    width: 100%;
    margin: var(--spacing-sm) 0;
    text-align: center;
  }
  
  .py-lg-6 {
    padding: var(--spacing-xl) 0;
  }
  
  .row {
    margin: 0 calc(-1 * var(--spacing-sm));
  }
  
  .col, .col-lg-8, .col-md-10, .col-lg-6, .col-lg-4, .col-md-6 {
    padding: 0 var(--spacing-sm);
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .hero-section h1 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
  }
  
  .hero-section {
    padding: var(--spacing-xl) 0 var(--spacing-md);
  }
  
  section {
    padding: var(--spacing-xl) 0;
  }
  
  .service-card, .compliance-info-card, .contact-info-card, .contact-form-card {
    padding: var(--spacing-lg);
  }
  
  .py-lg-6 {
    padding: var(--spacing-lg) 0;
  }
  
  .row {
    margin: 0 calc(-1 * var(--spacing-xs));
  }
  
  .col, .col-lg-8, .col-md-10, .col-lg-6, .col-lg-4, .col-md-6 {
    padding: 0 var(--spacing-xs);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .footer,
  .cookie-consent,
  .btn {
    display: none !important;
  }
  
  .hero-section {
    background: var(--white) !important;
    color: var(--dark) !important;
    min-height: auto !important;
    padding: var(--spacing-lg) 0 !important;
  }
  
  .hero-section h1,
  .hero-section .lead {
    color: var(--dark) !important;
  }
  
  .compliance-badge {
    background: var(--light) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--dark) !important;
  }
  
  .compliance-badge span {
    color: var(--dark) !important;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for better accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --primary-dark: #000060;
    --border-color: #000000;
    --muted: #404040;
  }
  
  .btn-primary {
    background: var(--dark);
    color: var(--white);
    border: 2px solid var(--dark);
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
/* Use hardware acceleration for animations */
.service-card,
.compliance-badge,
.btn,
.navbar {
  will-change: transform;
  transform: translateZ(0);
}

/* Optimize paint operations */
.hero-section,
.service-card,
.compliance-info-card {
  contain: layout style paint;
}

/* ===== BROWSER SUPPORT FALLBACKS ===== */
@supports not (backdrop-filter: blur(10px)) {
  .navbar {
    background-color: var(--white) !important;
  }
  
  .compliance-badge {
    background: rgba(255, 255, 255, 0.9);
  }
}

@supports not (gap: 1rem) {
  .g-4 > * + * {
    margin-left: var(--spacing-md);
  }
  
  .g-5 > * + * {
    margin-left: var(--spacing-lg);
  }
}

