/* ─── PARTNER PAGES CSS ─── */
:root {
  --yellow: #ffd400;
  --ink: #0b0b0c;
  --muted: rgba(11,11,12,.58);
  --line: rgba(11,11,12,.10);
  --radius: 20px;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Sora", system-ui, sans-serif;
  background: #fafafa;
  color: var(--ink);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Grain */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 14px;
  font: 600 14px/1 inherit; cursor: pointer;
  border: 1px solid var(--line); background: #fff;
  transition: transform .18s, box-shadow .18s, background .18s;
  user-select: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(0,0,0,.10); }
.btn.primary { background: var(--yellow); border-color: rgba(0,0,0,.10); }
.btn.primary:hover { box-shadow: 0 16px 40px rgba(255,212,0,.35); }
.btn.ghost { background: rgba(255,255,255,.55); backdrop-filter: blur(8px); }

/* Layout */
.pWrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* NAV */
.pNav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(133,133,133,.74); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.pNavInner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.pBrand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.pBrand img { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; }
.pBrand span { color: rgba(11,11,12,.70); font-weight: 500; }

/* ─── HERO ─── */
.pHero {
  padding: 80px 0 70px;
  position: relative; overflow: hidden;
}
.afisha-theme .pHero {
  background: linear-gradient(160deg, #fffae8 0%, #fff8cc 50%, #fff3a0 100%);
}
.estate-theme .pHero {
  background: linear-gradient(160deg, #f7f7f7 0%, #efefef 50%, #e4e4e4 100%);
}
/* Big decorative circle */
.pHero::before {
  content: "";
  position: absolute; top: -120px; right: -120px;
  width: 500px; height: 500px; border-radius: 50%;
  opacity: .18; pointer-events: none;
}
.afisha-theme .pHero::before { background: var(--yellow); }
.estate-theme .pHero::before { background: #999; }

.pHeroBadge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12); background: rgba(255,255,255,.70);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 24px; color: rgba(0,0,0,.65);
}
.pDot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,212,0,.25);
}

.pH1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.02;
}
.pAccent { color: rgba(11,11,12,.40); }
.afisha-theme .pAccent { color: #b07d00; }
.estate-theme .pAccent { color: #555; }

.pLead {
  margin: 0 0 32px;
  font-size: 16px; line-height: 1.7; color: rgba(0,0,0,.60); max-width: 56ch;
}
.pHeroActions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.pHeroStats {
  display: flex; gap: 0; flex-wrap: wrap;
  border: 1px solid rgba(0,0,0,.10); border-radius: 18px;
  background: rgba(255,255,255,.65); backdrop-filter: blur(8px);
  overflow: hidden; width: fit-content;
}
.pStat {
  padding: 18px 28px;
  border-right: 1px solid rgba(0,0,0,.08);
  display: flex; flex-direction: column; gap: 4px;
}
.pStat:last-child { border-right: none; }
.pStat b { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.pStat span { font-size: 12px; color: var(--muted); }

/* ─── SECTIONS ─── */
.pSection { padding: 80px 0; }
.pSection--dark {
  background: var(--ink);
  color: #fff;
}
.pSection--apply {
  background: #f5f5f5;
}
.pSectionHead { margin-bottom: 44px; }
.pSectionHead h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800; letter-spacing: -0.03em;
}
.pSectionHead p { margin: 0; font-size: 15px; color: var(--muted); }
.pSectionHead--light h2 { color: #fff; }
.pSectionHead--light p { color: rgba(255,255,255,.55); }

/* WHO GRID */
.pWhoGrid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.pWhoCard {
  border: 1px solid var(--line); border-radius: 18px;
  background: #fff; padding: 22px 18px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  font-size: 28px;
  transition: transform .2s, box-shadow .2s;
}
.pWhoCard:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.pWhoCard span { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }

/* BENEFITS */
.pBenefitGrid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pBenefit {
  padding: 24px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  position: relative;
  transition: background .2s, transform .2s;
}
.pBenefit:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.pBenefit--highlight {
  border-color: rgba(255,212,0,.25);
  background: rgba(255,212,0,.05);
}
.pBenefitIcon { font-size: 28px; margin-bottom: 14px; }
.pBenefit h3 { margin: 0 0 10px; font-size: 16px; letter-spacing: -0.02em; color: #fff; }
.pBenefit p { margin: 0; font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.55); }
.comingSoon {
  display: inline-block; margin-top: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,212,0,.20); color: var(--yellow);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* HOW IT WORKS */
.pSteps {
  display: flex; align-items: flex-start; gap: 0;
  flex-wrap: wrap;
}
.pStep {
  flex: 1; min-width: 180px;
  border: 1px solid var(--line); border-radius: 20px;
  background: #fff; padding: 28px 24px;
}
.pStepArrow {
  padding: 36px 10px 0;
  font-size: 22px; color: var(--muted);
  flex-shrink: 0;
}
.pStepNum {
  font-size: 11px; font-weight: 800; letter-spacing: .10em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 14px;
}
.pStep h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: -0.02em; }
.pStep p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.65; }

/* APPLY */
.pFormWrap {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 60px; align-items: start;
}
.pFormLeft h2 { margin: 0 0 12px; font-size: clamp(22px, 2.8vw, 34px); letter-spacing: -0.03em; }
.pFormLeft p { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.pCheckList {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.pCheckList li { font-size: 14px; color: rgba(11,11,12,.70); font-weight: 500; }

.pForm {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 24px; padding: 32px;
}
.pField { display: flex; flex-direction: column; gap: 7px; }
.pReq { color: #e53e3e; margin-left: 2px; }
.pFieldError { font-size: 12px; color: #e53e3e; min-height: 15px; margin-top: -3px; }
.pFull { grid-column: 1 / -1; }
.pField label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.pField input, .pField select, .pField textarea {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; font: inherit; font-size: 14px;
  background: #fafafa; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.pField input:focus, .pField select:focus, .pField textarea:focus {
  border-color: rgba(11,11,12,.25);
  box-shadow: 0 0 0 5px rgba(255,212,0,.22);
  background: #fff;
}
.pField textarea { min-height: 110px; resize: vertical; }
.pFormRow {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  padding-top: 4px;
}
#afishaStatus, #estateStatus {
  margin-right: auto; font-size: 13px;
  color: rgba(11,11,12,.60); font-weight: 500;
}

/* ─── SIMPLE FOOTER ─── */
.pSimpleFooter {
  background: #0b0b0c;
}
.pSimpleInner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; gap: 0;
}

/* Top row: brand + products + nav */
.pSimpleBrand {
  display: flex; align-items: center; gap: 14px;
  padding: 44px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.pSimpleLogoImg {
  width: 36px; height: 36px; flex-shrink: 0;
  object-fit: contain; border-radius: 10px;
}
.pSimpleBrand b {
  display: block; color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 3px;
}
.pSimpleBrand span {
  font-size: 12px; color: rgba(255,255,255,.38);
}

.pSimpleLinks {
  display: flex; gap: 4px; align-items: center; margin-left: auto;
}
.pSimpleLinks a {
  color: rgba(255,255,255,.40); font-size: 13px;
  padding: 6px 10px; border-radius: 9px;
  transition: color .2s, background .2s; text-decoration: none;
}
.pSimpleLinks a:hover { color: #fff; background: rgba(255,255,255,.06); }

/* Bottom row: copyright + socials */
.pSimpleBottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0 24px; gap: 16px;
}
.pSimpleCopy { color: rgba(255,255,255,.25); font-size: 12px; }
.pSimpleSocials { display: flex; gap: 8px; }
.pSimpleSocials a {
  width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.38); text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.pSimpleSocials a:hover {
  background: rgba(255,212,0,.10); border-color: rgba(255,212,0,.28);
  color: #ffd400; transform: translateY(-2px);
}
.pSimpleSocials svg { width: 14px; height: 14px; }

@media (max-width: 760px) {
  .pSimpleBrand { flex-wrap: wrap; padding-bottom: 24px; }
  .pSimpleProducts { margin-left: 0; padding: 0; width: 100%; }
  .pSimpleLinks { flex-wrap: wrap; }
  .pSimpleBottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}



/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .pWhoGrid { grid-template-columns: repeat(2, 1fr); }
  .pBenefitGrid { grid-template-columns: 1fr 1fr; }
  .pFormWrap { grid-template-columns: 1fr; gap: 32px; }
  .pForm { grid-template-columns: 1fr; }
  .pSteps { flex-direction: column; }
  .pStepArrow { padding: 0 0 0 28px; transform: rotate(90deg); }
  .pHeroStats { flex-direction: column; border-radius: 14px; }
  .pStat { border-right: none; border-bottom: 1px solid rgba(0,0,0,.08); }
  .pStat:last-child { border-bottom: none; }
}
@media (max-width: 560px) {
  .pWhoGrid { grid-template-columns: 1fr 1fr; }
  .pBenefitGrid { grid-template-columns: 1fr; }
  .pH1 { font-size: clamp(32px, 9vw, 48px); }
}

/* ─── FORM SUCCESS ANIMATION ─── */
.formCardWrap { position: relative; }

.formSuccess {
  position: absolute; inset: 0; z-index: 10; border-radius: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  background: #fff;
  opacity: 0; pointer-events: none;
  transform: scale(0.85);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.formSuccess.show {
  opacity: 1; pointer-events: all; transform: scale(1);
}
.formSuccess.hide {
  opacity: 0; transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.successCircle {
  width: 90px; height: 90px;
  filter: drop-shadow(0 8px 24px rgba(34,197,94,.3));
}
.successRing {
  stroke-dasharray: 276; stroke-dashoffset: 276;
  transition: stroke-dashoffset 0s;
}
.successCheck {
  stroke-dasharray: 60; stroke-dashoffset: 60;
  transition: stroke-dashoffset 0s;
}
.formSuccess.show .successRing {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.55s cubic-bezier(0.4,0,0.2,1) 0.15s;
}
.formSuccess.show .successCheck {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.35s cubic-bezier(0.4,0,0.2,1) 0.6s;
}
.successMsg {
  margin: 0; text-align: center;
  font-size: 18px; font-weight: 700; color: var(--ink);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0s, transform 0s;
}
.formSuccess.show .successMsg {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.4s ease 0.85s, transform 0.4s ease 0.85s;
}
.successMsg span {
  display: block; font-size: 13px; font-weight: 400;
  color: var(--muted); margin-top: 5px;
}
.pForm {
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.pForm.blurred {
  filter: blur(4px); opacity: 0.3; pointer-events: none;
}