/* =============================================================
   Своя Опора · Placeholder-страницы /bali/, /thailand/
   Одноэкранные, тёмные, в стиле портала.
   Слева — инфо о планах, справа — форма. Загружается ПОСЛЕ styles.css.
   ============================================================= */

/* Фон под направление (совпадает с карточкой на портале) */
body[data-direction="bali"] {
  background:
    radial-gradient(90% 70% at 22% 18%, rgba(200, 147, 96, 0.16), transparent 55%),
    radial-gradient(90% 70% at 82% 90%, rgba(184, 107, 74, 0.12), transparent 55%),
    linear-gradient(160deg, #221C15 0%, #17130E 55%, #100D09 100%);
}
body[data-direction="thailand"] {
  background:
    radial-gradient(90% 70% at 78% 20%, rgba(200, 147, 96, 0.13), transparent 55%),
    radial-gradient(90% 70% at 18% 88%, rgba(96, 116, 98, 0.16), transparent 60%),
    linear-gradient(200deg, #201C15 0%, #16120D 55%, #0F0C08 100%);
}

/* Топбар: слева бренд + «назад», справа контакты */
.topbar__left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--paper-2);
  padding: 6px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  transition: color var(--duration-fast) var(--ease),
              border-color var(--duration-fast) var(--ease);
}
.topbar__back:hover {
  color: var(--gold);
  border-color: var(--gold);
}
@media (max-width: 560px) {
  .topbar__back-label { display: none; }
  .topbar__back { padding: 8px; }
}

/* Прозрачный подвал на placeholder */
body[data-direction] .botbar { background: transparent; }

/* ═══ MAIN — две колонки ═══ */
.ph-main {
  overflow-y: auto;
  padding: clamp(28px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-content: center;
}
@media (min-width: 900px) {
  .ph-main {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(44px, 6vw, 110px);
    align-items: center;
    overflow: hidden;
  }
}

/* ── Левая колонка: инфо ── */
.ph-info { max-width: 540px; }

.ph-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.ph-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(0.85); }
}

.ph-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 118px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 24px;
}

.ph-lead {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.55;
  color: var(--paper);
  opacity: 0.9;
  margin-bottom: 28px;
}

.ph-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}
.ph-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-body);
  font-size: 14px;
}
.ph-list li span:first-child {
  color: var(--paper-2);
  letter-spacing: 0.02em;
}
.ph-list li span:last-child {
  color: var(--paper);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
}

/* ── Правая колонка: форма-панель ── */
.ph-form-panel {
  background: rgba(31, 27, 21, 0.72);
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  padding: clamp(28px, 3.2vw, 44px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ph-form-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--paper);
  margin-bottom: 8px;
}
.ph-form-sub {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--paper-2);
  margin-bottom: 24px;
}

.ph-form { display: flex; flex-direction: column; gap: 22px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.ph-field { display: flex; flex-direction: column; gap: 8px; }
.ph-field label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-2);
}
.ph-field input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(235, 228, 214, 0.22);
  color: var(--paper);
  font-size: 16px;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease);
  border-radius: 0;
}
.ph-field input::placeholder { color: rgba(235, 228, 214, 0.35); }
.ph-field input:focus {
  border-bottom-color: var(--gold);
  border-bottom-width: 2px;
  padding-bottom: 11px;
}

.ph-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--paper-2);
  cursor: pointer;
}
.ph-consent input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--gold);
  margin-top: 2px;
}
.ph-consent a { color: var(--gold); text-decoration: underline; }

.ph-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--canvas);
  background: var(--gold);
  border-radius: 999px;
  cursor: pointer;
  min-height: 48px;
  transition: background var(--duration-fast) var(--ease),
              transform var(--duration-fast) var(--ease);
}
.ph-submit svg { transition: transform var(--duration-fast) var(--ease); }
.ph-submit:hover { background: #A87747; }
.ph-submit:hover svg { transform: translateX(2px); }
.ph-submit:active { transform: translateY(1px); }
.ph-submit:disabled { opacity: 0.6; cursor: default; }

.ph-note {
  font-size: 13px;
  color: var(--paper-2);
  min-height: 1.4em;
  line-height: 1.5;
}
.ph-note.is-error { color: #E08A6A; }
.ph-note.is-success { color: #9FC0A2; }

/* Успех: прячем поля, показываем блок */
.ph-form.is-submitted .ph-field,
.ph-form.is-submitted .ph-consent,
.ph-form.is-submitted .ph-submit,
.ph-form.is-submitted .ph-note { display: none; }

.ph-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 20px 8px;
  color: #9FC0A2;
  animation: successIn var(--duration) var(--ease);
}
.ph-success[hidden] { display: none; }
@keyframes successIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ph-success h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  color: var(--paper);
}
.ph-success p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--paper-2);
  max-width: 320px;
}
