/*
Theme Name: ProgrammeurOnline Theme
Description: Custom WordPress theme for ProgrammeurOnline.nl - Programming problem solving service
Author: ProgrammeurOnline.nl
Version: 1.0
Text Domain: programmeuronline
*/

/* ===== CSS VARIABLES ===== */
:root {
  /* Color Scheme */
  --primary-blue: #2563eb;
  --primary-blue-dark: #1d4ed8;
  --primary-blue-light: #3b82f6;
  --secondary-white: #ffffff;
  --accent-orange: #f97316;
  --accent-orange-dark: #ea580c;
  --accent-orange-light: #fb923c;
  
  /* Grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Typography */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 4rem 0;
  --section-padding-mobile: 2rem 0;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* ===== RESET & BASE STYLES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--secondary-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
}

h3 {
  font-size: 1.875rem;
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

h6 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  line-height: 1.7;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-blue-dark);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px; /* Touch-friendly */
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: var(--secondary-white);
  border-color: var(--accent-orange);
}

.btn-primary:hover {
  background-color: var(--accent-orange-dark);
  border-color: var(--accent-orange-dark);
  color: var(--secondary-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: var(--secondary-white);
}

/* Secondary button on blue background */
.section-bg-blue .btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--secondary-white);
  border-color: var(--secondary-white);
}

.section-bg-blue .btn-secondary:hover {
  background-color: var(--secondary-white);
  color: var(--primary-blue);
  border-color: var(--secondary-white);
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.btn-block {
  width: 100%;
  display: block;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: var(--section-padding);
}

.section-bg-gray {
  background-color: var(--gray-50);
}

.section-bg-blue {
  background-color: var(--primary-blue);
  color: var(--secondary-white);
}

.section-bg-blue h1,
.section-bg-blue h2,
.section-bg-blue h3,
.section-bg-blue h4,
.section-bg-blue h5,
.section-bg-blue h6 {
  color: var(--secondary-white);
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  :root {
    --section-padding: var(--section-padding-mobile);
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
  }
  
  .container {
    padding: 0 0.75rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* ===== WORDPRESS SPECIFIC ===== */
.alignleft {
  float: left;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin: 0 auto 1rem;
}

.wp-caption {
  max-width: 100%;
  margin-bottom: 1rem;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--gray-600);
  text-align: center;
  margin-top: 0.5rem;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

/* ===== COMPONENT STYLES ===== */

/* Logo Styles */
.navbar-brand img {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
}

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

/* Responsive logo sizing */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 35px;
  }
}

@media (max-width: 480px) {
  .navbar-brand img {
    height: 30px;
  }
}

/* Hero Section */
.min-vh-75 {
  min-height: 75vh;
}

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

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

/* Step Numbers */
.step-number {
  font-size: 1.5rem;
  width: 60px;
  height: 60px;
  margin: 0 auto;
}

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

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

/* FAQ Styles */
.faq-question {
  color: var(--gray-800);
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  width: 100%;
}

.faq-question:hover {
  color: var(--primary-blue);
}

.faq-icon {
  transition: transform 0.3s ease;
  display: inline-block;
}

.faq-icon.rotated {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.faq-answer {
  border-top: 1px solid var(--gray-200);
}

/* Form Styles */
.form-control {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
}

.form-check-input:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.form-check-label {
  margin-left: 0.5rem;
}

.invalid-feedback {
  font-size: 0.875rem;
  color: #dc3545;
  margin-top: 0.25rem;
}

/* File Upload */
.file-upload {
  position: relative;
}

.file-upload::-webkit-file-upload-button {
  background-color: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.file-upload::-webkit-file-upload-button:hover {
  background-color: var(--gray-200);
}

/* Price Calculator */
#total-price {
  color: var(--primary-blue);
  font-weight: 700;
}

#savings {
  font-weight: 600;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

/* Back to Top Button */
#back-to-top {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  border: none;
  background-color: var(--accent-orange);
  color: var(--secondary-white);
  font-size: 1.2rem;
  z-index: 1000;
  position: fixed;
  bottom: 20px;
  right: 20px;
}

/* CSS Arrow for Back to Top Button */
#back-to-top::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid var(--secondary-white);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#back-to-top {
  position: relative;
}

#back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background-color: var(--accent-orange-dark);
  color: var(--secondary-white);
}

#back-to-top:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
}

/* Loading States */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Alert Styles */
.alert {
  border: none;
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background-color: #d1f2eb;
  color: #0f5132;
  border-left: 4px solid #198754;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.alert-warning {
  background-color: #fff3cd;
  color: #664d03;
  border-left: 4px solid #ffc107;
}

/* Lazy Loading */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img.lazy.loaded {
  opacity: 1;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .hero-image {
    margin-top: 2rem;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .faq-question {
    font-size: 1rem;
  }
  
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  #back-to-top {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .btn-large {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image,
  .card,
  .btn {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
  /* Dark mode styles can be added here in the future */
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-image {
    animation: none;
  }
}

/* Content Page Specific Styles */
.page-template-page-content .entry-content h1,
.page-template-page-content .entry-content h2,
.page-template-page-content .entry-content h3,
.page-template-page-content .entry-content h4,
.page-template-page-content .entry-content h5,
.page-template-page-content .entry-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-template-page-content .entry-content h1:first-child,
.page-template-page-content .entry-content h2:first-child,
.page-template-page-content .entry-content h3:first-child {
  margin-top: 0;
}

.page-template-page-content .entry-content p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.page-template-page-content .entry-content ul,
.page-template-page-content .entry-content ol {
  margin-bottom: 1.25rem;
  padding-left: 2rem;
}

.page-template-page-content .entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.page-template-page-content .entry-content blockquote {
  border-left: 4px solid var(--primary-blue);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--gray-600);
}

.page-template-page-content .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.page-template-page-content .entry-content th,
.page-template-page-content .entry-content td {
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  text-align: left;
}

.page-template-page-content .entry-content th {
  background-color: var(--gray-50);
  font-weight: 600;
}

/* Breadcrumb Styling */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--gray-400);
  margin: 0 0.5rem;
}

.breadcrumb-item a {
  color: var(--primary-blue);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--primary-blue-dark);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--gray-600);
}

/* Print Optimizations */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  .btn {
    border: 1px solid black;
    background: white !important;
    color: black !important;
  }
  
  .section-bg-blue,
  .section-bg-gray {
    background: white !important;
  }
  
  .navbar,
  #back-to-top,
  .alert,
  .d-print-none {
    display: none !important;
  }
  
  .container {
    max-width: none !important;
    padding: 0 !important;
  }
  
  .breadcrumb {
    display: none !important;
  }
  
  .card {
    border: none !important;
    box-shadow: none !important;
  }
  
  .page-template-page-content .entry-header {
    border-bottom: 2px solid #000;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
  }
}

/* ===== HOVER EFFECTS ===== */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04) !important;
}

.hover-lift:hover .card-body {
  background-color: var(--gray-50);
}

/* ===== COOKIE BANNER STYLES ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  color: var(--secondary-white);
  padding: 1.5rem 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.cookie-banner-visible {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text h3 {
  color: var(--secondary-white);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-banner-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  white-space: nowrap;
}

.cookie-banner .btn-outline-secondary {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--secondary-white);
}

.cookie-banner .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--secondary-white);
}

.cookie-banner .btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: transparent;
  color: var(--secondary-white);
}

.cookie-banner .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  color: var(--secondary-white);
}

/* Cookie button styles */
.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  background: none;
}

.cookie-btn-settings {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--secondary-white);
}

.cookie-btn-settings:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--secondary-white);
}

.cookie-btn-essential {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: transparent;
  color: var(--secondary-white);
}

.cookie-btn-essential:hover {
  background-color: rgba(255, 255, 255, 0.25);
  color: var(--secondary-white);
}

.cookie-btn-accept {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: var(--secondary-white);
}

.cookie-btn-accept:hover {
  background-color: var(--accent-orange-dark);
  border-color: var(--accent-orange-dark);
  color: var(--secondary-white);
}

.cookie-btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--secondary-white);
}

.cookie-btn-primary:hover {
  background-color: var(--primary-blue-dark);
  border-color: var(--primary-blue-dark);
  color: var(--secondary-white);
}

.cookie-btn-secondary {
  background-color: transparent;
  border-color: var(--gray-300);
  color: var(--gray-700);
}

.cookie-btn-secondary:hover {
  background-color: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-800);
}

/* Cookie Modal Styles */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-modal-visible {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.cookie-modal-content {
  position: relative;
  background: var(--secondary-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cookie-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-modal-header h2 {
  color: var(--gray-900);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
}

.cookie-modal-close:hover {
  color: var(--gray-600);
}

.cookie-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.cookie-categories {
  margin-top: 1.5rem;
}

.cookie-category {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background-color: var(--gray-50);
}

.cookie-category:last-child {
  margin-bottom: 0;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.cookie-toggle input[type="checkbox"] {
  width: 3rem;
  height: 1.5rem;
  border-radius: 1rem;
  background-color: var(--gray-300);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
}

.cookie-toggle input[type="checkbox"]:checked {
  background-color: var(--primary-blue);
}

.cookie-toggle input[type="checkbox"]:disabled {
  background-color: var(--gray-400);
  cursor: not-allowed;
}

.cookie-toggle input[type="checkbox"]::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.25rem;
  height: 1.25rem;
  background-color: var(--secondary-white);
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cookie-toggle input[type="checkbox"]:checked::before {
  transform: translateX(1.5rem);
}

.cookie-toggle-slider {
  display: none; /* Hidden as we use the checkbox styling directly */
}

.cookie-category-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
}

.cookie-toggle input[type="checkbox"]:disabled + .cookie-toggle-slider + .cookie-category-name {
  color: var(--gray-500);
  cursor: not-allowed;
}

.cookie-category-description {
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.cookie-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  background-color: var(--gray-50);
}

.cookie-modal-open {
  overflow: hidden;
}

/* Cookie Preferences Modal */
.cookie-preferences-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-preferences-modal.show {
  opacity: 1;
  visibility: visible;
}

.cookie-preferences-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.cookie-preferences-content {
  position: relative;
  background: var(--secondary-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cookie-preferences-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-preferences-header h3 {
  color: var(--gray-900);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
}

.btn-close:hover {
  color: var(--gray-600);
}

.cookie-preferences-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.cookie-category {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background-color: var(--gray-50);
}

.cookie-category:last-child {
  margin-bottom: 0;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cookie-category-header h4 {
  color: var(--gray-900);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0;
}

.form-check.form-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check-input {
  width: 3rem;
  height: 1.5rem;
  border-radius: 1rem;
  background-color: var(--gray-300);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}

.form-check-input:checked {
  background-color: var(--primary-blue);
}

.form-check-input:disabled {
  background-color: var(--gray-400);
  cursor: not-allowed;
}

.form-check-input::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.25rem;
  height: 1.25rem;
  background-color: var(--secondary-white);
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-check-input:checked::before {
  transform: translateX(1.5rem);
}

.form-check-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
}

.form-check-input:disabled + .form-check-label {
  color: var(--gray-500);
  cursor: not-allowed;
}

.cookie-category-description {
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.cookie-preferences-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  background-color: var(--gray-50);
}

/* Cookie Notification */
.cookie-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: var(--secondary-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 400px;
}

.cookie-notification.show {
  transform: translateX(0);
}

.cookie-notification-content {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-notification-content span {
  font-size: 0.875rem;
  line-height: 1.4;
}

.btn-close-white {
  color: rgba(255, 255, 255, 0.8);
}

.btn-close-white:hover {
  color: var(--secondary-white);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  
  .cookie-banner-text {
    text-align: center;
  }
  
  .cookie-banner-text h3 {
    font-size: 1.125rem;
    justify-content: center;
  }
  
  .cookie-banner-text p {
    font-size: 0.875rem;
  }
  
  .cookie-banner-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .cookie-banner .btn {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-preferences-content {
    width: 95%;
    margin: 1rem;
  }
  
  .cookie-preferences-header {
    padding: 1rem 1.5rem;
  }
  
  .cookie-preferences-body {
    padding: 1.5rem;
  }
  
  .cookie-category {
    padding: 1rem;
  }
  
  .cookie-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .cookie-preferences-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .cookie-preferences-footer .btn {
    width: 100%;
  }
  
  .cookie-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 1rem 0;
  }
  
  .cookie-banner-text h3 {
    font-size: 1rem;
  }
  
  .cookie-banner-text p {
    font-size: 0.8rem;
  }
  
  .cookie-banner .btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
  
  .cookie-preferences-header h3 {
    font-size: 1.25rem;
  }
  
  .cookie-category-header h4 {
    font-size: 1rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cookie-banner {
    background: #000000;
    border-top: 2px solid #ffffff;
  }
  
  .cookie-preferences-content {
    border: 2px solid #000000;
  }
  
  .cookie-category {
    border: 2px solid #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner,
  .cookie-preferences-modal,
  .cookie-notification,
  .form-check-input,
  .form-check-input::before {
    transition: none;
  }
}

/* Focus styles for accessibility */
.cookie-banner .btn:focus,
.cookie-preferences-modal .btn:focus,
.form-check-input:focus,
.btn-close:focus {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .cookie-banner,
  .cookie-preferences-modal,
  .cookie-notification {
    display: none !important;
  }
  
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  .btn {
    border: 1px solid black;
  }
}
