/* Base styles and typography */
html {
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 1.875rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Form Elements */
input,
select,
textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--background);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

/* Utility Classes */
.section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2.5rem;
  font-weight: 700;
}

.btn-full {
  width: 100%;
}

.btn-small {
  padding: 6px 10px;
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }

  .container {
    padding: 0 15px;
  }
}

/* Cookie Popup (Bottom Centered) */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 600px;
  width: 90%;
  background: var(--background);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  z-index: 1050;
  animation: slideUp var(--transition-time) var(--animation-timing);
}

.cookie-content {
  color: var(--text-color);
}

.cookie-content a.text-muted {
  color: var(--primary-color) !important;
}

.cookie-title {
  font-weight: 600;
  color: var(--primary-color);
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  .btn.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
  }

  .btn.btn-outline-primary {
    color: var(--primary-color);
    background: var(--background);
    &:hover {
      color: var(--primary-color);
      background: var(--bg-secondary);
    }
  }
}

/* Customization Modal */
.modal-content {
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  background: var(--bg-primary);
}

.modal-header {
  background: var(--gradient-green);
  color: var(--text-white);
  border-bottom: none;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.modal-title {
  font-weight: 600;
}

.form-check-input {
  padding: 0;
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.form-check-input:checked {
  padding: 0;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.modal-body p {
  color: var(--text-color);
}

.modal-body p.text-muted {
  color: var(--text-color) !important;
}

.modal-body a.text-muted {
  color: var(--text-color) !important;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  .btn.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
  }

  .btn.btn-outline-primary {
    color: var(--primary-color);
    background: var(--bg-primary);
    &:hover {
      color: var(--primary-color);
      background: var(--bg-secondary);
    }
  }
}

/* Animation for Popup */
@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* Responsive Adjustments */
@media (max-width: 576px) {
  .cookie-popup {
    bottom: 10px;
    width: 95%;
  }
  .cookie-buttons {
    flex-direction: column;
  }
}

.form-agreement {
  a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  a:hover {
    color: var(--primary-dark);
  }
}

.form-agreement-campaign {
  a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  a:hover {
    color: var(--text-white);
  }
}

.policy-footer {
  background: var(--surface);
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.policy-footer p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1rem;
}

.policy-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.policy-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.policy-links a:hover {
  color: var(--primary-color);
}

.policy-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.policy-links a:hover::after {
  width: 100%;
}

/* Policy Pages Responsive Design */

@media (max-width: 768px) {
  .policy-links {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .policy-links {
    flex-direction: column;
    gap: 15px;
  }

  .contact-info {
    padding: 15px;
  }

  .policy-footer {
    padding: 30px 0;
  }
}

/* Smooth transitions for theme switching on policy pages */
.policy-footer,
.contact-info {
  transition: background-color 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.policy-footer p,
.policy-links a {
  transition: color 0.3s ease;
}
