/* The Closer Circle pitch and checkout form. Used by the public page
   (closer_circles/show.html.erb, inside the signup_v2 layout, under .cc-page)
   and by the signed-in membership page (membership_types/show.html.erb, under
   .cc-embedded). Everything is scoped to those two wrappers so nothing leaks.
   Montserrat and Source Sans 3 are already loaded by both layouts. */

.cc-page,
.cc-embedded {
  --cc-ink: #1b2329;
  --cc-body: #4a4a4a;
  --cc-muted: #7a7a7a;
  --cc-gold: #c5a06c;
  --cc-gold-dark: #a37a45;
  --cc-gold-tint: #fde8c8;
  --cc-line: #dfe1e4;
  --cc-error: #b3261e;
  --cc-save-bg: #d6f7df;
  --cc-save-text: #17692e;

  color: var(--cc-body);
  font-family: 'Source Sans 3', 'Mulish', sans-serif;
  font-size: 1rem;
}

.cc-page { flex: 1; background: #fff; padding: 1.5rem 1rem 2rem; }

.cc-layout {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Perks on the left, the form on the right, so it fits one screen on desktop. */
@media (min-width: 900px) {
  .cc-layout { grid-template-columns: 1fr 420px; gap: 3rem; align-items: start; }
}

.cc-panel {
  padding: 1.5rem;
  border: 1px solid var(--cc-line);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgb(0 0 0 / .05);
}

.cc-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--cc-ink);
  margin: 0 0 .5rem;
}

.cc-lede { max-width: 34rem; margin: 0 0 1.25rem; }

/* ---- perks ---- */
.cc-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.cc-perk { display: flex; gap: 1rem; align-items: flex-start; }

.cc-perk-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--cc-gold-tint);
  color: var(--cc-gold-dark);
  font-size: 1.1rem;
}

.cc-perk-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cc-ink);
  margin: 0 0 .15rem;
}

.cc-perk-body { margin: 0; font-size: .95rem; line-height: 1.4; }


/* ---- price ---- */
.cc-price { margin: 0 0 1rem; }

.cc-price-amount {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--cc-gold-dark);
}

.cc-price-per { margin-left: .4rem; }

/* ---- form ---- */
.cc-field { margin-bottom: .8rem; }
.cc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; }

.cc-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--cc-ink);
  margin-bottom: .25rem;
}

.cc-input {
  width: 100%;
  padding: .55rem .85rem;
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  font: inherit;
  color: var(--cc-ink);
  background: #fff;
}

.cc-input:focus { outline: 2px solid var(--cc-gold); outline-offset: 0; }
.cc-input-error { border-color: var(--cc-error); }

.cc-coupon { display: flex; }
.cc-coupon-input { border-radius: 10px 0 0 10px; border-right: 0; }

.cc-coupon-apply {
  padding: 0 1.5rem;
  border: 1px solid var(--cc-line);
  border-radius: 0 10px 10px 0;
  background: #fff;
  font: inherit;
  font-weight: 600;
  color: var(--cc-body);
  cursor: pointer;
}

.cc-coupon-note {
  margin: .5rem 0 0;
  padding: .5rem .85rem;
  border-radius: 8px;
  background: var(--cc-gold-tint);
  color: var(--cc-gold-dark);
  font-size: .95rem;
}

.cc-coupon-note-error { background: #fdecea; color: var(--cc-error); }
.cc-coupon-note[hidden], .cc-error[hidden] { display: none; }

/* ---- billing options ---- */
.cc-plans { display: grid; gap: .5rem; margin-bottom: 1rem; }

.cc-plan {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .75rem 1rem;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  color: var(--cc-ink);
}

.cc-plan:has(.cc-plan-radio:checked) { border-color: var(--cc-gold); }
.cc-plan-radio { accent-color: var(--cc-gold-dark); width: 1.1rem; height: 1.1rem; margin: 0; }
.cc-plan-name { font-size: 1rem; }
.cc-plan-price { margin-left: auto; font-size: 1rem; }

.cc-plan-badge {
  padding: .2rem .75rem;
  border-radius: 8px;
  background: var(--cc-save-bg);
  color: var(--cc-save-text);
  font-size: .95rem;
}

/* ---- actions ---- */
.cc-error { color: var(--cc-error); margin: 0 0 1rem; }

.cc-submit {
  display: block;
  width: 100%;
  padding: .8rem;
  border: 0;
  border-radius: 999px;
  background: var(--cc-gold);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.cc-submit:hover { background: var(--cc-gold-dark); color: #fff; }
.cc-submit:disabled { opacity: .6; cursor: wait; }

.cc-back {
  margin-bottom: 1rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cc-gold-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cc-already { text-align: center; }

/* ---- signed-in membership page: the pitch sits in a wide, roomy card ---- */
.mv2-feed .card:has(.cc-embedded) {
  border: 1px solid var(--mv2-border, #e2d6b8);
  border-radius: 20px;
  background: #fff;
}

.cc-embedded { padding: 1.25rem 1rem; }

@media (min-width: 768px) {
  .cc-embedded { padding: 1.75rem 2.25rem; }
  .cc-embedded .cc-perks { grid-template-columns: 1fr 1fr; gap: 1.1rem 2.5rem; }
}

.cc-embedded .cc-title { font-size: clamp(1.75rem, 3.5vw, 2.4rem); margin-bottom: .5rem; }
.cc-embedded .cc-lede { max-width: 34rem; margin-bottom: 1.25rem; font-size: 1rem; line-height: 1.5; }
.cc-embedded .cc-perk { gap: .85rem; }
.cc-embedded .cc-perk-icon { width: 2.4rem; height: 2.4rem; font-size: 1rem; }
.cc-embedded .cc-perk-title { font-size: 1.05rem; margin-bottom: .15rem; }
.cc-embedded .cc-perk-body { font-size: .92rem; line-height: 1.4; }
.cc-embedded .cc-divider { border: 0; border-top: 1px solid var(--cc-line); margin: 1.5rem 0; opacity: 1; }
.cc-embedded .cc-price { margin-bottom: 1.1rem; }
.cc-embedded .cc-price-amount { font-size: 2.25rem; }
.cc-embedded .cc-label { font-size: .85rem; margin-bottom: .3rem; }
.cc-embedded .cc-field { margin-bottom: .9rem; }
.cc-embedded .cc-input { padding: .6rem .9rem; }
.cc-embedded .cc-coupon-apply { padding: 0 1.25rem; }
.cc-embedded .cc-plans { gap: .5rem; margin-bottom: 1rem; }
.cc-embedded .cc-plan { padding: .8rem 1.1rem; border-radius: 12px; }
.cc-embedded .cc-plan-radio { width: 1.1rem; height: 1.1rem; }
.cc-embedded .cc-plan-name,
.cc-embedded .cc-plan-price { font-size: 1rem; }
.cc-embedded .cc-submit { padding: .8rem; font-size: 1rem; }

.cc-fineprint { margin: .75rem 0 0; text-align: center; color: var(--cc-muted); font-size: .85rem; }
