:root {
  --bonnier-light: #ffffff;
  --bonnier-dark: #333333;
  --bonnier-gray: #f5f5f5;
  --bonnier-accent: #694242;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Base HTML and Body Styles */
html {
  font-size: 12px;
  height: 100%;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}

body {
  font-family: var(--font-family);
  color: var(--bonnier-dark);
  line-height: 1.6;
  background-color: var(--bonnier-light);
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: hidden;
}

/* Focus States - Preserving Accessibility */
.btn:focus, 
.btn:active:focus, 
.btn-link.nav-link:focus, 
.form-control:focus, 
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--bonnier-accent);
}

/* Modern icon styling */
.icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: #333333;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0; 
}

.icon-wrapper-sm {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

/* Section styling */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, var(--bonnier-accent) 0%, transparent 100%);
  opacity: 0.1;
  margin: 2rem 0;
}

.section-content {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 1.25rem;
}

/* Contact bullet styling */
.contact-bullet {
  width: 6px;
  height: 6px;
  background-color: #333333;
  border-radius: 50%;
  opacity: 0.7;
}

/* Custom checkbox styling */
.custom-checkbox-wrapper {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.custom-checkbox-wrapper:hover {
  background-color: #f3f4f6;
}

.custom-checkbox {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px !important;
  border: 2px solid #0d6efd !important; 
  cursor: pointer;
}

.custom-checkbox:checked {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
}

/* Icon button styling */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0d6efd; /* Bootstrap primary blue */
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-icon:hover {
  background-color: rgba(13, 110, 253, 0.05); /* Very light blue background on hover */
  color: #0a58ca; /* Slightly darker blue on hover */
}

.btn-icon i {
  font-size: 1.1rem;
}

/* Updated eco-message styling */
.eco-message {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #0d6dfd3d; /* Light blue background */
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1rem;
  border: 1px solid rgba(40, 68, 167, 0.1); /* Very subtle blue border */
}

.eco-message .icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #0d6efd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eco-message .icon-wrapper i {
  color: white;
  font-size: 1rem;
}

.eco-message span {
  color: #043580; /* Darker blue for text */
  font-size: 0.95rem;
  line-height: 1.5;
}

.old-email {
  text-decoration: line-through;
  color: #6c757d;
}


.btn-bonnier, 
.btn-primary,
#saveButton {  /* Adding specific ID to increase specificity */
    background-color: #0d6efd !important; /* Bootstrap blue */
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-bonnier:hover:not(:disabled), 
.btn-primary:hover:not(:disabled),
#saveButton:hover:not(:disabled) {
    background-color: #043580 !important; /* Darker blue on hover */
    color: white;
    transform: translateY(-1px);
}

.btn-bonnier:disabled, 
.btn-primary:disabled,
#saveButton:disabled {
    background-color: #0d6efd !important;
    opacity: 0.5;
    cursor: not-allowed;
}

.bullet-point {
  width: 6px;
  height: 6px;
  background-color: var(--bonnier-accent);
  border-radius: 50%;
  display: inline-block;
}

.opt-in-container {
  background-color: rgba(var(--bonnier-accent-rgb), 0.05);
  border: 1px solid rgba(var(--bonnier-accent-rgb), 0.1);
  transition: all 0.2s ease;
}

.opt-in-container:hover {
  background-color: rgba(var(--bonnier-accent-rgb), 0.08);
}

.form-check-input:checked {
  background-color: var(--bonnier-accent);
  border-color: var(--bonnier-accent);
}

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

.bg-opacity-10 {
  opacity: 0.1;
}

.verification-success-card {
  background: linear-gradient(to bottom right, var(--bonnier-light), var(--bonnier-gray));
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

.section-divider {
  height: 1px;
  background: linear-gradient(to right, var(--bonnier-gray), transparent);
  margin: 1.5rem 0;
}

.info-section {
  padding: 1.5rem 0;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.info-icon {
  width: 24px;
  height: 24px;
  color: var(--bonnier-accent);
}

.recipients-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.recipients-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.recipient-bullet {
  width: 6px;
  height: 6px;
  background-color: var(--bonnier-accent);
  border-radius: 50%;
}

.email-section {
  background-color: var(--bonnier-gray);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.opt-in-section {
  background-color: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
}

.opt-in-section:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.security-container {
  margin-top: 120px; /* Adjust this value based on your header height */
  padding: 20px;
}

/* Modern Navigation */
.navbar {
  background-image: url('../images/bonnier_header.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 120px; /* Adjust this value to control the navbar height */
  position: fixed;
  width: 100%;
  top: 0;
}

.navbar .container {
  position: relative;
  z-index: 1;
}

.navbar-logo {
  height: 40px; /* Adjust this value based on your needs */
  background-color: rgba(255, 255, 255, 0.8); /* White with 80% opacity - adjust the 0.8 value to change transparency */
  width: auto;
  object-fit: contain;
}

.navbar .nav-link {
  background-color: rgba(255, 255, 255, 0.7); /* White with 80% opacity - adjust the 0.8 value to change transparency */
  border-radius: 6px; /* Rounded corners - adjust or remove as needed */
  margin: 0 5px; /* Space between buttons */
  padding: 8px 15px; /* Inner padding of buttons */
  transition: all 0.3s ease; /* Smooth transition for hover effects */
  font-size: 1.2rem;  /* This is new - adjust the value as needed */
  font-weight: 500; 
}

.navbar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.9); /* Slightly more opaque on hover */
  color: #000000; /* Text color on hover */
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 1.5rem;
}

/* Modern Container */
.container {
  max-width: 1200px;
  padding: 0 2rem;
}

/* Modern Headlines */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--bonnier-dark);
}

/* Modern Forms */
.form-control {
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--bonnier-accent);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--bonnier-dark);
}

/* Modern Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--bonnier-accent);
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background-color: #404040;
  transform: translateY(-1px);
}

/* Modern Cards */
.card {
  border: none;
  border-radius: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: 1.5rem;
}

/* Modern Alerts */
.alert {
  border: none;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background-color: #ecfdf5;
  color: #061c5f;
}

.alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
}

/* Footer styling */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bonnier-light);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  height: 160px;
  z-index: 1000;
}

/* Footer logos container */
.footer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 1rem 0;
}

/* Footer logo images */
.footer-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}

/* Container adjustments */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  main {
    height: calc(100vh - 320px); /* 120px navbar + 200px footer */
  }
  
  .footer {
    height: 100px;
  }
}

/* Hero Section */
.hero-section {
  padding-top: 140px;
  padding-bottom: 100px;
  text-align: center;
  background-color: var(--bonnier-light);
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--bonnier-dark);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Verification page container */
.verification-container {
  padding-top: 80px;
  padding-bottom: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Form styling */
.verification-form {
  margin-top: 2rem;
}

.verification-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--bonnier-dark);
}

.verification-input {
  max-width: 200px;
  margin-top: 1rem;
}

/* Main content area */
main {
  flex: 1;
  overflow-y: auto; /* Enable scrolling */
  padding-top: 120px; /* Account for navbar */
  padding-bottom: 180px; /* Account for footer + some spacing */
  position: relative;
  height: 100%;
  box-sizing: border-box;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .navbar {
    padding: 1rem 0;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-section {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .verification-container {
    padding-top: 120px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .verification-title {
    font-size: 2rem;
  }
}