:root {
  --primary: #1aad64;
  --primary-light: #e0f5eb;
  --text: #333333;
  --text-light: #666666;
  --background: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --gradient: linear-gradient(135deg, #1aad64 0%, #0d8a4a 100%);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f8fafc;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

header {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 20px;
  background: var(--gradient);
  color: white;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

header p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.95);
}

.three-steps {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 40px 20px;
  background: #f9fafb;
  border-radius: 16px;
  margin: 24px 0 32px 0;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.three-steps .step {
  text-align: center;
  max-width: 240px;
  background: var(--background);
  border-radius: 12px;
  padding: 24px 18px 20px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
}
.three-steps .step:hover {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 8px 32px rgba(26,173,100,0.09);
  border-color: var(--primary);
}
.step-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  color: var(--primary);
}
.three-steps h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
}
.three-steps p {
  font-size: 0.97rem;
  color: var(--text-light);
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .three-steps {
    gap: 16px;
    padding: 28px 8px;
  }
  .three-steps .step {
    max-width: 180px;
    padding: 16px 8px 14px 8px;
  }
}
@media (max-width: 650px) {
  .three-steps {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 18px 2vw;
  }
  .three-steps .step {
    max-width: 100%;
    width: 100%;
    padding: 16px 10px;
  }
}

section {
  background: var(--background);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}


/* Success Stories Section */
#success-stories {
  padding: 2rem 1rem;
  background: var(--background);
  font-family: inherit;
  text-align: center;
  margin: 1rem 0;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -1px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.08rem;
  margin-bottom: 2rem;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.2rem;
  margin: 3rem auto;
  max-width: 1100px;
  padding: 0 1rem;
}

.story-card {
  background: var(--background);
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
  text-align: left;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.story-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 32px rgba(26, 173, 100, 0.13);
}

.story-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.client-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26, 173, 100, 0.08);
}

.client-info {
  display: flex;
  flex-direction: column;
}

.story-header h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.client-tag {
  font-size: 0.85rem;
  color: var(--primary);
  margin-top: 0.18rem;
  font-weight: 500;
}

.story-body p {
  color: var(--text-light);
  font-size: 1.01rem;
  line-height: 1.5;
}

.story-body strong {
  color: var(--primary);
}

.more-stories-link {
  margin-top: 2.5rem;
  text-align: center;
}

.more-stories-link a {
  font-weight: 600;
  font-size: 1.07rem;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.more-stories-link a:hover {
  color: #0d8a4a;
  text-decoration: underline;
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
  .stories-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 700px;
    gap: 1.3rem;
  }
}

@media screen and (max-width: 600px) {
  #success-stories {
    padding: 2.2rem 0.5rem;
  }
  .stories-grid {
    grid-template-columns: 1fr;
    max-width: 98vw;
    gap: 1rem;
    margin: 1.5rem auto;
  }
  .story-card {
    padding: 1.1rem 0.7rem;
  }
  .client-logo {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .section-header h2 {
    font-size: 1.3rem;
  }
  .story-header h3 {
    font-size: 0.98rem;
  }
  .client-tag {
    font-size: 0.76rem;
  }
  .story-body p {
    font-size: 0.92rem;
  }
}

#success-stories::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #2ecc71);
}
#success-stories h2 {
  text-align: center;
  color: #1a3b2d;
  margin: 0 auto 20px;
  letter-spacing: -0.5px;
  font-weight: 800;
  position: relative;
  max-width: 800px;
  line-height: 1.2;
  padding: 0 20px;
}
#success-stories h2::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), #2ecc71);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}
.carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  box-sizing: border-box;
}
.carousel-track-wrapper {
  overflow: visible;
  flex: 1;
  padding: 20px 0 40px;
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 30px;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  list-style: none;
  padding: 20px 10px 40px;
  margin: 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.carousel-slide {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 320px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: stretch;
  opacity: 1;
  animation: fadeIn 0.7s;
  padding: 10px;
  scroll-snap-align: start;
}
@media (max-width: 900px) {
  .carousel-slide {
    min-width: 100%;
    max-width: 100%;
    padding: 0 8px;
    animation: fadeIn 0.7s;
  }
}

@media (max-width: 900px) {
  .carousel-slide {
    min-width: 100%;
    max-width: 100%;
    padding: 0 8px;
    animation: fadeIn 0.7s;
  }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.carousel-track {
  display: flex;
  width: 100%;
  gap: 0;
  transition: transform 0.6s cubic-bezier(0.7,0.2,0.2,1);
  will-change: transform;
  list-style: none;
  padding: 0;
  margin: 0;
}

.carousel-testimonial {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
  padding: 36px 32px 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  height: 100%;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  overflow: hidden;
}

.carousel-testimonial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #2ecc71);
  opacity: 0.9;
  transition: all 0.3s ease;
}
.carousel-testimonial:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 15px 50px -10px rgba(26, 173, 100, 0.2);
}

.carousel-testimonial:hover::before {
  opacity: 1;
  height: 6px;
}
.carousel-testimonial .testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1aad64 0%, var(--primary) 100%);
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -50px 0 12px 0;
  box-shadow: 0 6px 16px rgba(26, 173, 100, 0.2);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.carousel-testimonial:hover .testimonial-avatar {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(26, 173, 100, 0.3);
}
.carousel-testimonial .testimonial-quote {
  font-size: 1.1rem;
  color: #3d4457;
  line-height: 1.7;
  margin: 10px 0 16px;
  position: relative;
  font-weight: 400;
  font-style: normal;
}

.carousel-testimonial .testimonial-quote::before {
  content: '\201C';
  font-size: 4rem;
  position: absolute;
  left: -18px;
  top: -20px;
  color: rgba(26, 173, 100, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
  z-index: 0;
}
.carousel-testimonial .testimonial-client {
  font-weight: 700;
  color: #1a1f2e;
  font-size: 1.15rem;
  margin: auto 0 0 0;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.carousel-testimonial .testimonial-client::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  margin-left: 12px;
  opacity: 0.6;
}
.carousel-testimonial .testimonial-region {
  font-size: 0.95rem;
  color: #6b7280;
  margin-top: 4px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.carousel-testimonial .testimonial-region::before {
  content: '📍';
  margin-right: 6px;
  font-size: 1rem;
}
.carousel-btn {
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  margin: 0 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.carousel-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #1aad64 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.carousel-btn:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 173, 100, 0.25);
}

.carousel-btn:hover::before {
  opacity: 1;
}

.carousel-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 15px rgba(26, 173, 100, 0.2);
}
.carousel-btn:hover, .carousel-btn:focus {
  background: #0d8a4a;
  outline: none;
  transform: scale(1.08);
}
.carousel-pagination {
  display: flex;
  justify-content: center;
  margin: 40px 0 10px;
  gap: 10px;
  position: relative;
  z-index: 10;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: #e0e6ed;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.carousel-dot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #1aad64);
  transition: width 0.3s ease;
}

.carousel-dot.active {
  width: 30px;
  background: #e0e6ed;
}

.carousel-dot.active::before {
  width: 100%;
}

.carousel-dot:hover {
  transform: translateY(-2px);
}
@media (max-width: 900px) {
  .carousel-slide {
    min-width: 100%;
    max-width: 100%;
    padding: 0 8px;
    animation: fadeIn 0.7s;
  }
  .carousel-testimonial {
    padding: 22px 10px 18px 10px;
    margin: 10px 0;
  }
  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    margin: 0 8px;
  }
  .carousel-pagination {
    gap: 8px;
    margin-top: 14px;
  }
  .carousel-dot {
    width: 11px;
    height: 11px;
    border-width: 2px;
  }
}

.carousel-testimonial {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 10px rgba(26,173,100,0.07);
  padding: 22px 20px 18px 20px;
  margin: 10px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
  height: 100%;
}
.carousel-testimonial .testimonial-quote {
  font-size: 1.08rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 10px;
}
.carousel-testimonial .testimonial-client {
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
}
.carousel-testimonial .testimonial-region {
  font-size: 0.93rem;
  color: var(--text-light);
}
.carousel-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.4rem;
  cursor: pointer;
  margin: 0 10px;
  box-shadow: 0 2px 8px rgba(26,173,100,0.07);
  transition: background 0.2s, box-shadow 0.2s;
  z-index: 2;
}
.carousel-btn:hover, .carousel-btn:focus {
  background: #0d8a4a;
  outline: none;
}
.carousel-pagination {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  gap: 8px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}
.carousel-dot.active {
  background: var(--primary);
  border-color: #0d8a4a;
}
@media (max-width: 900px) {
  .carousel-slide {
    min-width: 50%;
  }
}
@media (max-width: 650px) {
  #success-stories {
    padding: 18px 2vw 20px 2vw;
  }
  .carousel {
    flex-direction: column;
    gap: 8px;
  }
  .carousel-slide {
    min-width: 100%;
    padding: 0 4px;
  }
  .carousel-track {
    gap: 0;
  }
}


h2 {
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 700;
  padding-bottom: 15px;
}

h3 {
  color: var(--text);
  font-size: 1.3rem;
  margin: 25px 0 15px;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px 15px;
  margin-bottom: 10px;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 0px;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: #f8fafc;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  color: var(--text);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 173, 100, 0.15);
  outline: none;
  background-color: white;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.checkbox-group,
.file-upload-section {
  background-color: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin: 15px 0;
}

.checkbox-group > div {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  accent-color: var(--primary);
}

.checkbox-group input[type="text"] {
  margin-left: 10px;
  flex: 1;
  max-width: 200px;
}

.required {
  color: #ef4444;
  margin-left: 3px;
}

.file-upload-section h3 {
  margin-top: 0;
  color: var(--text);
  font-size: 1.1rem;
}

.file-upload-section p {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.file-upload-section div {
  margin-bottom: 15px;
}

button[type="submit"] {
  background: var(--gradient);
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.loader {
  border: 3px solid rgba(26, 173, 100, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary);
  width: 30px;
  height: 30px;
  animation: spin 1s ease-in-out infinite;
  margin: 20px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.message {
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  font-weight: 500;
  text-align: center;
}

.message.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.message.error {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

footer {
  text-align: center;
  padding: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 40px;
}

/* Results Section */
#results-section {
  background: #f8fafc;
  border: 1px solid var(--border);
}

#results-section h3 {
  color: var(--text);
  font-size: 1.3rem;
  margin: 25px 0 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

#results-section h3:first-child {
  margin-top: 0;
}

#ai-results ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 30px;
}

#ai-results li {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.6;
  color: var(--text-light);
}

#ai-results li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

#ai-results li strong {
  color: var(--text);
  font-weight: 600;
}

/* Specific styling for each result type */
#results-positives li {
  border-left: 4px solid #10b981; /* Green */
}

#results-negatives li {
  border-left: 4px solid #ef4444; /* Red */
}

#results-quick-fixes li {
  border-left: 4px solid #f59e0b; /* Amber */
}

#results-strategic-advice li { 
  border-left: 4px solid #3b82f6; 
}

#ai-results b {
  color: #2c5282;
  font-weight: 600;
}

#results-positives {
  border-left: 0px solid #48bb78;
  padding-left: 15px;
}

#results-negatives {
  border-left: 0px solid #f56565;
  padding-left: 15px;
}

#results-quick-fixes {
  border-left: 0px solid #ed8936;
  padding-left: 15px;
}

#results-strategic-advice {
  border-left: 0px solid #805ad5;
  padding-left: 15px;
}

/* Ensure HTML content is properly displayed */
#ai-results div p,
#ai-results div ul,
#ai-results div ol,
#ai-results div h3 {
  all: revert;
  margin-bottom: 15px;
  line-height: 1.7;
  color: #4a5568;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  header {
    padding: 30px 20px;
    margin: 10px -15px;
    border-radius: 0;
  }
  
  header h1 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 20px 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .checkbox-group input[type="text"] {
    max-width: 100%;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

section {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}