/* Agency RFP — social media agency partnership landing */

:root {
  --arp-bg: #0a1628;
  --arp-bg-card: rgba(255, 255, 255, 0.05);
  --arp-border: rgba(255, 255, 255, 0.12);
  --arp-text: #f8fafc;
  --arp-muted: #94a3b8;
  --arp-accent: #ff2b2b;
  --arp-accent-soft: rgba(255, 43, 43, 0.14);
  --arp-green: #00d47e;
  --arp-green-soft: rgba(0, 212, 126, 0.12);
  --arp-radius: 16px;
  --arp-font: "Space Grotesk", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

.arp-body {
  font-family: var(--arp-font);
  color: var(--arp-text);
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(255, 43, 43, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(0, 212, 126, 0.08), transparent),
    var(--arp-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.arp-wrap {
  width: min(80vw, calc(100% - 40px));
  margin: 0 auto;
}

.arp-hero {
  padding: 120px 0 72px;
}

.arp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: start;
}

.arp-form-card {
  background: var(--arp-bg-card);
  border: 1px solid var(--arp-border);
  border-radius: calc(var(--arp-radius) + 4px);
  padding: 28px 28px 32px;
  backdrop-filter: blur(10px);
}

.arp-form-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--arp-green);
  margin-bottom: 10px;
}

.arp-form-card__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--arp-green);
}

.arp-form-card h1 {
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.arp-form-card__lead {
  color: var(--arp-muted);
  font-size: 0.95rem;
  margin: 0 0 24px;
}

.arp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.arp-field > span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.arp-field input[type="text"],
.arp-field input[type="email"],
.arp-field input[type="tel"],
.arp-field input[type="url"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--arp-border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--arp-text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.arp-field input:focus {
  outline: none;
  border-color: rgba(255, 43, 43, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 43, 43, 0.12);
}

.arp-field input::placeholder {
  color: #64748b;
}

.arp-pills-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.arp-pills-required {
  font-weight: 400;
  color: var(--arp-muted);
}

.arp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.arp-pill {
  position: relative;
  cursor: pointer;
}

.arp-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.arp-pill span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--arp-border);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.arp-pill input:checked + span {
  background: var(--arp-accent-soft);
  border-color: rgba(255, 43, 43, 0.55);
  color: #fff;
}

.arp-pill input:focus-visible + span {
  outline: 2px solid var(--arp-accent);
  outline-offset: 2px;
}

.arp-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 126, 0.35);
  background: var(--arp-green-soft);
}

.arp-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--arp-green);
  flex-shrink: 0;
}

.arp-check label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ecfdf5;
  cursor: pointer;
  line-height: 1.45;
}

.arp-check__hint {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 400;
  color: #86efac;
}

.arp-form-error {
  color: #fca5a5;
  font-size: 0.88rem;
  margin: 0 0 14px;
}

.arp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff2b2b 0%, #ff6b35 100%);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.arp-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.arp-btn:active:not(:disabled) {
  transform: translateY(0);
}

.arp-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

a.arp-btn {
  text-decoration: none;
}

.arp-btn--ghost {
  background: transparent;
  border: 1px solid var(--arp-border);
  color: var(--arp-muted);
}

.arp-btn--ghost:hover:not(:disabled) {
  color: var(--arp-text);
  border-color: rgba(255, 255, 255, 0.22);
}

.arp-form-note {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--arp-muted);
  text-align: center;
}

/* Hero copy (right) */
.arp-copy {
  padding-top: 8px;
}

.arp-copy__tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--arp-border);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.08);
  margin-bottom: 18px;
}

.arp-copy h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.arp-copy h2 em {
  color: var(--arp-accent);
  font-style: italic;
  font-weight: 500;
}

.arp-copy__lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 0 16px;
}

.arp-copy__body {
  font-size: 0.98rem;
  color: var(--arp-muted);
  line-height: 1.65;
  margin: 0 0 28px;
}

.arp-copy__subhead {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e2e8f0;
  margin: 0 0 14px;
}

.arp-copy-list li strong {
  color: #f1f5f9;
  font-weight: 600;
  display: block;
  white-space: nowrap;
}

.arp-copy__footnote {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--arp-border);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--arp-muted);
}

.arp-commission {
  padding: 22px 24px;
  border-radius: var(--arp-radius);
  border: 1px solid rgba(0, 212, 126, 0.35);
  background: linear-gradient(135deg, rgba(0, 212, 126, 0.12) 0%, rgba(0, 212, 126, 0.04) 100%);
  margin-bottom: 24px;
}

.arp-commission__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--arp-green);
  margin-bottom: 8px;
}

.arp-commission p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #ecfdf5;
}

.arp-commission strong {
  color: #fff;
  font-weight: 700;
}

.arp-copy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.arp-copy-list li {
  display: grid;
  grid-template-columns: auto minmax(12rem, 14rem) 1fr;
  gap: 0 14px;
  align-items: start;
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.arp-copy-list li::before {
  content: "✓";
  color: var(--arp-accent);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.55;
}

.arp-copy-list li > span {
  min-width: 0;
}

/* ---------- Zigzag ---------- */
.arp-zigzag {
  padding: 0 0 96px;
}

.arp-zigzag-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--arp-border);
}

.arp-zigzag-block--reverse .arp-zigzag-visual {
  order: -1;
}

.arp-zigzag-text h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.arp-zigzag-text h3 em {
  color: var(--arp-accent);
  font-style: italic;
  font-weight: 500;
}

.arp-zigzag-text p {
  color: var(--arp-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 14px;
}

.arp-zigzag-feats {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arp-zigzag-feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.arp-zigzag-feats li::before {
  content: "✓";
  color: var(--arp-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.arp-zigzag-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---------- Spin to win demo ---------- */
.arp-wheel-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 340px);
  padding: 20px 16px 16px;
  border-radius: 20px;
  border: 1px solid var(--arp-border);
  background: linear-gradient(160deg, rgba(255, 43, 43, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.arp-wheel-demo__label {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fde68a;
}

.arp-wheel-container {
  position: relative;
  width: 280px;
  height: 280px;
}

.arp-wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  transform-origin: 50% 0%;
  width: 20px;
  height: 24px;
  background: var(--arp-accent);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  z-index: 10;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
  will-change: transform;
}

.arp-wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 43, 43, 0.2), 0 0 0 6px rgba(255, 255, 255, 0.06);
}

.arp-wheel-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.12);
  font-family: var(--arp-font);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #0a1628;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  z-index: 5;
}

@keyframes arp-wheel-idle-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 43, 43, 0);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 0 7px rgba(255, 43, 43, 0.22);
  }
}

.arp-wheel-btn.is-idle {
  animation: arp-wheel-idle-pulse 1.25s ease-in-out infinite;
}

.arp-wheel-btn.is-idle:hover {
  animation-duration: 0.9s;
}

.arp-wheel-btn:hover:not(.is-idle):not(:disabled) {
  transform: translate(-50%, -50%) scale(1.08);
}

.arp-wheel-btn:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.95);
}

.arp-wheel-btn:disabled,
.arp-wheel-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.arp-wheel-btn.is-charging {
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow: 0 0 0 3px rgba(255, 43, 43, 0.35), 0 10px 24px rgba(0, 0, 0, 0.5);
}

.arp-wheel-energy {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--arp-border);
  border-radius: 999px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.arp-wheel-energy.is-charging {
  opacity: 1;
}

.arp-wheel-energy-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--arp-accent), #ffb020);
  box-shadow: 0 0 10px rgba(255, 43, 43, 0.45);
  transition: width 0.05s linear;
}

.arp-wheel-hint {
  margin: 28px 0 0;
  font-size: 0.78rem;
  color: var(--arp-muted);
  text-align: center;
}

.arp-wheel-hint strong {
  color: #e2e8f0;
}

.arp-wheel-popup {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
  background: rgba(10, 22, 40, 0.96);
  border: 1px solid var(--arp-border);
  border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 5;
}

.arp-wheel-popup.is-active {
  opacity: 1;
  pointer-events: auto;
}

.arp-wheel-popup h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4b5fd;
}

.arp-wheel-popup p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ff8c42;
}

.arp-wheel-popup-btn {
  margin-top: 4px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #9a6cff 0%, #7c4dff 100%);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.arp-wheel-popup-btn:hover {
  transform: translateY(-1px);
}

.arp-visual-card {
  width: min(100%, 360px);
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid var(--arp-border);
  background: var(--arp-bg-card);
  text-align: center;
}

.arp-visual-card__icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.arp-visual-card h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.arp-visual-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--arp-muted);
  line-height: 1.5;
}

.arp-visual-card--highlight {
  border-color: rgba(0, 212, 126, 0.35);
  background: linear-gradient(160deg, rgba(0, 212, 126, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.arp-visual-card--highlight .arp-visual-card__stat {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--arp-green);
  line-height: 1;
  margin-bottom: 6px;
}

/* Success modal */
.arp-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 12, 24, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.arp-modal:not([hidden]) {
  display: flex;
}

.arp-modal--open {
  opacity: 1;
  pointer-events: auto;
}

.arp-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.arp-modal__confetti {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.arp-modal__dialog {
  position: relative;
  z-index: 4;
  width: min(440px, calc(100vw - 48px));
  padding: 36px 32px 32px;
  text-align: center;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid var(--arp-border);
  border-radius: calc(var(--arp-radius) + 4px);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.45);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.28s ease;
}

.arp-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--arp-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.arp-modal__close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--arp-text);
}

.arp-modal__close svg {
  width: 18px;
  height: 18px;
}

.arp-modal--open .arp-modal__dialog {
  transform: translateY(0) scale(1);
}

.arp-modal__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--arp-green-soft);
  color: var(--arp-green);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.arp-modal__dialog h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 4vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.arp-modal__lead {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--arp-text);
}

.arp-modal__note {
  margin: 0 0 24px;
  font-size: 0.95rem;
  color: var(--arp-muted);
  line-height: 1.5;
}

.arp-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arp-modal__btn {
  min-width: 140px;
}

#arp-modal-chat[hidden] {
  display: none !important;
}

body.arp-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .arp-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .arp-copy-list li {
    grid-template-columns: auto 1fr;
    row-gap: 4px;
  }

  .arp-copy-list li strong {
    grid-column: 2;
    white-space: normal;
  }

  .arp-copy-list li > span {
    grid-column: 1 / -1;
    padding-left: 1.35em;
  }

  .arp-copy {
    order: 2;
  }

  .arp-form-card {
    order: 1;
  }

  .arp-zigzag-block,
  .arp-zigzag-block--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }

  .arp-zigzag-block--reverse .arp-zigzag-visual {
    order: 0;
  }
}

@media (max-width: 520px) {
  .arp-wrap {
    width: min(80vw, calc(100% - 28px));
  }

  .arp-form-card {
    padding: 22px 18px 26px;
  }
}
