/* ═══════════════════════════════════════════════
   How It Works Page
   Font: Montserrat
   ═══════════════════════════════════════════════ */

.hd-hiw {
  font-family: 'Montserrat', sans-serif;
  color: #1A1A1A;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.hd-hiw *,
.hd-hiw *::before,
.hd-hiw *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.hd-hiw a {
  text-decoration: none;
  color: inherit;
}

/* ─── Hero ─── */

.hd-hiw-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 80px 120px 60px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF5F5 50%, #FFF0EB 100%);
  text-align: center;
}
.hd-hiw-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  color: #1A1A1A;
}
.hd-hiw-hero-sub {
  font-size: 20px;
  line-height: 1.6;
  color: #6B7280;
  max-width: 640px;
}

/* ─── Step sections ─── */

.hd-hiw-step {
  padding: 80px 120px;
}
.hd-hiw-step--white {
  background: #FFFFFF;
}
.hd-hiw-step--grey {
  background: #F6F7F8;
}
.hd-hiw-step-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.hd-hiw-step-inner--reverse > .hd-hiw-step-text {
  order: 2 !important;
}
.hd-hiw-step-inner--reverse > .hd-hiw-step-visual {
  order: 1 !important;
}

/* Step text */
.hd-hiw-step-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-width: 0;
}
.hd-hiw-step-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #1A1A1A;
}
.hd-hiw-step-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #6B7280;
}

/* Badge */
.hd-hiw-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Step visual (right/left panel) */
.hd-hiw-step-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 500px;
  height: 354px;
  flex-shrink: 0;
  border-radius: 16px;
  background: #F6F7F8;
  border: 1px solid #E5E7EB;
}
.hd-hiw-step--grey .hd-hiw-step-visual {
  background: #FFFFFF;
}
.hd-hiw-visual-label {
  font-size: 14px;
  color: #9CA3AF;
}
.hd-hiw-visual-small-label {
  font-size: 12px;
  font-weight: 600;
  color: #9CA3AF;
  align-self: flex-start;
  padding: 0 32px;
}

/* Step 1: Upload visual */
.hd-hiw-photo-row {
  display: flex;
  gap: 12px;
}
.hd-hiw-photo-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
}

/* Step 2: Describe visual */
.hd-hiw-visual--describe {
  gap: 16px;
  padding: 32px;
}
.hd-hiw-visual--describe .hd-hiw-visual-small-label {
  padding: 0;
}
.hd-hiw-text-box {
  width: 100%;
  height: 100px;
  border-radius: 10px;
  background: #F6F7F8;
  border: 1px solid #E5E7EB;
  padding: 12px 16px;
}
.hd-hiw-step--grey .hd-hiw-text-box {
  background: #F6F7F8;
}
.hd-hiw-text-box-placeholder {
  font-size: 14px;
  color: #9CA3AF;
}
.hd-hiw-style-pills {
  display: flex;
  gap: 8px;
}
.hd-hiw-style-pill {
  width: 60px;
  height: 60px;
  border-radius: 8px;
}

/* Step 3: Styles visual */
.hd-hiw-visual--styles {
  gap: 16px;
  padding: 24px;
}
.hd-hiw-visual--styles .hd-hiw-visual-small-label {
  font-size: 14px;
  font-weight: 600;
  color: #6B7280;
  padding: 0;
}
.hd-hiw-style-grid {
  display: flex;
  gap: 16px;
}
.hd-hiw-style-card {
  width: 120px;
  height: 160px;
  border-radius: 12px;
}

/* Step 4: Deliver visual */
.hd-hiw-visual--deliver {
  gap: 20px;
}
.hd-hiw-envelope {
  width: 200px;
  height: 140px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
}

/* ─── CTA ─── */

.hd-hiw-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 100px 120px;
  background: linear-gradient(135deg, #E64367 0%, #ED7A8E 50%, #E8836E 100%);
  text-align: center;
}
.hd-hiw-cta-emoji {
  font-size: 48px;
  line-height: 1;
}
.hd-hiw-cta h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  max-width: 700px;
}
.hd-hiw-cta p {
  font-size: 18px;
  line-height: 1.6;
  color: #FFFFFFCC;
  max-width: 600px;
}
.hd-hiw-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 44px;
  border-radius: 26px;
  background: #fff !important;
  color: #E64367 !important;
  font-size: 17px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 8px 30px #00000020;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hd-hiw-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px #00000030;
}

/* ─── Responsive ─── */

@media (max-width: 1100px) {
  .hd-hiw-hero,
  .hd-hiw-step,
  .hd-hiw-cta {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 900px) {
  .hd-hiw-hero-title {
    font-size: 40px;
  }
  .hd-hiw-step-inner,
  .hd-hiw-step-inner--reverse {
    flex-direction: column !important;
  }
  .hd-hiw-step-inner--reverse > .hd-hiw-step-text,
  .hd-hiw-step-inner--reverse > .hd-hiw-step-visual {
    order: unset !important;
  }
  .hd-hiw-step-visual {
    width: 100%;
    max-width: 500px;
    height: 280px;
  }
  .hd-hiw-step-text h2 {
    font-size: 26px;
  }
  .hd-hiw-cta h2 {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .hd-hiw-hero,
  .hd-hiw-step,
  .hd-hiw-cta {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hd-hiw-hero-title {
    font-size: 32px;
  }
  .hd-hiw-step-visual {
    height: 220px;
  }
  .hd-hiw-style-card {
    width: 80px;
    height: 110px;
  }
  .hd-hiw-photo-thumb {
    width: 60px;
    height: 60px;
  }
}
