/*
 * page-capital.css
 * Loaded only on the Capital page (page-capital.php).
 *
 * Cascade conflicts (capital.html is at line 1427; studio.html at 3474 is the last file):
 *  - .hero          → index sets padding:120px 56px 80px + flex-direction:column + justify-content:center;
 *                     studio (last def) sets min-height:100vh. Capital needs padding-top:72px / 88vh / row.
 *  - .hero::before  → studio (last def) swaps gradient to orange-left, blue-right.
 *                     Capital needs blue-left, orange-right.
 *  - .hero-inner    → studio wins with padding:80px 56px gap:64px; capital needs 0 56px / gap:80px
 *  - .hero-chip     → studio wins with orange; capital needs light-blue
 *  - .hero-cta      → about + studio (last def) redefine as a standalone orange button.
 *                     Capital uses it as a plain flex container.
 *  - .hero-stats    → sectors (last def) sets gap:40px flex-wrap:wrap; capital needs column / gap:16px
 *  - .hero-sub      → companies page (2877) wins with color:0.38 + max-width:580px + margin-bottom:40px;
 *                     capital needs 0.45 / 480px / 32px
 *  - .stat-num      → companies (1758) sets letter-spacing:-0.04em; capital needs -0.05em
 *  - .stat-label    → companies (1760) sets uppercase + 0.6rem + 0.1em spacing;
 *                     capital needs 0.72rem / weight 300 / no caps
 *  - .section       → events (1942) sets 64px; news/jobs (2142,2326) set 56px.
 *                     Capital needs 80px 56px.
 *  - .section-chip  → companies wins with dark pill; capital needs plain blue text label
 *  - .section-title → studio wins with letter-spacing:-0.03em; capital needs -0.04em / 16px
 *  - .section-sub   → news/jobs (2147,2331) win with font-size:0.85rem; capital needs 0.92rem
 */

/* hero: restore capital's padding, min-height, and flex direction */
.hero {
  min-height: 88vh;
  padding: 72px 0 0;
  flex-direction: row;
  justify-content: flex-start;
}

/* hero::before: studio (last def) swaps to orange-left; restore capital's blue-left */
.hero::before {
  background:
    radial-gradient(ellipse at 10% 50%, rgba(37, 132, 197, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(240, 120, 48, 0.1) 0%, transparent 45%);
}

/* hero-inner: capital has no top/bottom padding; studio (last def) adds 80px */
.hero-inner {
  padding: 0 56px;
  gap: 80px;
}

/* hero-sub: companies page (2877) wins with color:0.38 / max-width:580px / margin-bottom:40px */
.hero-sub {
  color: rgba(255, 255, 255, 0.45);
  max-width: 480px;
  margin-bottom: 32px;
}

/* hero-chip: studio (last def) wins with orange; capital needs light-blue */
.hero-chip {
  background: rgba(37, 132, 197, 0.15);
  color: #6eb3e8;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 20px;
  border: 1px solid rgba(37, 132, 197, 0.25);
}

/* section-chip: companies (last def) wins with dark pill;
   capital uses it as a plain small uppercase text label — no background, no border */
.section-chip {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  display: block;
  gap: 0;
  align-items: initial;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

/* hero-stats: sectors (last def, 3173) sets display:flex; gap:40px; flex-wrap:wrap.
   Capital needs flex-direction:column; gap:16px (vertical stack of stat-cards). */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-wrap: nowrap;
  align-items: stretch;
  padding-top: 0;
  flex-shrink: 1;
}

/* hero-cta: about (779) and studio (last def, 3544) define .hero-cta as a standalone orange
   button with background:var(--orange). Capital uses it as a plain flex wrapper containing
   separate .btn-primary and .btn-ghost children — no background, no padding. */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;
  transform: none;
  box-shadow: none;
}

.hero-cta:hover {
  background: none;
  transform: none;
}

/* stat-num: companies (last def, 1758) sets letter-spacing:-0.04em; capital needs -0.05em */
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 4px;
}

/* stat-label: index sets text-transform:uppercase; companies (last def, 1760) wins with
   font-size:0.6rem + uppercase + letter-spacing:0.1em + margin-top:3px.
   Capital uses longer descriptive labels — needs 0.72rem / weight 300 / no caps. */
.stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 0;
}

/* section: events (1942) sets 64px; news/jobs (2142,2326) set 56px. Capital needs 80px. */
.section {
  padding: 80px 56px;
}

/* section-title: studio wins with -0.03em; capital needs -0.04em / 16px */
.section-title {
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

/* section-sub: news/jobs (2147,2331) win with font-size:0.85rem; capital needs 0.92rem */
.section-sub {
  font-size: 0.92rem;
}

/* ── Fluent Form #3 — styled to match capital page form design ────────── */

/* 2-column grid layout matching the original form-grid */
#fluentform_3 fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* All direct children default to full width */
#fluentform_3 fieldset > * {
  grid-column: 1 / -1;
  margin: 0;
}

/*
 * DOM children of fieldset (hidden inputs are nth-child 2/3/4 but don't
 * participate in grid since their display:none removes them from flow):
 *   child 5 → .ff-name-field-wrapper  (Full Name)     → col 1
 *   child 6 → .ff-el-group            (Company Email) → col 2
 *   child 7 → .ff-el-group            (LinkedIn)      → full (default)
 *   child 8 → .ff-el-group            (Company Name)  → col 1
 *   child 9 → .ff-el-group            (Company Website) → col 2
 *   child 10-12 → textareas + submit  → full (default)
 */
#fluentform_3 fieldset > :nth-child(5) { grid-column: 1 / 2; } /* Full Name */
#fluentform_3 fieldset > :nth-child(6) { grid-column: 2 / 3; } /* Company Email */
#fluentform_3 fieldset > :nth-child(8) { grid-column: 1 / 2; } /* Company Name */
#fluentform_3 fieldset > :nth-child(9) { grid-column: 2 / 3; } /* Company Website */

/* Remove FluentForm's default margin-bottom on the name field's inner group */
#fluentform_3 .ff-name-field-wrapper .ff-el-group {
  margin-bottom: 0 !important;
}
#fluentform_3 .ff-name-field-wrapper .ff-el-input--content {
  margin-left: 0 !important;
  width: 100% !important;
}

/* Labels */
#fluentform_3 .ff-el-input--label label,
#fluentform_3 .ff-name-field-wrapper label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dark);
  font-family: 'Poppins', sans-serif;
  margin-bottom: 6px;
}

/* Required asterisk colour */
#fluentform_3 .ff-el-is-required .asterisk-right label::after {
  color: var(--orange);
}

/* Inputs & Textareas */
#fluentform_3 .ff-el-form-control {
  padding: 12px 14px !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 8px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.82rem !important;
  color: var(--dark) !important;
  background: var(--light) !important;
  transition: border-color 0.2s, background 0.2s !important;
  outline: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

#fluentform_3 .ff-el-form-control:focus {
  border-color: var(--blue) !important;
  background: white !important;
}

#fluentform_3 .ff-el-form-control::placeholder {
  color: rgba(16, 20, 31, 0.3) !important;
}

#fluentform_3 textarea.ff-el-form-control {
  resize: vertical !important;
  min-height: 100px !important;
}

/* Submit button */
#fluentform_3 .ff_btn_no_style,
#fluentform_3 .ff_submit_btn_wrapper button {
  background: var(--orange) !important;
  color: white !important;
  padding: 14px 32px !important;
  border-radius: 10px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  width: 100% !important;
  letter-spacing: 0.01em !important;
  display: block !important;
}

#fluentform_3 .ff_btn_no_style:hover,
#fluentform_3 .ff_submit_btn_wrapper button:hover {
  background: #d96820 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(240, 120, 48, 0.35) !important;
}

/* Validation error messages */
#fluentform_3 .error,
#fluentform_3 .ff-el-form-error {
  font-size: 0.68rem;
  color: #e53e3e;
  margin-top: 4px;
}

/* Success message — matches Mailchimp #mce-success-response style */
#fluentform_3_success.ff-message-success,
#fluentform_3 .ff-message-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
  background: white;
  border: 1.5px solid #86efac;
  color: #15803d;
}

#fluentform_3_success.ff-message-success::before,
#fluentform_3 .ff-message-success::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #16a34a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 1px;
}

/* Responsive — collapse to 1 column */
@media (max-width: 900px) {
  #fluentform_3 fieldset { grid-template-columns: 1fr; }
  #fluentform_3 fieldset > :nth-child(5),
  #fluentform_3 fieldset > :nth-child(6),
  #fluentform_3 fieldset > :nth-child(8),
  #fluentform_3 fieldset > :nth-child(9) { grid-column: 1 / -1; }
}
