/* Base styles and reset */
:root {
  --primary-dark: #0D1B1E;
  --secondary-dark: #162A2E;
  --accent-green: #4CAF50;
  --accent-moss: #8BC34A;
  --text-light: #E8F5E9;
  --text-dim: #B0BEC5;
  --highlight: #81C784;
  --border-color: #2C3E50;
  --error: #F44336;
  --success: #4CAF50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Karla', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--primary-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Spectral', serif;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover, a:focus {
  color: var(--highlight);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  background-color: var(--primary-dark);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem;
  position: relative;
}

nav a:hover, nav a:focus {
  color: var(--accent-green);
  text-decoration: none;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-green);
  transition: width 0.3s ease;
}

nav a:hover::after, nav a:focus::after {
  width: 100%;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Chat-like message bubbles */
.chat-container {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 2rem auto;
  gap: 1.5rem;
}

.message {
  max-width: 80%;
  padding: 1.25rem;
  border-radius: 1rem;
  position: relative;
}

.message.left {
  align-self: flex-start;
  background-color: var(--secondary-dark);
  border-top-left-radius: 0.25rem;
}

.message.right {
  align-self: flex-end;
  background-color: var(--accent-green);
  border-top-right-radius: 0.25rem;
  color: var(--primary-dark);
}

.message img {
  width: 100%;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.message h3 {
  margin-bottom: 0.75rem;
}

.message-time {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  text-align: right;
}

.message.right .message-time {
  color: var(--primary-dark);
  opacity: 0.8;
}

/* Hero section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-green);
  margin: 1rem auto 0;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-item {
  background-color: var(--secondary-dark);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  display: inline-block;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-green);
}

/* Forms */
.form-container {
  background-color: var(--secondary-dark);
  padding: 2rem;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--primary-dark);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  border-radius: 4px;
  font-family: 'Karla', sans-serif;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-green);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input {
  width: auto;
  margin-top: 0.3rem;
}

button, .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-green);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

button:hover, .btn:hover, button:focus, .btn:focus {
  background-color: var(--highlight);
  text-decoration: none;
}

/* Progress bars */
.progress-container {
  margin-bottom: 2rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 8px;
  background-color: var(--primary-dark);
  border-radius: 4px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: var(--accent-green);
  width: 0;
  transition: width 1.5s ease;
}

/* Tabs */
.tabs {
  margin-bottom: 2rem;
}

.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.tab-nav button {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  color: var(--text-dim);
  cursor: pointer;
  position: relative;
}

.tab-nav button.active {
  color: var(--accent-green);
}

.tab-nav button.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-green);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--secondary-dark);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.card-image {
  height: 200px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  margin-bottom: 0.75rem;
}

/* Footer */
footer {
  background-color: var(--secondary-dark);
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-dim);
}

/* About page */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
}

/* Contact page */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background-color: var(--secondary-dark);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.contact-icon {
  font-size: 2rem;
  color: var(--accent-green);
  margin-bottom: 1rem;
}

.map-container {
  height: 400px;
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--secondary-dark);
  padding: 1.5rem;
  z-index: 1000;
  display: none;
  border-top: 1px solid var(--border-color);
}

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

.cookie-text {
  flex: 1;
  min-width: 200px;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

.cookie-settings {
  background-color: transparent;
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}

.cookie-settings:hover, .cookie-settings:focus {
  background-color: transparent;
  color: var(--highlight);
  border-color: var(--highlight);
}

/* Cookie settings modal */
.settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.modal-content {
  background-color: var(--secondary-dark);
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.close-modal {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

.cookie-category {
  margin-bottom: 1.5rem;
}

/* Thanks page */
.thanks-container {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.thanks-icon {
  font-size: 5rem;
  color: var(--accent-green);
  margin-bottom: 1.5rem;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.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: 2.5rem; }

.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: 2.5rem; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-error {
  color: var(--error);
}

.text-success {
  color: var(--success);
}

/* Responsive styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .about-section {
    grid-template-columns: 1fr;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .hero-image {
    width: 100%;
    opacity: 0.2;
  }
  
  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav ul {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    border-bottom: 1px solid var(--border-color);
  }
  
  nav ul.show {
    height: auto;
    padding: 1rem;
  }
  
  nav ul li {
    width: 100%;
  }
  
  nav ul li a {
    display: block;
    padding: 1rem;
  }
  
  .message {
    max-width: 90%;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .cookie-content {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .logo img {
    height: 30px;
  }
  
  .hero {
    min-height: 60vh;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .feature-item {
    padding: 1.5rem;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* Intl-tel-input styles */
.iti {
  width: 100%;
}
.iti__flag {
  background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/img/flags.png");
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag {
    background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/img/flags@2x.png");
  }
}