@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --orange: #F7941D;
  --orange-light: #ffb04d;
  --orange-dark: #d67e15;
  --dark: #14161a;
  --dark-2: #1b1e24;
  --navy: #0b3c5d;
  --text-light: #9aa0aa;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: #fff;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.required {
  color: var(--orange);
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Buttons */
.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: 0.2s ease-in-out;
}

.btn[hidden] {
  display: none !important;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.88rem;
  border-radius: 6px;
}

.btn-primary {
  background: var(--orange);
  color: #14161a;
  box-shadow: 0 4px 14px rgba(247, 148, 29, 0.25);
}

.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 6px 18px rgba(247, 148, 29, 0.35);
  transform: translateY(-1px);
}

.btn-cta {
  background: #14161a;
  color: #fff;
}

.btn-cta:hover {
  background: #000;
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
  text-align: center;
}

.btn-ghost {
  background: transparent;
  color: var(--dark);
  border: 1px solid #e2ddd5;
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  text-decoration: none;
}

.brand-logo {
  height: 32px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
}

.brand-text em {
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 500;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Eyebrow label */
.eyebrow {
  display: block;
  color: var(--orange);
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.eyebrow-center {
  margin-left: auto;
  margin-right: auto;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
  position: relative;
}

/* Hero */
.hero {
  position: relative;
  padding: 130px 24px 110px;
  border-bottom: 1px solid #eee;
  background:
    radial-gradient(circle at 15% 20%, rgba(247, 148, 29, 0.14) 0%, rgba(247, 148, 29, 0) 45%),
    radial-gradient(circle at 85% 80%, rgba(247, 148, 29, 0.1) 0%, rgba(247, 148, 29, 0) 40%),
    #fffaf3;
  overflow: hidden;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.4rem;
  color: var(--dark);
}

.hero-highlight {
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Trust badge */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  border-radius: 30px;
  padding: 8px 18px;
  margin: 0 auto 1.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  width: fit-content;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

/* Influencer banner */
.influencer-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(247, 148, 29, 0.08);
  border: 1px solid rgba(247, 148, 29, 0.25);
  border-radius: 30px;
  padding: 8px 18px;
  margin: 0 auto 1.6rem;
  width: fit-content;
}

.influencer-banner[hidden] {
  display: none;
}

.influencer-banner p {
  margin: 0;
  font-size: 0.85rem;
  color: #7a5a2e;
  text-align: center;
}

.influencer-banner strong {
  color: var(--dark);
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #6b6560;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.section-subtext {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.why-join .section-subtext,
.courses .section-subtext {
  color: #777;
}

/* How It Works */
.how-it-works {
  background: #fff;
  color: var(--dark);
}

.how-it-works h2 {
  color: var(--dark);
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: left;
  position: relative;
}

.step-card {
  position: relative;
  padding: 0 20px 0 0;
}

.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(100% - 20px);
  width: 40px;
  height: 1px;
  background: #e5e5e5;
}

.step-number {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.step-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.step-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.55;
}

/* Courses */
.courses {
  background: #fafafa;
  color: var(--dark);
}

.courses h2 {
  color: var(--dark);
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.course-loading {
  grid-column: 1 / -1;
  color: #888;
}

.course-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: left;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: 0.2s ease-in-out;
}

.course-card:hover {
  border-color: var(--orange);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.course-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(247, 148, 29, 0.1);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.course-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.course-apply-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.course-card:hover .course-apply-link i {
  transform: translateX(3px);
}

.course-apply-link i {
  font-size: 0.7rem;
  transition: 0.2s ease-in-out;
}

/* Why Join */
.why-join {
  background: #fff;
  color: var(--dark);
}

.why-join h2 {
  color: var(--dark);
  font-size: 1.9rem;
  margin-bottom: 3rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(247, 148, 29, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  transition: 0.2s ease-in-out;
}

.icon-badge i {
  font-size: 1.1rem;
  color: var(--orange);
}

.why-card {
  padding: 20px;
  border-radius: 12px;
  transition: 0.2s ease-in-out;
}

.why-card:hover {
  background: rgba(247, 148, 29, 0.04);
}

.why-card:hover .icon-badge {
  background: var(--orange);
}

.why-card:hover .icon-badge i {
  color: #fff;
}

.why-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.why-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.55;
}

/* Testimonials */
.testimonials {
  background: var(--dark-2);
}

.testimonials h2 {
  font-size: 1.9rem;
  margin-bottom: 3rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  text-align: left;
}

.testimonial-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-light);
  padding: 20px;
}

.testimonial-card {
  background: var(--dark-2);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 2px solid transparent;
  transition: 0.2s ease-in-out;
}

.testimonial-card:hover {
  border-top-color: var(--orange);
  background: #20232a;
}

.testimonial-quote {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-light);
}

.testimonial-quote::before {
  content: '\201C';
  color: var(--orange);
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  margin-right: 2px;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.testimonial-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.testimonial-course {
  font-size: 0.76rem;
  color: var(--orange);
}

/* FAQ */
.faq {
  background: #fff;
  color: var(--dark);
}

.faq h2 {
  color: var(--dark);
  font-size: 1.9rem;
  margin-bottom: 3rem;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid #eee;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--dark);
  text-align: left;
}

.faq-question i {
  color: var(--orange);
  font-size: 0.85rem;
  transition: transform 0.25s ease-in-out;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease-in-out;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer p {
  overflow: hidden;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  padding-right: 30px;
}

.faq-item.open .faq-answer p {
  padding-bottom: 20px;
}

/* CTA */
.cta {
  background: var(--orange);
}

.cta-inner {
  padding: 90px 24px;
}

.cta h2 {
  color: #14161a;
  font-size: 2.1rem;
  margin-bottom: 0.8rem;
}

.cta p {
  color: #3a2c14;
  font-size: 1.02rem;
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  background: var(--dark);
  text-align: center;
  padding: 30px 24px;
  color: #777;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay[hidden] {
  display: none;
}

.form-card {
  background: #fff;
  color: var(--dark);
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: #999;
}

.form-card h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
  padding-right: 2rem;
}

.form-intro {
  font-size: 0.88rem;
  color: #777;
  margin-bottom: 1.5rem;
}

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.step-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.step-dot-wrap small {
  font-size: 0.7rem;
  color: #999;
  font-weight: 600;
  white-space: nowrap;
}

.step-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #e2ddd5;
  color: #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: 0.2s ease-in-out;
}

.step-dot-wrap.active .step-dot {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.step-dot-wrap.active small {
  color: var(--dark);
}

.step-dot-wrap.completed .step-dot {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(247, 148, 29, 0.08);
}

.step-line {
  flex: 1;
  height: 1.5px;
  background: #e2ddd5;
  margin: 19px 8px 0;
  transition: 0.2s ease-in-out;
}

.step-line.completed {
  background: var(--orange);
}

/* Multi-step form */
.form-step {
  display: none;
  animation: stepIn 0.3s ease-in-out;
}

.form-step.active {
  display: block;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}

.step-label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
}

.form-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.6rem;
}

.form-nav #nextBtn,
.form-nav #submitBtn {
  margin-left: auto;
}

.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;
}

/* Course picker (inside the form) */
.course-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 0.3rem;
}

.course-picker-card {
  position: relative;
  background: #fafafa;
  border: 1.5px solid #ececec;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--dark);
  transition: 0.15s ease-in-out;
}

.course-picker-card:hover {
  border-color: var(--orange);
}

.course-picker-card.selected {
  background: rgba(247, 148, 29, 0.08);
  border-color: var(--orange);
  color: var(--orange-dark);
}

.course-picker-card .check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 0.6rem;
  display: none;
  align-items: center;
  justify-content: center;
}

.course-picker-card.selected .check {
  display: flex;
}

.form-message {
  padding: 10px 12px;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  font-size: 0.88rem;
}

.form-message.success {
  background-color: rgba(0, 128, 0, 0.08);
  color: #1a7d1a;
  border: 1px solid rgba(0, 128, 0, 0.3);
}

.form-message.error {
  background-color: rgba(255, 0, 0, 0.06);
  color: #c0392b;
  border: 1px solid rgba(255, 0, 0, 0.25);
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 1.4rem;
}

.form-row > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.form-group {
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-card label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.88rem;
}

.hint {
  font-size: 0.76rem;
  color: #888;
  margin: 0;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="date"],
.form-card input[type="password"],
.form-card input[type="file"],
.form-card textarea,
.form-card select {
  padding: 0.6rem 0.7rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.92rem;
  background: transparent;
  font-family: 'Inter', sans-serif;
  width: 100%;
}

/* Password show/hide toggle */
.password-field {
  position: relative;
}

.password-field input[type="password"],
.password-field input[type="text"] {
  padding-right: 2.4rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  font-size: 0.9rem;
  padding: 4px;
  display: flex;
  align-items: center;
}

.password-toggle:hover {
  color: var(--orange);
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  outline: none;
  border-color: var(--orange);
}

.form-card .error-border {
  border-color: #c0392b !important;
}

.form-row small,
.form-group small {
  color: #c0392b;
  font-size: 0.76rem;
}

.form-group small:empty {
  display: none;
}

/* Success view — replaces the form after a successful submit */
.success-view {
  text-align: center;
  padding: 20px 10px 10px;
}

.success-view[hidden] {
  display: none;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 128, 0, 0.08);
  color: #1a7d1a;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
}

.success-view h2 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.success-view > p {
  color: #666;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 1.6rem;
}

.success-redirect {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 1.6rem;
}

.success-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #eee;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* Responsive */
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }
  .step-card:nth-child(2)::after {
    display: none;
  }
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 12px 16px;
  }
  .hero {
    padding: 80px 20px 60px;
  }
  .hero h1 {
    font-size: 1.85rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    text-align: center;
  }
  .section-inner {
    padding: 60px 20px;
  }
  .why-join h2,
  .testimonials h2,
  .how-it-works h2,
  .courses h2,
  .faq h2 {
    font-size: 1.6rem;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid,
  .course-grid {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
  .step-card::after {
    display: none !important;
  }
  .section-subtext {
    margin-bottom: 2rem;
  }
  .cta-inner {
    padding: 60px 20px;
  }
  .cta h2 {
    font-size: 1.7rem;
  }
  .brand-text {
    font-size: 0.85rem;
  }
  .brand-text em {
    font-size: 0.6rem;
  }
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
  .form-card {
    padding: 1.5rem;
  }
  .course-picker-grid {
    grid-template-columns: 1fr;
  }
  .step-dot-wrap small {
    display: none;
  }
  .step-dot {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
  .step-line {
    margin: 16px 6px 0;
  }
  .trust-badge {
    font-size: 0.76rem;
    padding: 7px 14px;
    text-align: center;
  }
  .form-nav {
    gap: 8px;
  }
  .form-nav .btn {
    padding: 12px 16px;
    font-size: 0.92rem;
    flex: 1;
  }
  .form-nav #nextBtn,
  .form-nav #submitBtn {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    height: 26px;
  }
  .brand-text em {
    display: none;
  }
}
