/* 
   Main Styles for domain.org
   Color palette:
   - Main: #263238 (dark graphite)
   - Accent: #FF4081 (bright pink)
   - Background: #FAFAFA
   - Text: #212121
   - Elements: #C5E1A5 (pastel green)
*/

/* === Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #212121;
  background-color: #fafafa;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #263238;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ff4081;
}

.btn {
  display: inline-block;
  background-color: #ff4081;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #e03771;
  color: white;
}

section {
  padding: 60px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 15px;
  color: #263238;
}

p {
  margin-bottom: 15px;
}

/* === Header & Navigation === */
header {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo a {
  font-size: 28px;
  font-weight: bold;
  color: #263238;
  letter-spacing: -1px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-list li {
  margin-left: 25px;
}

.nav-list a {
  font-weight: 500;
}

.menu-icon {
  display: none;
  cursor: pointer;
}

.menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #263238;
  transition: all 0.3s ease;
}

.menu-toggle {
  display: none;
}

/* === Hero Section === */
.hero {
  background-image: url("./img/fIPpR.jpg");
  background-size: cover;
  background-position: center center;
  color: white;
  text-align: center;
  padding: 100px 0;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(38, 50, 56, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: white;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

/* === Section Styles === */
.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #ff4081;
}

/* === About Section === */
.about-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

/* === Benefits Section === */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.benefit-card {
  background-color: white;
  padding: 25px;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-card h3 {
  color: #263238;
  margin-bottom: 15px;
}

/* === Services Section === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  margin-bottom: 10px;
}

/* === Form Section === */
.form-section {
  background-color: #f0f4f8;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.form-group select {
  background-color: white;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23263238' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px;
  padding-right: 30px;
}

/* Customizing background of option tags */
.form-group select option {
  background-color: white;
  color: #212121;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input {
  margin-right: 10px;
  margin-top: 5px;
}

.form-group .error-text {
  color: #ff4081;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.form-group .error-text.show {
  display: block;
}

/* === Testimonials Section === */
.testimonials {
  background-color: #f0f4f8;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background-color: white;
  padding: 25px;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 15px;
}

.testimonial-author {
  font-weight: bold;
  color: #263238;
}

/* === FAQ Section === */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.faq-question {
  position: relative;
  padding: 15px;
  cursor: pointer;
  font-weight: 500;
  display: block;
  width: 100%;
  text-align: left;
  background-color: #f9f9f9;
}

.faq-checkbox {
  display: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 15px;
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
  padding: 15px;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  transition: transform 0.3s ease;
}

.faq-checkbox:checked ~ .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

/* === Contact Section === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.contact-info {
  background-color: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-item {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
}

.contact-item-icon {
  width: 30px;
  height: 30px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #c5e1a5;
  border-radius: 50%;
}

.contact-map {
  height: 100%;
  min-height: 300px;
  border-radius: 5px;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === Footer === */
footer {
  background-color: #263238;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-company h3,
.footer-contact h3,
.footer-links h3 {
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-company h3::after,
.footer-contact h3::after,
.footer-links h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: #ff4081;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #fff;
}

.footer-links a:hover {
  color: #ff4081;
}

.footer-contact a {
  color: #fff;
}

.footer-contact a:hover {
  color: #ff4081;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Cookie Popup === */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: #263238;
  color: white;
  padding: 15px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  transition: bottom 0.5s ease;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  flex: 1;
  margin: 0 15px 0 0;
}

.cookie-content button {
  background-color: #ff4081;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-right: 10px;
}

.cookie-content a {
  color: #c5e1a5;
  text-decoration: underline;
}

/* === Policy Pages === */
.policy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.policy-container h1 {
  border-bottom: 2px solid #ff4081;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.policy-container h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #263238;
}

/* === Thank you page === */
.thank-you {
  text-align: center;
  margin: 8rem auto 3rem;
  max-width: 600px;
  background-color: white;
  padding: 40px;
  border-radius: 5px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.thank-you h1 {
  color: #263238;
  margin-bottom: 20px;
}

.thank-you .icon {
  font-size: 60px;
  color: #c5e1a5;
  margin-bottom: 20px;
}

/* === Mobile Styles === */
@media (max-width: 768px) {
  /* Header & Navigation */
  .menu-icon {
    display: block;
  }

  .nav-list {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .menu-toggle:checked ~ .nav-list {
    max-height: 300px;
  }

  .nav-list li {
    margin: 0;
  }

  .nav-list a {
    display: block;
    padding: 15px;
    border-bottom: 1px solid #eee;
  }

  /* About section */
  .about-content {
    flex-direction: column;
  }

  /* Hero section */
  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  /* Cookie popup */
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-content p {
    margin-bottom: 15px;
  }

  .cookie-content button,
  .cookie-content a {
    margin-bottom: 10px;
  }

  /* Form */
  .form-container {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 40px 0;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 30px;
  }

  .section-title {
    font-size: 24px;
  }
}
