/*
 * =============================================================================
 * COOKIES.CSS
 * Phase 3a: cookie-banner + form-security → cookies.css
 * =============================================================================
 * 
 * Consolidated CSS for cookie and security features:
 * - DSGVO-compliant cookie banner with modern styling
 * - Form security validation and visual feedback
 * 
 * Created: October 2025
 * Total lines consolidated: ~1152 lines from 2 files
 */

/* =============================================================================
   SECTION 1: COOKIE BANNER
   ============================================================================= */

/**
 * DSGVO-konformer Cookie Banner CSS für Challendo
 * ===============================================
 * 
 * Moderne, barrierefreie Styling für Cookie Consent Banner
 * mit Responsive Design und Accessibility-Features.
 * 
 * Features:
 * - Mobile-First Responsive Design
 * - High Contrast & Reduced Motion Support
 * - Keyboard Navigation Styling
 * - Smooth Animations & Transitions
 * - Visual Focus Indicators
 * - WCAG 2.1 AA Compliance
 * 
 * Author: Claude Code Assistant
 * Created: September 2025
 */

/* CSS VARIABLES & DESIGN TOKENS */
:root {
  /* Cookie Banner Colors */
  --cookie-primary: #0ea5e9;
  --cookie-primary-hover: #0284c7;
  --cookie-secondary: #64748b;
  --cookie-success: #059669;
  --cookie-success-hover: #047857;
  --cookie-danger: #dc2626;
  --cookie-text: #1e293b;
  --cookie-text-muted: #64748b;
  --cookie-bg: rgba(255, 255, 255, 0.98);
  --cookie-bg-modal: rgba(0, 0, 0, 0.5);
  
  /* Spacing & Layout */
  --cookie-spacing-xs: 0.25rem;
  --cookie-spacing-sm: 0.5rem;
  --cookie-spacing-md: 1rem;
  --cookie-spacing-lg: 1.5rem;
  --cookie-spacing-xl: 2rem;
  
  /* Border Radius */
  --cookie-radius-sm: 0.375rem;
  --cookie-radius-md: 0.5rem;
  --cookie-radius-lg: 0.75rem;
  --cookie-radius-xl: 1rem;
  
  /* Shadows */
  --cookie-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --cookie-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --cookie-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --cookie-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  
  /* Z-Index */
  --cookie-z-banner: 9999;
  --cookie-z-modal: 10000;
  --cookie-z-notification: 10001;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--cookie-bg);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.1);
  padding: var(--cookie-spacing-lg);
  z-index: var(--cookie-z-banner);
  transition: transform 0.3s ease-out;
}

.cookie-banner.banner-hidden {
  transform: translateY(100%);
}

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

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

.cookie-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: var(--cookie-spacing-lg);
}

/* Desktop Layout */
@media (min-width: 768px) {
  .cookie-banner__content {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--cookie-spacing-xl);
  }
}

/* BANNER INFO SECTION */
.cookie-banner__info h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cookie-text);
  margin: 0 0 var(--cookie-spacing-sm) 0;
  display: flex;
  align-items: center;
  gap: var(--cookie-spacing-sm);
}

.cookie-banner__info p {
  font-size: 0.95rem;
  color: var(--cookie-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* SIMPLIFIED BANNER ACTIONS */
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cookie-spacing-md);
  justify-content: center;
  margin-top: var(--cookie-spacing-lg);
}

@media (min-width: 640px) {
  .cookie-banner__actions {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .cookie-banner__actions {
    flex-direction: column;
    gap: var(--cookie-spacing-sm);
  }
  
  .cookie-banner__actions .btn-cookie {
    width: 100%;
    justify-content: center;
  }
}

/* BUTTONS */
.btn-cookie {
  padding: var(--cookie-spacing-md) var(--cookie-spacing-lg);
  border-radius: var(--cookie-radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  position: relative;
  overflow: hidden;
}

.btn-cookie:focus {
  outline: 2px solid var(--cookie-primary);
  outline-offset: 2px;
}

/* Primary Button */
.btn-cookie--primary {
  background: linear-gradient(135deg, var(--cookie-primary), var(--cookie-primary-hover));
  color: white;
  box-shadow: var(--cookie-shadow-md);
}

.btn-cookie--primary:hover {
  background: linear-gradient(135deg, var(--cookie-primary-hover), #0369a1);
  transform: translateY(-1px);
  box-shadow: var(--cookie-shadow-lg);
}

/* Success Button */
.btn-cookie--success {
  background: linear-gradient(135deg, var(--cookie-success), var(--cookie-success-hover));
  color: white;
  box-shadow: var(--cookie-shadow-md);
}

.btn-cookie--success:hover {
  background: linear-gradient(135deg, var(--cookie-success-hover), #065f46);
  transform: translateY(-1px);
  box-shadow: var(--cookie-shadow-lg);
}

/* Secondary Button */
.btn-cookie--secondary {
  background: white;
  color: var(--cookie-text-muted);
  border: 2px solid #e5e7eb;
}

.btn-cookie--secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

/* Tertiary Button */
.btn-cookie--tertiary {
  background: transparent;
  color: var(--cookie-primary);
  border: 2px solid var(--cookie-primary);
}

.btn-cookie--tertiary:hover {
  background: rgba(14, 165, 233, 0.1);
}

/* BANNER LINKS */
.cookie-banner__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cookie-spacing-md);
  justify-content: center;
  margin-top: var(--cookie-spacing-md);
}

@media (min-width: 768px) {
  .cookie-banner__links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 0;
  }
}

.cookie-link {
  font-size: 0.875rem;
  color: var(--cookie-text-muted);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cookie-link:hover {
  color: var(--cookie-primary);
}

.cookie-link:focus {
  outline: 2px solid var(--cookie-primary);
  outline-offset: 2px;
  border-radius: var(--cookie-radius-sm);
}

/* SETTINGS MODAL */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cookie-bg-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--cookie-z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.cookie-settings-modal__content {
  background: white;
  border-radius: var(--cookie-radius-xl);
  padding: var(--cookie-spacing-xl);
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: var(--cookie-shadow-xl);
}

.cookie-settings-modal--visible .cookie-settings-modal__content {
  transform: scale(1);
}

/* SETTINGS HEADER */
.cookie-settings__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--cookie-spacing-lg);
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: var(--cookie-spacing-md);
}

.cookie-settings__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cookie-text);
  margin: 0;
}

.cookie-settings__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--cookie-text-muted);
  cursor: pointer;
  padding: var(--cookie-spacing-sm);
  border-radius: var(--cookie-radius-md);
  transition: background-color 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-settings__close:hover {
  background: #f3f4f6;
}

.cookie-settings__close:focus {
  outline: 2px solid var(--cookie-primary);
  outline-offset: 2px;
}

/* SETTINGS DESCRIPTION */
.cookie-settings__description {
  margin-bottom: var(--cookie-spacing-lg);
}

.cookie-settings__description p {
  color: var(--cookie-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* SETTINGS TOGGLES */
.cookie-settings__categories {
  display: grid;
  gap: var(--cookie-spacing-lg);
  margin-bottom: var(--cookie-spacing-xl);
}

.cookie-settings-toggle {
  display: flex;
  align-items: flex-start;
  gap: var(--cookie-spacing-lg);
  padding: var(--cookie-spacing-lg);
  border: 1px solid #bae6fd;
  border-radius: var(--cookie-radius-lg);
  transition: border-color 0.2s ease;
  background: #ffffff;
}

.cookie-settings-toggle:hover {
  border-color: #7dd3fc;
  background: #f0f9ff;
}

.cookie-settings-toggle__info {
  flex: 1;
}

.cookie-settings-toggle__title {
  font-weight: 600;
  color: var(--cookie-text);
  margin-bottom: var(--cookie-spacing-xs);
  font-size: 1.1rem;
}

.cookie-settings-toggle__description {
  font-size: 0.9rem;
  color: var(--cookie-text);
  line-height: 1.5;
  margin-bottom: var(--cookie-spacing-sm);
}

/* COOKIE DETAILS */
.cookie-details {
  margin-top: var(--cookie-spacing-sm);
  padding: var(--cookie-spacing-sm);
  background: #f8fafc;
  border-radius: var(--cookie-radius-sm);
  border-left: 3px solid var(--cookie-primary);
}

.cookie-details strong {
  font-size: 0.9rem;
  color: var(--cookie-text);
  font-weight: 700;
  display: block;
  margin-bottom: var(--cookie-spacing-xs);
}

.cookie-details ul {
  margin: 0;
  padding-left: var(--cookie-spacing-lg);
  list-style-type: disc;
}

.cookie-details li {
  font-size: 0.8rem;
  color: var(--cookie-text);
  margin-bottom: var(--cookie-spacing-xs);
}

.cookie-details code {
  background: #e2e8f0;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: var(--font-family-mono);
  font-size: 0.8rem;
}

/* TOGGLE SWITCH */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 24px;
  background: #d1d5db;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid transparent;
}

.toggle-switch:focus {
  outline: 2px solid var(--cookie-primary);
  outline-offset: 2px;
}

.toggle-switch--active {
  background: var(--cookie-success);
  border-color: var(--cookie-success);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.toggle-switch--disabled {
  background: var(--cookie-success);
  border-color: var(--cookie-success);
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.toggle-switch__slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: var(--cookie-shadow-sm);
}

.toggle-switch--active .toggle-switch__slider {
  transform: translateX(24px);
}

/* SETTINGS ACTIONS */
.cookie-settings__actions {
  display: flex;
  gap: var(--cookie-spacing-md);
  justify-content: flex-end;
  border-top: 1px solid #e5e7eb;
  padding-top: var(--cookie-spacing-lg);
}

@media (max-width: 640px) {
  .cookie-settings__actions {
    flex-direction: column;
  }
  
  .cookie-settings__actions .btn-cookie {
    width: 100%;
  }
}

/* RESPONSIVE DESIGN FOR COOKIES */
@media (max-width: 640px) {
  .cookie-banner {
    padding: var(--cookie-spacing-md);
  }
  
  .cookie-banner__content {
    gap: var(--cookie-spacing-md);
  }
  
  .cookie-banner__actions {
    flex-direction: column;
  }
  
  .btn-cookie {
    width: 100%;
  }
  
  .cookie-settings-modal__content {
    padding: var(--cookie-spacing-lg);
    width: 95%;
    max-height: 90vh;
  }
  
  .cookie-settings__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--cookie-spacing-sm);
  }
  
  .cookie-settings__close {
    align-self: flex-end;
    margin-top: -40px;
  }
  
  .cookie-settings-toggle {
    flex-direction: column;
    gap: var(--cookie-spacing-md);
  }
  
  .toggle-switch {
    align-self: flex-start;
  }
}

/* ACCESSIBILITY ENHANCEMENTS */

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .cookie-banner {
    border-top: 3px solid var(--cookie-text);
  }
  
  .cookie-checkbox__custom {
    border-width: 3px;
  }
  
  .btn-cookie {
    border-width: 3px;
  }
  
  .toggle-switch {
    border: 2px solid var(--cookie-text);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner,
  .cookie-settings-modal,
  .cookie-settings-modal__content,
  .toggle-switch__slider,
  .btn-cookie,
  .cookie-checkbox__custom {
    transition: none;
  }
}

/* Focus Visible Support */
@supports selector(:focus-visible) {
  .btn-cookie:focus:not(:focus-visible),
  .toggle-switch:focus:not(:focus-visible),
  .cookie-link:focus:not(:focus-visible) {
    outline: none;
  }
}

/* PRINT STYLES */
@media print {
  .cookie-banner,
  .cookie-settings-modal {
    display: none !important;
  }
}

/* ANIMATIONS */
@keyframes cookieBannerSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes cookieBannerSlideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modalFadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* FLOATING COOKIE SETTINGS BUTTON */
.floating-cookie-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--cookie-primary), var(--cookie-primary-hover));
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: var(--cookie-shadow-lg);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9998; /* Knapp unter Cookie-Banner */
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
}

.floating-cookie-btn:hover {
  background: linear-gradient(135deg, var(--cookie-primary-hover), #0369a1);
  transform: translateY(-3px);
  box-shadow: 0 12px 20px -3px rgba(14, 165, 233, 0.4);
  color: white;
  text-decoration: none;
}

.floating-cookie-btn:focus {
  outline: 3px solid var(--cookie-primary);
  outline-offset: 3px;
}

.floating-cookie-btn .cookie-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.floating-cookie-btn .btn-text {
  white-space: nowrap;
}

/* Mobile Responsive Adjustments for floating button */
@media (max-width: 640px) {
  .floating-cookie-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .floating-cookie-btn .cookie-icon {
    width: 20px;
    height: 20px;
  }
  
  /* Kompakte Version nur mit Icon auf sehr kleinen Bildschirmen */
  @media (max-width: 380px) {
    .floating-cookie-btn .btn-text {
      display: none;
    }
    
    .floating-cookie-btn {
      width: 52px;
      height: 52px;
      padding: 0;
      justify-content: center;
      border-radius: 50%;
    }
  }
}

/* Button verstecken wenn Cookie-Banner sichtbar ist (um Überlappung zu vermeiden) */
.cookie-banner--visible ~ .floating-cookie-btn {
  bottom: 180px; /* Oberhalb des Banners positionieren */
}

@media (max-width: 640px) {
  .cookie-banner--visible ~ .floating-cookie-btn {
    bottom: 220px; /* Mehr Abstand auf Mobile */
  }
}

/* UTILITY CLASSES */
.cookie-banner--animate-in {
  animation: cookieBannerSlideUp 0.3s ease-out;
}

.cookie-banner--animate-out {
  animation: cookieBannerSlideDown 0.3s ease-in;
}

.cookie-modal--animate-in {
  animation: modalFadeIn 0.3s ease-out;
}

.cookie-modal--animate-out {
  animation: modalFadeOut 0.3s ease-in;
}

/* Screen Reader Only */
.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;
}

/* =============================================================================
   SECTION 2: FORM SECURITY
   ============================================================================= */

/*
 * Form Security Styles
 * Visual feedback for form validation and security features
 */

/* Validation Error Styles */
.validation-error-field {
    border-color: #e74c3c !important;
    background-color: #fdf2f2 !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.validation-errors {
    margin-top: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #ffe6e6 0%, #f8d7da 100%);
    border: 1px solid #e74c3c;
    border-radius: 6px;
    border-left: 4px solid #e74c3c;
}

.validation-error {
    margin: 0;
    padding: 2px 0;
    color: #c0392b;
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1.4;
}

.validation-error:before {
    content: "⚠️ ";
    margin-right: 4px;
}

/* Validation Summary */
.validation-summary {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #f39c12;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.15);
}

.validation-summary h3 {
    margin: 0 0 10px 0;
    color: #d68910;
    font-size: 1.1em;
}

.validation-summary p {
    margin: 0;
    color: #856404;
    font-weight: 500;
}

/* Success States */
.validation-success-field {
    border-color: #27ae60 !important;
    background-color: #f8fff8 !important;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1) !important;
}

.validation-success {
    margin-top: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border: 1px solid #27ae60;
    border-radius: 6px;
    border-left: 4px solid #27ae60;
    color: #155724;
    font-size: 0.85em;
    font-weight: 600;
}

.validation-success:before {
    content: "✅ ";
    margin-right: 4px;
}

/* Password Strength Indicator */
.password-strength-indicator {
    margin-top: 8px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.password-strength-bar {
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.password-strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.password-strength-fill.weak {
    width: 25%;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.password-strength-fill.fair {
    width: 50%;
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.password-strength-fill.good {
    width: 75%;
    background: linear-gradient(90deg, #f1c40f, #f39c12);
}

.password-strength-fill.strong {
    width: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.password-strength-text {
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.password-strength-text.weak { color: #e74c3c; }
.password-strength-text.fair { color: #f39c12; }
.password-strength-text.good { color: #f1c40f; }
.password-strength-text.strong { color: #27ae60; }

.password-requirements {
    margin-top: 8px;
    font-size: 0.8em;
}

.password-requirement {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0;
    color: #666;
}

.password-requirement.met {
    color: #27ae60;
}

.password-requirement.met:before {
    content: "✓";
    font-weight: bold;
}

.password-requirement:not(.met):before {
    content: "○";
}

/* Security Warnings */
.security-warning {
    background: linear-gradient(135deg, #ffe6e6 0%, #f8d7da 100%);
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    animation: cookieShake 0.5s ease-in-out;
}

.security-warning-icon {
    font-size: 1.2em;
    margin-right: 8px;
}

.security-warning-text {
    color: #c0392b;
    font-weight: bold;
    margin: 0;
}

/* Input Enhancement */
.secure-input {
    position: relative;
}

.secure-input-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
}

.secure-input-indicator.valid {
    color: #27ae60;
}

.secure-input-indicator.invalid {
    color: #e74c3c;
}

.secure-input-indicator.checking {
    color: #f39c12;
    animation: cookiePulse 1s infinite;
}

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

@keyframes cookieShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes cookiePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Accessibility Enhancements for forms */
.validation-errors,
.validation-summary,
.security-warning {
    /* Screen reader accessibility */
    position: relative;
}

.validation-error-field:focus,
.validation-success-field:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* High contrast mode support for forms */
@media (prefers-contrast: high) {
    .validation-error-field {
        border-width: 3px !important;
    }
    
    .validation-errors {
        border-width: 2px;
    }
    
    .validation-error {
        font-weight: bold;
    }
}

/* Reduced motion support for forms */
@media (prefers-reduced-motion: reduce) {
    .validation-summary,
    .security-warning {
        animation: none;
    }
    
    .password-strength-fill {
        transition: none;
    }
}

/* Mobile Responsiveness for form security */
@media (max-width: 768px) {
    .validation-summary {
        margin: 15px -10px 20px;
        border-radius: 0;
        padding: 15px;
    }
    
    .validation-errors {
        margin-top: 6px;
        padding: 6px 10px;
        font-size: 0.8em;
    }
    
    .password-strength-indicator {
        padding: 8px;
        margin-top: 6px;
    }
    
    .password-requirements {
        font-size: 0.75em;
    }
    
    .security-warning {
        margin: 8px -5px;
        padding: 12px;
        border-radius: 6px;
    }
}

/* Dark Mode Support (if implemented) for form security */
@media (prefers-color-scheme: dark) {
    .validation-errors {
        background: linear-gradient(135deg, #4a1d1d 0%, #3d1a1a 100%);
        border-color: #e74c3c;
        color: #ff6b6b;
    }
    
    .validation-summary {
        background: linear-gradient(135deg, #4a3d1d 0%, #3d3319 100%);
        border-color: #f39c12;
        color: #ffd93d;
    }
    
    .validation-success {
        background: linear-gradient(135deg, #1d4a2a 0%, #1a3d22 100%);
        border-color: #27ae60;
        color: #6bcf7f;
    }
    
    .password-strength-indicator {
        background: #2c3e50;
        border-color: #34495e;
        color: #ecf0f1;
    }
}

/* =============================================================================
   SECTION 3: COOKIE SETTINGS PAGE LAYOUT
   ============================================================================= */

/* Settings Page Container */
.cookie-settings-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Settings Header */
.cookie-settings-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.cookie-settings-header h1 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.cookie-settings-header p {
    font-size: 1.1rem;
    color: #64748b;
}

/* Consent Info Box */
.cookie-consent-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 2rem;
}

.cookie-consent-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Cookie Categories Grid */
.cookie-categories-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Settings Actions */
.cookie-settings-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Legal Links Footer */
.cookie-legal-links {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.cookie-legal-links a {
    color: #0ea5e9;
    text-decoration: none;
    margin: 0 1rem;
}

.cookie-legal-links a:hover {
    text-decoration: underline;
}

/* =============================================================================
   SECTION 4: COOKIE NOTIFICATION STYLES (CSP-COMPLIANT)
   ============================================================================= */

/* Cookie Notification Base */
.cookie-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: var(--cookie-z-notification);
    font-size: 14px;
    color: #1e293b;
    border-left: 4px solid #0ea5e9;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-out;
}

.cookie-notification.notification-visible {
    opacity: 1;
    transform: translateX(0);
    animation: slideInRight 0.3s ease-out;
}

.cookie-notification.notification-hidden {
    opacity: 0;
    transform: translateX(400px);
    animation: slideOutRight 0.3s ease-in;
}

/* Notification Type Variants */
.cookie-notification--success {
    border-left-color: #059669;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.cookie-notification--error {
    border-left-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.cookie-notification--info {
    border-left-color: #0ea5e9;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Notification Animations - Using utility animations from utilities.css */

/* =============================================================================
   SECTION 5: COOKIE POLICY PAGE STYLES
   ============================================================================= */

/**
 * GDPR Warning Boxes for Cookie Policy Page
 * Replaces inline styles for CSP compliance
 */

.gdpr-warning-box {
    background: #fef2f2;
    border: 2px solid #ef4444;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.gdpr-warning-title {
    color: #dc2626;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.gdpr-warning-text {
    margin-bottom: 1rem;
}

.gdpr-warning-list {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.gdpr-warning-footer {
    margin-top: 1rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 0;
}

/**
 * Table of Contents Active Link Styling
 * For smooth scroll navigation highlighting
 */

.toc a.toc-active {
    font-weight: bold;
    color: #0ea5e9;
}

.toc a {
    transition: all 0.2s ease;
}

.toc a:hover {
    color: #0284c7;
}

/* ========================================
   COOKIE MANAGER ANIMATIONS & NOTIFICATIONS
   ======================================== */

/* Banner animations */
.banner-visible {
    transform: translateY(0) !important;
    transition: transform 0.3s ease-out;
}

.banner-hidden {
    transform: translateY(100%) !important;
    transition: transform 0.3s ease-in;
}

/* Notification animations */
.cookie-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    color: white;
    border-radius: 0.5rem;
    z-index: 10001;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cookie-notification--success {
    background: #28a745;
}

.cookie-notification--error {
    background: #dc3545;
}

.cookie-notification--info {
    background: #17a2b8;
}

.notification-visible {
    animation: slideInRight 0.3s ease-out;
}

.notification-hidden {
    animation: slideOutRight 0.3s ease-in;
}

/* Animations defined in utilities.css - removed duplicates */