@import url("https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;700&display=swap");

:root {
  --primary-color: #3264f5;
  --secondary-color: #7004bc;
  --accent-color: #f033b5;
  --text-color: #333;
  --background-color: #f5f5f5;
}

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

body {
  font-family: "Sarabun", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

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

header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

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

.logo img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 2px 0;
  transition: 0.3s;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary-color);
}

#hero {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  padding: 100px 0 50px;
  text-align: center;
}

#hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--accent-color), #f2a2af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #d02a9c;
}

#video-demo {
  background-color: #f9f9f9;
  padding: 80px 0;
  text-align: center;
}

#video-demo h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 2rem;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#video-demo p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-color);
}

section {
  padding: 80px 0;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

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

.feature-card,
.benefit-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.feature-card h3,
.benefit-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

#pricing {
  background-color: #f0f0f0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.pricing-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.pricing-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.pricex {
  font-size: 1.1rem;
  font-weight: 500;
  color: #f5e82e;
  margin-bottom: 1.5rem;
}
.pricexx {
  font-size: 1.1rem;
  font-weight: 500;
  color: #f52e4f;
  margin-bottom: 1.5rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-card ul li {
  margin-bottom: 0.5rem;
}

.pricing-card.featured {
  background-color: var(--primary-color);
  color: #fff;
}

.pricing-card.featured .price {
  color: #fff;
}

.pricing-card.featured .cta-button {
  background-color: #fff;
  color: var(--primary-color);
}

.pricing-card.featured .cta-button:hover {
  background-color: #f0f0f0;
}

#testimonials {
  background: linear-gradient(45deg, #237afe, #03a9f5);
  color: #fff;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-card .author {
  font-weight: 700;
}

#faq {
  background-color: #f9f9f9;
}

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

.faq-item {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faq-question {
  font-size: 1.2rem;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

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

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

.faq-item.active .faq-answer {
  max-height: 500px !important;
  padding-top: 10px;
}

/* New modernized installation section styles */
#how-to-install {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
}

#how-to-install .container {
  max-width: 800px;
}

#how-to-install h2 {
  color: var(--primary-color);
  margin-bottom: 3rem;
  font-size: 2.5rem;
  text-align: center;
}

#how-to-install ol {
  list-style: none;
  counter-reset: install-steps;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  margin: 0 auto;
}

#how-to-install li {
  background: #fff;
  border-radius: 15px;
  padding: 1.5rem;
  font-size: 1.1rem;
  position: relative;
  counter-increment: install-steps;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#how-to-install li::before {
  content: counter(install-steps);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

#how-to-install li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

#how-to-install li span {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

footer {
  background-color: #333;
  color: #fff;
  padding: 50px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 30px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

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

.footer-column a {
  color: #fff;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal Styles */
.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.invalid {
  border-color: #dc3545 !important;
}

.modal button[type="submit"] {
  font-family: "Sarabun", sans-serif;
  font-size: 16px;
  font-weight: normal;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

.close-modal:hover {
  color: var(--primary-color);
}

.modal h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-family: "Sarabun", sans-serif;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.success-message {
  padding: 15px;
  background-color: #dff0d8;
  color: #3c763d;
  border-radius: 4px;
  margin-top: 20px;
  text-align: center;
  display: none;
}

@media (max-width: 768px) {
  header .container {
    flex-direction: row;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: #fff;
    padding: 80px 20px 20px;
    transition: 0.3s;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    margin-top: 0;
  }

  nav ul li {
    margin: 10px 0;
  }

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

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

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

  #hero h1 {
    font-size: 2.5rem;
  }

  #hero h2 {
    font-size: 1.5rem;
  }

  section h2 {
    font-size: 2rem;
  }

  #video-demo h2 {
    font-size: 2rem;
  }

  #video-demo p {
    font-size: 1rem;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-column {
    width: 100%;
    margin-bottom: 20px;
  }

  #how-to-install .container {
    padding: 0 1rem;
  }

  #how-to-install li {
    font-size: 1rem;
    padding: 1.25rem;
  }

  #how-to-install h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
}
