/* ================================================================
   CLEVERFOX — styles.css
   Design system → colors, typography, layout, components
   ================================================================ */

/* ----------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   ---------------------------------------------------------------- */
:root {
  /* Brand colors */
  --clr-green:         #acd1b0;
  --clr-green-dark:    #3a473c;
  --clr-green-border:  #97b49a;
  --clr-cream:         #f5f1e7;
  --clr-off-white:     #fffdfa;
  --clr-white:         #ffffff;
  --clr-orange:        #ff6333;
  --clr-orange-light:  #ffa589;
  --clr-orange-bg:     #fff4ef;
  --clr-orange-dark:   #e0552b;
  --clr-dark:          #151915;
  --clr-text:          #3a473c;
  --clr-warm-gray:     #f7f5f3;

  /* Extended palette */
  --clr-brown-dark:    #291008;
  --clr-brown-red:     #5e2513;
  --clr-brown:         #3a3530;
  --clr-near-black:    #1e1914;
  --clr-salmon:        #ff845e;
  --clr-muted:         #aba6a1;
  --clr-border-warm:   #e4dfda;
  --clr-gray-lightest: #f9f9f9;
  --clr-gray-light:    #f0f0f0;
  --clr-gray-mid:      #cccccc;
  --clr-gray:          #aaaaaa;
  --clr-gray-muted:    #888888;
  --clr-danger-bg:     #F7F5F3;
  --clr-danger-border: #FFC5B4;

  /* Typography */
  --font-display: 'Changa One', Impact, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs:   8px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  60px;
  --space-2xl: 80px;
  --space-3xl: 120px;
}

/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--clr-dark);
  background-color: var(--clr-green);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

strong {
  font-weight: 700;
}

/* ----------------------------------------------------------------
   3. REUSABLE COMPONENTS
   ---------------------------------------------------------------- */

/* --- Badge / label chip --- */
.badge {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 20px;
  background-color: var(--clr-orange-bg);
  border: 2px solid var(--clr-orange-light);
  border-radius: 24px;
  color: var(--clr-orange-dark);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.27px;
  line-height: 28px;
  flex: none;
  flex-grow: 0;
  text-transform: uppercase;
}

.nav__logo-img {
  display: block;
  width: 200px;
  height: 50px;
}

/* --- Nav brand (logo + wordmark) --- */
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav__brand:focus-visible {
  outline: 2px solid var(--clr-orange);
  outline-offset: 4px;
  border-radius: 4px;
}

/* --- Section title group (badge + heading + subtext) --- */
.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.section-title__heading {
  font-family: var(--font-display);
  color: var(--clr-dark);
  font-weight: 400;
  font-size: 40px;
  line-height: 42px;
  text-align: center;
  text-transform: uppercase;
}

.section-title__sub {
  font-family: var(--font-body);
  color: var(--clr-text);
  font-size: 24px;
  line-height: 33px;
  text-align: center;
  letter-spacing: 0.01em;
  font-weight: 700;
}

@media (min-width: 768px) {
  .section-title__heading { font-size: 60px; line-height: 64px;}
  .section-title__sub     { font-size: 24px; line-height: 33px }
}

/* ----------------------------------------------------------------
   4. HEADER / NAV
   ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  height: 80px;
  background-color: rgb(172 209 176 / 0.4);
  border-bottom: 2px solid var(--clr-green-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: 16px;
  gap: 12px;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 40px;
  min-width: 106px;
  padding: 0 20px;
  background-color: var(--clr-orange);
  color: var(--clr-white);
  border-radius: 9999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  text-decoration: none;
  border: none;
}

.nav__cta:hover  { background-color: var(--clr-orange-dark); cursor: pointer; }
.nav__cta:active { opacity: 0.88; }

@media (min-width: 768px) {
  .nav {
    display: flex;
    justify-content: center;
  }

  section {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }

  .nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding-inline: 40px;
    max-width: 1440px;
    flex: 1;
  }

  .nav__brand {
    grid-column: 2;
    justify-self: center;
  }

  .nav__logo-img {
    width: 200px;
    height: 50px;
  }

  .nav__cta {
    grid-column: 3;
    justify-self: end;
    height: 48px;
    min-width: 122px;
    padding: 0 28px;
    font-size: 14px;
  }
}

@media (min-width: 1440px) {
  .nav__logo-img {
    width: 240px;
    height: 60px;
  }
}

/* ----------------------------------------------------------------
   5. HERO SECTION
   ---------------------------------------------------------------- */
.section-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  padding: 60px 24px 140px;
  gap: 16px;
  background-color: var(--clr-green);
  text-align: center;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 400;
  color: var(--clr-dark);
  line-height: 40px;
  letter-spacing: 0;
  max-width: 900px;
  text-transform: uppercase;
}

.hero__title--accent {
  color: var(--clr-green-dark);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 28px;
  letter-spacing: 0.015em;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 90px;
    line-height: 80px;
    letter-spacing: 0;
  }

  .hero__subtitle {
    font-size: 26px;
    line-height: 36px;
    letter-spacing: 0.01em;
    max-width: 1200px;
  }

  .section-hero {
    padding: 160px 120px 280px;
  }
}

@media (min-width: 1440px) {
  .hero__title {
    font-size: 120px;
    line-height: 100px;
    letter-spacing: 0;
    max-width: 1200px;
  }

  .hero__subtitle {
    font-size: 26px;
    line-height: 36px;
    letter-spacing: 0.01em;
    letter-spacing: 0.01em;
  }

  .section-hero {
    padding: 160px 120px 240px;
  }
}

/* ----------------------------------------------------------------
   6. PROBLEM SECTION
   ---------------------------------------------------------------- */
.section-problem {
  border-radius: 48px 48px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 0;
  gap: var(--space-md);
  background-color: var(--clr-cream);
  text-align: center;
  margin-top: -48px;
}

.problem__title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.problem__headline {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--clr-dark);
  line-height: 42px;
  font-weight: 400;
  text-transform: uppercase;
}

.problem__stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.problem__stat-main {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 33px;
  letter-spacing: 0.01em;
  text-align: center;
}

.problem__stat-sub {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--clr-text);
  letter-spacing: 0.015em;
  line-height: 28px;
}

.problem__description {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--clr-dark);
  letter-spacing: 0.015em;
  line-height: 25px;
  text-align: center;
}

.problem__description span {
  font-weight: 700;
}

@media (min-width: 768px) {
  .section-problem      { padding: 80px 60px 0; border-radius: 80px 80px 0 0; margin-top: -80px; }
}

@media (min-width: 1440px) {
  .section-problem      { padding: 100px var(--space-3xl) 20px; }
  .problem__title-group { gap: 24px; width: 100%; max-width: 1200px; }
  .problem__headline    { font-size: 60px; line-height: 64px; }
  .problem__stats       { gap: 4px; }
  .problem__stat-main   { font-size: 46px; line-height: 63px; letter-spacing: 0.01em; }
  .problem__stat-sub    { font-size: 24px; line-height: 33px; letter-spacing: 0.01em; }
  .problem__description { font-size: 24px; line-height: 33px; width: 100%; max-width: 1200px; }
}

/* ----------------------------------------------------------------
   7. LOGO SHOWCASE
   ---------------------------------------------------------------- */
.section-logo-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  background-color: var(--clr-cream);
}

.logo-showcase__img {
  width: 226px;
  height: 270px;
}

@media (min-width: 768px) {
  .section-logo-showcase { padding: 40px 0; }
  .logo-showcase__img    { width: 420px; height: 396px; }
}

@media (min-width: 1440px) {
  .section-logo-showcase { padding: 40px 0; }
  .logo-showcase__img    { width: 506px; height: 478px; }
}

/* ----------------------------------------------------------------
   8. METRICS SECTION
   ---------------------------------------------------------------- */
.section-metrics-wrapper {
  padding: 0 20px 40px;
  background: linear-gradient(to bottom, var(--clr-cream), var(--clr-off-white));
}

.metrics-container {
  background: linear-gradient(to top, var(--clr-cream), var(--clr-off-white));
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

/* Outer white card */
.metrics {
  width: 100%;
  border-radius: 33px;
  display: flex;
  flex-direction: column;
  padding: 32px 16px 16px;
  gap: 32px;
  background-color: var(--clr-off-white);
}

/* Shared block layout (badge + heading + cards) */
.metrics__block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Two-column cards row */
.cards-row {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* — Target Cards — */
.target-card {
  flex: 1;
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  gap: 32px;
  background-color: var(--clr-white);
  border: 4px solid var(--clr-orange);
  border-bottom-width: 12px;
}

.target-card__icon {
  flex-shrink: 0;
  align-self: flex-start;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background-color: var(--clr-warm-gray);
}

.target-card__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.target-card__identity {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.target-card__age {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--clr-brown-dark);
  text-transform: uppercase;
  line-height: 28px;
  letter-spacing: 0.015em;
}

.target-card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 38px;
  line-height: 40px;
  text-transform: uppercase;
  color: var(--clr-orange);
  text-transform: uppercase;
}

.target-card__role {
  font-family: var(--font-body);
  color: var(--clr-muted);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.015em;
}

.target-card__desc {
  font-family: var(--font-body);
  color: var(--clr-brown-dark);
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
}

.target-card__highlight {
  font-weight: 700;
}

/* — Costliest Scam Types block — */
.metrics__costliest {
  border-radius: 23px;
  display: flex;
  flex-direction: column;
  padding: 40px 24px 20px;
  gap: 32px;
  background-color: var(--clr-cream);
}

/* — Scam Cards — */
.scam-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.scam-card__icon {
  align-self: flex-start;
  margin-bottom: 16px;
}

.scam-card__icon-wrap {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scam-card__body {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.scam-card__type {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--clr-brown-dark);
}

.scam-card__name {
  font-family: var(--font-display);
  color: var(--clr-orange);
  font-weight: 400;
  font-size: 40px;
  line-height: 42px;
  text-transform: uppercase;
}

.scam-card__stat {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.scam-card__stat-label {
  font-family: var(--font-body);
  color: var(--clr-text);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.015em;
  color: var(--clr-muted);
}

.scam-card__stat-amount {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 42px;
  text-transform: uppercase;
  color: var(--clr-orange);
}

.scam-card__desc {
  font-family: var(--font-body);
  color: var(--clr-brown-dark);
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.015em;
  font-weight: 500;
}

hr {
  margin: 0;
  border-style: solid;
  border-width: 2px;
  border-color: var(--clr-border-warm);
  margin-bottom: 16px;
}

.metrics__costliest .cards-row { gap: 40px; }

@media (min-width: 768px) {
  .section-metrics-wrapper { padding: 40px 40px 60px; }
  .metrics-container       { border-radius: 80px; padding: 16px;}
  .metrics                 { padding: 64px 44px 44px; border-radius: 66px; gap: 80px; }
  .metrics__block          { gap: 40px; }
  .target-card             { flex-direction: row; border-radius: 32px; padding: 28px; }
  .metrics__costliest      { border-radius: 60px; gap: 40px; padding: 60px 60px 76px; }
  .metrics__costliest .cards-row { gap: 60px; }
  .scam-card__body         { margin-bottom: 32px; }
  .scam-card__name         { font-size: 80px; line-height: 66px; }
  .scam-card__stat         { margin-bottom: 32px; }
  .scam-card__stat-amount  { font-size: 80px; line-height: 85px; }
}

@media (min-width: 1440px) {
  .cards-row               { flex-direction: row; }
}

/* ----------------------------------------------------------------
   9. SCAMCAST FEATURES SECTION
   ---------------------------------------------------------------- */
.section-features-wrapper {
  padding: 0 20px 40px;
  background-color: var(--clr-off-white);
}

/* Green rounded feature panel */
.feature-panel {
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  padding: 40px 24px 0;
  background-color: var(--clr-green);
  overflow: visible;
  position: relative;
  gap: 70px;
}

/* — Feature copy (left side) — */
.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-copy__title {
  font-family: var(--font-display);
  color: var(--clr-dark);
  font-style: normal;
  font-weight: 400;
  font-size: 46px;
  line-height: 49px;
  text-transform: uppercase;  
}

.title__word--dark  { color: var(--clr-text); }
.title__word--light { color: var(--clr-white); }
.feature-panel--salmon .title__word--dark { color: var(--clr-brown-dark); }
.feature-panel--salmon .bullet-list__item { color: var(--clr-brown-red); }

/* Bullet list */
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bullet-list__item {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
  font-family: var(--font-body);
  color: var(--clr-text);
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: 0.015em;
}

.bullet-list__item-image {
  width: 24px;
  height: 24px;
}

.feature-image-desktop {
  display: none;
}

.feature-image-mobile-wrapper {
  position: relative;
  width: 100%;
}

.feature-image-mobile-phone {
  width: 100%;
}

.feature-image-mobile-fox {
  position: absolute;
  top: -13.7%;
  height: 32.6%;
  right: -44px;
}

.feature-panel--image-left .feature-image-mobile-fox  {
  left: -44px;
}   

@media (min-width: 768px) {
  .feature-image-desktop {
    display: block;
  }

  .feature-copy__title {
    font-weight: 400;
    font-size: 60px;
    line-height: 64px;
  }

  .feature-image-mobile-wrapper {
    display: none;
  }

  .feature-panel {
    padding: 80px 0 0;
    overflow: hidden;
    gap: 0;
  }

  .feature-copy {
    padding: 0 60px;
  }
}

@media (min-width: 768px) {
  .section-features-wrapper { padding: 0 40px 40px; }
}

@media (min-width: 1440px) {
  .feature-panel       {
    flex-direction: row;
    padding: 173px 90px 153px;
    border-radius: 48px;
    gap: 0;
    align-items: flex-end;
    border-radius: 80px;
    position: relative;
  }
  .feature-copy        { z-index: 10; max-width: 467px; padding: 0; }
  .feature-copy__title { font-size: 60px; line-height: 64px; }
  .feature-image-desktop {
    display: block;
    width: 60%;
    height: auto;
    position: absolute;
    right: 89px;
    bottom: 0;
    z-index: 1;
  }
  
  .feature-panel--image-left .feature-image-desktop {
    left: 89px;
    right: auto;
  }
  .feature-panel--image-left .feature-copy {
    margin-left: auto;
  }
  .feature-image-mobile-wrapper {
    display: none;
  }
}

/* ----------------------------------------------------------------
   10. SCAMSCANNER FEATURE SECTION (Section 4)
   ---------------------------------------------------------------- */

/* Alt wrapper — same background as scamcast */
.section-features-wrapper--alt {
  background-color: var(--clr-off-white);
  padding-top: 0;
}

/* Salmon panel variant */
.feature-panel--salmon {
  background-color: var(--clr-salmon);
}

/* ----------------------------------------------------------------
   11. CTA SECTION (Section 5)
   ---------------------------------------------------------------- */
.section-cta {
  background: linear-gradient(to bottom, var(--clr-off-white), var(--clr-cream));
  padding: 20px 24px 0;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.cta__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.cta__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 46px;
  line-height: 40px;
  text-align: center;
  text-transform: uppercase;
}

.cta__heading--emphasis  { color: var(--clr-near-black); }
.cta__heading--secondary { color: var(--clr-brown); }

.cta__sub {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  letter-spacing: 0.015em;
  color: var(--clr-text)
}

.cta__contact {
  display: flex;
  flex-direction: column;
  gap: 46.5px;
  align-items: center;
}

.cta__contact-fox {
  width: 200px;
  height: 155px;
}

@media (min-width: 768px) {
  .section-cta  { padding: 60px 80px 0; }
  .cta__heading { font-size: 90px; line-height: 80px;}
  .cta__sub     { font-size: 20px; line-height: 28px; letter-spacing: 0.015em; }
}

@media (min-width: 1440px) {
  .section-cta  { padding: 100px 120px 0; }
  .cta__heading { font-size: 120px; line-height: 100px; }
}

/* ----------------------------------------------------------------
   12. FOOTER
   ---------------------------------------------------------------- */
.footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: var(--clr-white);
}

.footer-container {
  justify-content: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  flex: 1;
  padding: 20px;
  gap: 20px;
}

.copyright {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--clr-text);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.005em;
}

@media (min-width: 768px) {
  .footer    { flex-wrap: wrap; gap: 12px; justify-content: center; }
  .footer-container {
    max-width: 1440px;
    margin-left: auto; margin-right: auto;
    padding: 20px 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .copyright { font-size: 14px; }
}

/* ----------------------------------------------------------------
   13. CONTACT MODAL
   ---------------------------------------------------------------- */

/* Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(172, 209, 176, 0.88);
  padding: 24px;
  overflow-y: auto;
  /* entry animation */
  animation: modalOverlayIn 0.25s ease both;
}

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

@keyframes modalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Modal card */
.modal {
  position: relative;
  background: var(--clr-white);
  border-radius: 40px;
  width: 100%;
  padding: 60px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: modalCardIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes modalCardIn {
  from { transform: scale(0.92) translateY(16px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

/* Close button */
.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #E6E4E3;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.15s;
}

.modal__close:hover  { background-color: var(--clr-gray-mid); }
.modal__close:active { opacity: 0.8; }

.modal__close--icon {
  width: 17px;
  height: 17px;
}

/* Title */
.modal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 80px;
  line-height: 64px;
  text-transform: uppercase;
  text-align: center;
  color: var(--clr-dark);
  padding: 0 20px;
}

.modal--feedback .modal__title {
  font-size: 60px;
  line-height: 50px;
}

/* Form */
.modal__form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Field wrapper */
.modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Input & textarea */
.modal__input {
  width: 100%;
  background-color: var(--clr-warm-gray);
  border: 2px solid transparent;
  border-radius: 16px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 22px 20px;
  border-radius: 16px;
  font-size: 16px;
  color: var(--clr-dark);
  outline: none;
  transition: border-color 0.15s, background-color 0.15s;
  resize: none;
}

.modal__input::placeholder { color: #1F2933; }

.modal__input:focus {
  border-color: var(--clr-green-border);
  background-color: var(--clr-white);
}

.modal__textarea {
  min-height: 148px;
}

/* Error state */
.modal__field--error .modal__input {
  border-color: var(--clr-danger-border);
  background-color: var(--clr-danger-bg);
}

.modal__error {
  display: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-orange);
  padding-left: 4px;
}

.modal__field--error .modal__error { display: block; }

/* Submit button */
.modal__submit {
  width: 100%;
  padding: 23px 0;
  background-color: var(--clr-orange);
  color: var(--clr-white);
  border: none;
  border-radius: 360px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 0.15s, opacity 0.15s;
}

.modal__submit:hover  { background-color: var(--clr-orange-dark); }
.modal__submit:active { opacity: 0.88; }

.modal__submit--outline {
  background-color: transparent;
  border: 2px solid var(--clr-orange);
  color: var(--clr-orange);
}

.modal__submit--outline:hover {
  background-color: var(--clr-orange-bg);
}

/* Feedback / success state */
.modal__form-state,
.modal__feedback-state {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal__feedback-state {
  align-items: center;
  text-align: center;
}

.modal__feedback-state[hidden] { display: none; }

/* Feedback card padding (different from form card) */
.modal--feedback {
  padding: 80px 20px 60px;
}

.modal__feedback-text {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-dark);
  line-height: 24px;
  letter-spacing: 0.005em;
}

.modal__feedback-fox { display: none;}

/* ── Desktop overrides ── */
@media (min-width: 768px) {
  .modal {
    max-width: 700px;
    padding: 80px 60px 60px;
    gap: 46px;
    border-radius: 40px;
  }

  .modal__close--icon {
    width: 25px;
    height: 25px;
  }

  .modal__close {
    top: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
  }

  .modal__title {
    padding: 0 50px;
    font-weight: 400;
    font-size: 100px;
    line-height: 80px;
  }

  .modal__form-state {
    gap: 46px;
  }

  .modal__textarea { min-height: 180px; }

  .modal__submit {
    padding: 23px 0;
    font-size: 20px;
    line-height: 20px;
    letter-spacing: 0.005em;
  }

  .modal__form { gap: 32px; }
  .modal__feedback-text {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.005em;
    padding: 0 80px;
  }

  .modal--feedback {
    padding: 80px 60px;
    position: relative;
  }

  .modal--feedback .modal__feedback-fox {
    position: absolute;
    bottom: -48px;
    left: -80px;
    display: block;
    width: 200px;
    height: 187px;
  }

  .modal__feedback-state { 
    gap: 46px;
  }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}