/* ═══════════════════════════════════════════════════════════════════════════
   O'Clock PRO — B2B landing page (page-pro.php)
   Loaded only on this template (dep: soc-page). Blocks come from
   Pages & Home Editor → O'Clock PRO.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero — full-bleed, teal scrim over the ambient image ── */
.soc-pro-hero {
  position: relative; min-height: 600px; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; background: var(--c-brand-dark, #072B33);
}
.soc-pro-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.soc-pro-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,43,51,.30), rgba(7,43,51,.66));
}
.soc-pro-hero__in { position: relative; z-index: 1; padding: 56px 24px; max-width: 840px; }
.soc-pro-hero__eyebrow {
  display: block; color: var(--c-accent, #EC6A4E); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; font-weight: var(--fw-bold, 700); margin-bottom: 18px;
}
.soc-pro-hero__title {
  font-family: var(--font-display, var(--font-main, Georgia, serif)); font-weight: var(--fw-bold, 700);
  color: #fff; font-size: clamp(40px, 6.6vw, 74px); line-height: 1.08;
  letter-spacing: var(--tracking-display, -.02em); margin: 0;
}
.soc-pro-hero__text {
  color: rgba(255,255,255,.86); font-size: clamp(16px, 2vw, 20px); line-height: 1.55;
  max-width: 56ch; margin: 20px auto 0;
}
.soc-pro-hero__text p { margin: 0 0 12px; }
.soc-pro-hero__text p:last-child { margin-bottom: 0; }
.soc-pro-hero__btn { margin-top: 28px; }
@media (max-width: 820px) { .soc-pro-hero { min-height: 520px; } }

/* ── Bands + canvas ── */
.soc-pro-band { padding: 84px 0; }
.soc-pro-band--cream { background: var(--c-surface, #F7F4EC); }
.soc-pro-band--plain { background: var(--c-bg, #fff); }
.soc-pro-canvas { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 820px) { .soc-pro-band { padding: 52px 0; } }

/* Shared heading */
.soc-pro-h {
  font-family: var(--font-display, var(--font-main, Georgia, serif)); color: var(--c-text);
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.08;
  letter-spacing: var(--tracking-display, -.02em); margin: 0;
}

/* ── Intro ── */
.soc-pro-intro { text-align: center; max-width: 780px; margin: 0 auto; }
.soc-pro-intro__text {
  font-size: 17px; line-height: 1.75; color: var(--c-text-muted);
  margin: 20px auto 0; max-width: 66ch;
}
.soc-pro-intro__text p { margin: 0 0 16px; }
.soc-pro-intro__text p:last-child { margin-bottom: 0; }

/* ── Text + Image — rich text beside an image, alternating sides ── */
.soc-pro-benefit { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.soc-pro-benefit + .soc-pro-benefit { margin-top: 52px; }
.soc-pro-benefit__media {
  overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r, 14px); background: var(--c-surface);
}
.soc-pro-benefit__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.soc-pro-benefit__media .soc-ab-ph { border-radius: var(--r, 14px); }
.soc-pro-benefit__title { font-size: clamp(28px, 4vw, 46px); margin-bottom: 20px; }
.soc-pro-benefit__body { font-size: 15.5px; line-height: 1.65; color: var(--c-text-muted); }
.soc-pro-benefit__body p { margin: 0 0 18px; }
.soc-pro-benefit__body p:last-child { margin-bottom: 0; }
.soc-pro-benefit__body b,
.soc-pro-benefit__body strong { color: var(--c-text); font-weight: var(--fw-bold, 700); }
.soc-pro-benefit__body a {
  color: var(--c-accent, var(--c-brand)); text-decoration: none; border-bottom: 1px solid currentColor;
}
@media (min-width: 768px) {
  .soc-pro-benefit { grid-template-columns: 1fr 1fr; gap: 56px; }
  /* Text comes first in the DOM (better reading order); pull the image over. */
  .soc-pro-benefit.is-img-left .soc-pro-benefit__media { order: -1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Registration form
   ═══════════════════════════════════════════════════════════════════════════ */

/* The header is sticky — keep the title clear of it when the hero button jumps here. */
.soc-pro-form { scroll-margin-top: calc(var(--header-h, 52px) + 24px); }
.soc-pro-form__title { font-size: clamp(28px, 4vw, 46px); text-align: center; }
.soc-pro-form__sub {
  text-align: center; color: var(--c-text-muted); max-width: 60ch;
  margin: 16px auto 36px; font-size: 16px; line-height: 1.7;
}
.soc-pro-form__sub p { margin: 0 0 12px; }
.soc-pro-form__sub p:last-child { margin-bottom: 0; }

.soc-pro-form__card {
  max-width: 780px; margin: 0 auto; background: var(--c-bg, #fff);
  border: 1px solid var(--c-border); border-radius: var(--r, 14px); padding: 30px;
}
@media (min-width: 640px) { .soc-pro-form__card { padding: 36px 40px; } }

.soc-pro-fset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.soc-pro-fset__t {
  display: block; width: 100%; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-accent, #EC6A4E); font-weight: var(--fw-bold, 700);
  margin: 0 0 16px; padding: 0 0 9px; border-bottom: 1px solid var(--c-border);
}

.soc-pro-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .soc-pro-grid { grid-template-columns: 1fr 1fr; } }
.soc-pro-grid .soc-field-group { margin-bottom: 0; min-width: 0; }
.soc-pro-f--full { grid-column: 1 / -1; }

.soc-pro-req { color: var(--c-accent, #EC6A4E); }
.soc-pro-opt { color: var(--c-text-light); font-weight: var(--fw-regular, 400); text-transform: none; letter-spacing: 0; }

/* Fields keep the site's form language (same override the contact form uses). */
.soc-pro-form__card .soc-input,
.soc-pro-form__card .soc-select,
.soc-pro-form__card .soc-textarea,
.soc-pro-form__card .flagsel__btn {
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r, 14px);
}
.soc-pro-form__card .soc-textarea { min-height: 112px; resize: vertical; line-height: 1.6; }
.soc-pro-form__card .soc-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%233A565B' stroke-width='1.5'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 36px;
}

/* ── Phone: dial-code listbox + number ── */
.soc-pro-phone { display: grid; grid-template-columns: 116px 1fr; gap: 8px; }

/* The list is absolutely positioned — nothing above it may clip. */
.flagsel { position: relative; z-index: 2; min-width: 0; }
.flagsel__btn {
  display: flex; align-items: center; gap: 6px; width: 100%;
  font-family: var(--font-main); font-size: var(--text-base, 14px);
  padding: 11px 12px; background: var(--c-white); color: var(--c-text); cursor: pointer;
  transition: border-color var(--t-fast, .15s ease);
}
.flagsel__btn:focus-visible,
.flagsel.is-open .flagsel__btn { border-color: var(--c-brand) !important; outline: none; }
.flagsel__flag, .flagsel .flg {
  width: 20px; height: 14px; border-radius: 2px; overflow: hidden; flex: none;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.10); display: block;
}
.flagsel__flag svg, .flagsel .flg svg { display: block; width: 100%; height: 100%; }
.flagsel__code { font-variant-numeric: tabular-nums; }
.flagsel__chev { margin-left: auto; color: var(--c-text-muted); transition: transform .15s ease; flex: none; }
.flagsel.is-open .flagsel__chev { transform: rotate(180deg); }

.flagsel__list {
  position: absolute; top: calc(100% + 5px); left: 0; min-width: 238px; z-index: 30;
  margin: 0; padding: 5px; list-style: none; background: var(--c-white);
  border: 1px solid var(--c-border-mid); border-radius: var(--r, 14px);
  box-shadow: 0 14px 34px -10px rgba(7,43,51,.30); max-height: 240px; overflow: auto;
}
.flagsel__list[hidden] { display: none; }
.flagsel__list li {
  display: flex; align-items: center; gap: 9px; padding: 8px 9px;
  border-radius: var(--r-sm, 8px); cursor: pointer; font-size: 14px; color: var(--c-text);
}
.flagsel__list li:hover,
.flagsel__list li.is-active { background: var(--c-surface); }
.flagsel__list .nm { flex: 1; }
.flagsel__list .cd { color: var(--c-text-muted); font-variant-numeric: tabular-nums; }

/* ── Consent, honeypot, submit, notice ── */
.soc-pro-consent { margin: 4px 0 18px; }

/* Off-screen rather than display:none — bots skip hidden fields less often. */
.soc-pro-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.soc-pro-form__submit { margin-top: 4px; }

.soc-pro-notice { display: none; padding: 12px 16px; font-size: 13px; margin-top: 16px; border-radius: var(--r-sm, 8px); }
.soc-pro-notice--ok    { color: var(--c-success); background: var(--c-success-bg); border-left: 2px solid var(--c-success); }
.soc-pro-notice--error { color: var(--c-error);   background: var(--c-error-bg);   border-left: 2px solid var(--c-error); }
.soc-pro-notice.is-visible { display: block; }

@media (max-width: 400px) {
  .soc-pro-phone { grid-template-columns: 104px 1fr; }
  .flagsel__list { min-width: 210px; }
}
