/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  color: #1a365d;
}

h2 {
  font-size: 2rem;
  color: #2d3748;
}

h3 {
  font-size: 1.5rem;
  color: #4a5568;
}

p {
  margin-bottom: 1rem;
  color: #718096;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: #3182ce;
  color: white;
  border-color: #3182ce;
}

.btn-primary:hover {
  background-color: #2c5aa0;
  border-color: #2c5aa0;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #718096;
  color: white;
  border-color: #718096;
}

.btn-secondary:hover {
  background-color: #4a5568;
  border-color: #4a5568;
}

.btn-outline {
  background-color: transparent;
  color: #3182ce;
  border-color: #3182ce;
}

.btn-outline:hover {
  background-color: #3182ce;
  color: white;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #2d3748;
  color: white;
  z-index: 1000;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-buttons .btn {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Cookie Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
}

.close {
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #718096;
}

.close:hover {
  color: #2d3748;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid #e2e8f0;
  text-align: right;
}

.cookie-category {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  font-weight: 500;
  margin-bottom: 10px;
}

.cookie-toggle input[type="checkbox"] {
  display: none;
}

.slider {
  position: relative;
  width: 50px;
  height: 24px;
  background-color: #cbd5e0;
  border-radius: 24px;
  transition: background-color 0.3s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.cookie-toggle input:checked + .slider {
  background-color: #3182ce;
}

.cookie-toggle input:checked + .slider:before {
  transform: translateX(26px);
}

.cookie-toggle input:disabled + .slider {
  background-color: #a0aec0;
  cursor: not-allowed;
}

/* Header */
.header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.navbar {
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand .logo {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: #4a5568;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #3182ce;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: #4a5568;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1c3bc3 0%, #764ba2 100%);
  color: white;
  padding: 120px 0 80px;
  margin-top: 70px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about {
  background-color: #f7fafc;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text ul {
  list-style: none;
  margin: 2rem 0;
}

.about-text li {
  margin: 0.5rem 0;
  color: #4a5568;
}

.about-stats {
  display: grid;
  gap: 30px;
}

.stat {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat h4 {
  font-size: 2.5rem;
  color: #3182ce;
  margin-bottom: 0.5rem;
}

.stat p {
  color: #718096;
  margin: 0;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.service-card h3 {
  color: #2d3748;
  margin-bottom: 15px;
}

.service-card ul {
  list-style: none;
  text-align: left;
  margin-top: 20px;
}

.service-card li {
  margin: 8px 0;
  color: #718096;
  position: relative;
  padding-left: 20px;
}

.service-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #3182ce;
  font-weight: bold;
}

/* Advantages Section */
.advantages {
  background-color: #f7fafc;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.advantage-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.advantage-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.testimonial-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #3182ce;
}

.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-content p {
  font-style: italic;
  color: #4a5568;
  margin: 0;
}

.testimonial-author h4 {
  color: #2d3748;
  margin: 0;
}

.testimonial-author span {
  color: #718096;
  font-size: 0.9rem;
}

/* FAQ Section */
.faq {
  background-color: #f7fafc;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 20px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f7fafc;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #2d3748;
}

.faq-toggle {
  font-size: 1.5rem;
  color: #3182ce;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 20px 30px;
  max-height: 200px;
}

.faq-answer p {
  margin: 0;
  color: #718096;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-item {
  margin-bottom: 30px;
}

.contact-item h3 {
  color: #2d3748;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.contact-item p {
  margin: 0;
  color: #718096;
}

/* Form Styles */
.contact-form {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #2d3748;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3182ce;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e53e3e;
}

.error-message {
  color: #e53e3e;
  font-size: 0.875rem;
  margin-top: 5px;
  display: block;
}

.checkbox-label {
  display: flex;
  align-items: start;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-label input:checked + .checkmark {
  background-color: #3182ce;
  border-color: #3182ce;
}

.checkbox-label input:checked + .checkmark:after {
  content: "✓";
  position: absolute;
  top: -2px;
  left: 3px;
  color: white;
  font-weight: bold;
}

.checkbox-label span:last-child {
  color: #718096;
  line-height: 1.5;
}

.checkbox-label a {
  color: #3182ce;
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: #2d3748;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: white;
  margin-bottom: 20px;
}

.footer-section p {
  color: #a0aec0;
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: #4a5568;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background-color: #3182ce;
}

.footer-bottom {
  border-top: 1px solid #4a5568;
  padding-top: 20px;
  text-align: center;
  color: #a0aec0;
}

.footer-bottom p {
  margin: 5px 0;
}

.footer-bottom a {
  color: #3182ce;
  text-decoration: none;
}

/* Thank You Page */
.thank-you {
  padding: 120px 0 80px;
  background-color: #f7fafc;
  margin-top: 70px;
}

.thank-you-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.thank-you-icon {
  margin-bottom: 30px;
}

.thank-you h1 {
  color: #2d3748;
  margin-bottom: 20px;
}

.next-steps {
  background: white;
  padding: 30px;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.next-steps h3 {
  color: #2d3748;
  margin-bottom: 20px;
}

.next-steps ul {
  list-style: none;
  text-align: left;
}

.next-steps li {
  margin: 15px 0;
  color: #4a5568;
  font-size: 1.1rem;
}

.contact-info-box {
  background: #3182ce;
  color: white;
  padding: 30px;
  border-radius: 12px;
  margin: 40px 0;
}

.contact-info-box h3 {
  color: white;
  margin-bottom: 15px;
}

.contact-info-box p {
  color: rgba(255, 255, 255, 0.9);
  margin: 10px 0;
}

.thank-you-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* Legal Pages */
.legal-page {
  padding: 120px 0 80px;
  margin-top: 70px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  color: #2d3748;
  margin-bottom: 10px;
}

.last-updated {
  color: #718096;
  font-style: italic;
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  color: #2d3748;
  margin-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.legal-section h3 {
  color: #4a5568;
  margin-bottom: 15px;
  margin-top: 25px;
}

.legal-section ul {
  margin: 15px 0;
  padding-left: 20px;
}

.legal-section li {
  margin: 8px 0;
  color: #718096;
}

.legal-section a {
  color: #3182ce;
  text-decoration: none;
}

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

.cookie-settings-section {
  background: #f7fafc;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  margin: 40px 0;
}

.back-link {
  text-align: center;
  margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: white;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding-top: 50px;
    transition: left 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .thank-you-actions {
    flex-direction: column;
    align-items: center;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .contact-form {
    padding: 30px 20px;
  }

  .service-card,
  .advantage-card {
    padding: 30px 20px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* Loading Animation */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Smooth Animations */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
  outline: 2px solid #3182ce;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .cookie-banner,
  .modal,
  .nav-toggle {
    display: none !important;
  }

  .legal-page {
    margin-top: 0;
    padding-top: 20px;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }

  .legal-section {
    page-break-inside: avoid;
  }
}
