
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
    --theme-color: {data.theme_color};
}

body {
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 700px;
  margin: 60px auto;
}

h1 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 10px;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

.form-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

label {
  display: block;
  margin-top: 18px;
  margin-bottom: 8px;
  font-weight: bold;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

textarea {
  height: 120px;
  resize: vertical;
}

input[type="color"] {
  height: 45px;
  padding: 3px;
  cursor: pointer;
}

button {
  width: 100%;
  margin-top: 25px;
  padding: 14px;
  border: none;
  border-radius: 6px;
  background: var(--theme-color);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  opacity: 0.9;
}

#message {
  text-align: center;
  margin-top: 20px;
  font-weight: bold;
}

#websitePreview {
  margin-top: 30px;
}

.preview {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.preview-header {
  padding: 50px 30px;
  text-align: center;
  color: white;
  background: var(--theme-color);
}

.preview-header h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.preview-header p {
  font-size: 16px;
}

.preview-content {
  padding: 30px;
}

.preview-content h3 {
  margin-bottom: 15px;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.service {
  padding: 20px;
  background: #f4f7fb;
  border-radius: 8px;
  text-align: center;
}

/* =========================================
   GENERATED WEBSITE
   ========================================= */

.generated-site {
  width: 100%;
  margin-top: 30px;
  background: var(--theme-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

/* =========================================
   NAVIGATION
   ========================================= */

.site-nav {
  min-height: 70px;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--theme-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: white;
}

.logo img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 15px;
  font-weight: 500;
  transition: 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.75;
}

/* =========================================
   HOME / HERO
   ========================================= */

.hero {
  min-height: 420px;
  padding: 90px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background: var(--theme-color) !important;
}

.hero-content {
  width: 100%;
  max-width: 750px;
  margin: auto;
}

.business-type {
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 18px;
  opacity: 0.9;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.15;
  margin: 0 0 22px;
}

.hero p {
  font-size: 17px;
  line-height: 1.8;
  margin: 0 auto;
  max-width: 650px;
}

/* =========================================
   ABOUT
   ========================================= */

.section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 80px 30px;
  text-align: center;
  color: white;
  background: var(--theme-color) !important;
}

.section h2,
.contact-section h2 {
  font-size: 34px;
  margin-bottom: 20px;
  color: white;
}

.section > p {
  max-width: 700px;
  margin: auto;
  line-height: 1.8;
  color: white;
  font-size: 16px;
}

/* =========================================
   SERVICES
   ========================================= */

.services-section {
  width: 100%;
  max-width: none;
  background: var(--theme-color) !important;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  padding: 22px;
  background: white;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  margin: 0 auto 15px;
  background: var(--theme-color) !important;
}

.service-card h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--theme-color);
}

.service-card p {
  color: #666666;
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================
   FEATURES / WHY CHOOSE US
   ========================================= */

#features {
  width: 100%;
  padding: 70px 8%;
  background: var(--theme-color) !important;
  color: white;
}

#features h2 {
  text-align: center;
  font-size: 34px;
  margin-bottom: 25px;
  color: white;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

#features .feature-card {
  padding: 22px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  border-top: 4px solid var(--theme-color);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

#features .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

#features .feature-card h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--theme-color);
}

#features .feature-card p {
  margin: 0;
  color: #666666;
  font-size: 15px;
  line-height: 1.6;
}

/* =========================================
   CALL TO ACTION
   ========================================= */

.cta-section {
  width: 100%;
  padding: 90px 8%;
  text-align: center;
  background: var(--theme-color) !important;
  color: white;
}

.cta-section h2 {
  color: white;
  font-size: 40px;
  margin-bottom: 18px;
}

.cta-section p {
  max-width: 700px;
  margin: 0 auto 30px;
  color: white;
  font-size: 18px;
  line-height: 1.7;
}

.cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  background: white;
  color: var(--theme-color);
  transition: 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* =========================================
   CONTACT
   ========================================= */

.contact-section {
  width: 100%;
  padding: 80px 30px;
  text-align: center;
  color: white;
  background: var(--theme-color) !important;
}

.contact-section h2 {
  margin-bottom: 15px;
  color: white;
}

.contact-section > p {
  margin-bottom: 35px;
  color: white;
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.contact-item {
  min-width: 200px;
}

.contact-item strong {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
}

.contact-item p {
  margin: 0;
  color: white;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  padding: 30px;
  text-align: center;
  background: var(--theme-color) !important;
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.site-footer h3 {
  margin-bottom: 10px;
  color: white;
}

.site-footer p {
  color: white;
  font-size: 14px;
}

/* =========================================
   BUSINESS ENDING
   ========================================= */

.business-ending {
  width: 100%;
  padding: 30px 20px;
  text-align: center !important;
  background: var(--theme-color) !important;
  color: white;
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.business-ending h3 {
  margin: 0 0 8px;
  text-align: center !important;
  font-size: 22px;
  color: white;
}

.business-ending p {
  margin: 0;
  text-align: center !important;
  color: white;
  font-size: 14px;
}

/* =========================================
   WEBSITE TEMPLATES
   ========================================= */

.modern-template {
  border-radius: 12px;
}

.modern-template .site-nav {
  padding: 20px 35px;
}

.modern-template .hero {
  min-height: 420px;
  padding: 90px 30px;
}

.modern-template .hero h1 {
  font-size: 52px;
  font-weight: 700;
}

.modern-template .service-card {
  border-radius: 14px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.modern-template .service-card:hover {
  transform: translateY(-5px);
}

/* =========================================
   MINIMAL TEMPLATE
   ========================================= */

.minimal-template {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  box-shadow: none;
}

.minimal-template .site-nav {
  padding: 25px 40px;
}

.minimal-template .nav-links {
  gap: 20px;
}

.minimal-template .hero {
  min-height: 350px;
  padding: 70px 30px;
}

.minimal-template .hero h1 {
  font-size: 44px;
  font-weight: 400;
}

.minimal-template .hero p {
  font-weight: 400;
}

.minimal-template .section {
  padding: 70px 30px;
}

.minimal-template .service-card {
  background: white;
  border: 1px solid #dddddd;
  border-radius: 4px;
  box-shadow: none;
}

.minimal-template .service-card:hover {
  transform: none;
  box-shadow: none;
}

.minimal-template .business-ending {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* =========================================
   PROFESSIONAL TEMPLATE
   ========================================= */

.professional-template {
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.professional-template .site-nav {
  padding: 18px 45px;
  min-height: 75px;
}

.professional-template .logo {
  font-size: 24px;
}

.professional-template .nav-links {
  gap: 32px;
}

.professional-template .hero {
  min-height: 460px;
  padding: 100px 30px;
}

.professional-template .hero h1 {
  font-size: 56px;
  font-weight: 700;
}

.professional-template .section {
  padding: 90px 30px;
}

.professional-template .service-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

.professional-template .service-card:hover {
  transform: translateY(-3px);
}

/* =========================================
   TEMPLATE SELECTION CARDS
   ========================================= */

.template-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 15px 0 25px;
}

.template-card {
  width: 100%;
  min-width: 0;
  padding: 12px;
  box-sizing: border-box;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.template-card:hover {
  transform: translateY(-3px);
  border-color: var(--theme-color);
}

.template-card.selected {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.template-card h3 {
  margin: 12px 5px 5px;
  font-size: 17px;
}

.template-card p {
  margin: 0 5px 5px;
  color: #666666;
  font-size: 13px;
}

/* =========================================
   TEMPLATE PREVIEW
   ========================================= */

.template-preview {
  width: 100%;
  height: 150px;
  box-sizing: border-box;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eeeeee;
  background: white;
}

.preview-nav {
  height: 22px;
  background: white;
  border-bottom: 1px solid #eeeeee;
}

.preview-hero {
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: var(--theme-color);
}

.preview-hero span:first-child {
  width: 70px;
  height: 7px;
  border-radius: 5px;
  background: white;
}

.preview-hero span:nth-child(2) {
  width: 110px;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.75);
}

.preview-hero span:nth-child(3) {
  width: 80px;
  height: 4px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.55);
}

.preview-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 58px;
}

.preview-content span {
  width: 45px;
  height: 32px;
  border-radius: 5px;
  background: #eeeeee;
}

/* Modern preview */

.modern-preview .preview-hero {
  background: var(--theme-color);
}

/* Minimal preview */

.minimal-preview .preview-hero {
  background: var(--theme-color);
}

/* Professional preview */

.professional-preview .preview-hero {
  background: var(--theme-color);
}

.professional-preview .preview-content span {
  background: #d9dde5;
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {
  #features {
    padding: 55px 6%;
  }

  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-nav {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  .nav-links {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 14px;
  }

  .hero {
    min-height: 350px;
    padding: 70px 20px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 15px;
  }

  .section {
    padding: 60px 20px;
  }

  .section h2,
  .contact-section h2 {
    font-size: 28px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .contact-details {
    gap: 30px;
  }

  .template-options {
    grid-template-columns: 1fr;
  }

  .template-preview {
    height: 170px;
  }
}
.image-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.image-preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ddd;
}

@media (max-width: 768px) {
    .image-preview {
        grid-template-columns: 1fr;
    }
}
#generateBtn {
    display: block;
    visibility: visible;
    opacity: 1;
    width: 100%;
    min-height: 48px;
    margin: 24px 0;
    padding: 14px 20px;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

#generateBtn:hover {
    background-color: #1d4ed8;
}

#generateBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
