/* =============================
   COMPATIBILITY – WRAPPER
============================= */

.ph-compatibility {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}


/* =============================
   LAYOUT – FORM + RADIX
============================= */

.ph-compat-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: center;
}


/* =============================
   FORM GRID
============================= */

.ph-compat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ph-compat-form {
  display: block;
}


/* =============================
   GLASS FORM CARD
============================= */

.ph-compat-card {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.06),
      rgba(255,255,255,0.02)
    ),
    rgba(15,18,32,0.6);

  border-radius: 18px;
  padding: 22px;

  border: 1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 15px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.ph-compat-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.ph-compat-card label {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
}

.ph-compat-card select,
.ph-compat-card input[type="date"] {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
}


/* =============================
   DATE TOGGLE
============================= */

.ph-toggle-date {
  background: none;
  border: none;
  color: #8aa2ff;
  cursor: pointer;
  padding: 0;
  margin-bottom: 12px;
}

.ph-date-field {
  display: none;
}


/* =============================
   SUBMIT BUTTON
============================= */

.ph-compat-submit {
  text-align: center;
  margin-top: 28px;
}

.ph-compat-submit button {
  padding: 12px 26px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
}


/* =============================
   RADIX / SVG WHEEL
============================= */

.ph-compat-chart {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-astro-wheel {
  filter: drop-shadow(0 0 24px rgba(255,255,255,0.08));
}

.ph-zodiac text {
  font-family:
    "Segoe UI Symbol",
    "Noto Sans Symbols2",
    "DejaVu Sans",
    "Arial Unicode MS",
    sans-serif !important;

  font-size: 25px;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.ph-astro-wheel:hover .ph-zodiac text {
  opacity: 0.55;
}


/* =============================
   RESULTS WRAPPER
============================= */

.ph-compat-result {
  max-width: 900px;
  margin: 80px auto 120px;
  padding: 0 20px;
}


/* =============================
   RESULT BUBBLE GRID
============================= */

.ph-compat-bubble-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 40px;
  align-items: start;
}


/* =============================
   GLASS RESULT BUBBLES
============================= */

.ph-compat-bubble {
  position: relative;
  width: 100%;

  border-radius: 24px;
  padding: 36px 40px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.02)
    ),
    rgba(15,18,32,0.55);

  border: 1px solid rgba(255,255,255,0.12);

  box-shadow:
    0 25px 60px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  overflow: hidden;
}

.ph-compat-bubble h3 {
  margin: 0 0 18px 0;
}

.ph-compat-bubble-text {
  line-height: 1.65;
  opacity: 0.9;
}

.ph-compat-bubble-text p {
  margin: 0 0 14px;
}

.ph-compat-bubble-text p:last-child {
  margin-bottom: 0;
}


/* =============================
   MOBILE RESPONSIVE
============================= */

@media (max-width: 900px) {

  .ph-compat-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ph-compat-grid {
    grid-template-columns: 1fr;
  }

  .ph-compat-bubble-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ph-compatibility {
    padding: 0 14px;
  }

  .ph-compat-bubble {
    padding: 22px 18px;
  }

}
/* ====================================
   MOBILE – zúžení formuláře compatibility
==================================== */

@media (max-width: 768px){

  body.page-id-418 .ph-compat-form{
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  body.page-id-418 .ph-compat-card{
    padding: 18px 20px;
  }

}
/* =========================================
   MOBILE FORM CENTER FIX – Compatibility Lite
========================================= */

@media (max-width: 768px){

  body.page-id-418 .ph-compat-layout{
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    align-items: start !important;
  }

  body.page-id-418 .ph-compat-form{
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

}
/* === Compatibility-lite sjednocení s Horoskop formulářem === */

.ph-compatibility .ph-compat-card {
  background: rgba(18, 22, 38, 0.78);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(0,0,0,.35);
}

/* inputy */
.ph-compatibility select,
.ph-compatibility input {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  color: #e9edf6;
  border-radius: 12px;
}

/* focus */
.ph-compatibility select:focus,
.ph-compatibility input:focus {
  border-color: #8aa2ff;
  outline: none;
  box-shadow: 0 0 0 1px rgba(138,162,255,.35);
}

/* tlačítko */
.ph-compatibility button {
  background: linear-gradient(90deg, #8aa2ff, #a56bff);
  border: none;
  color: white;
  border-radius: 14px;
  padding: 10px 20px;
  transition: transform .08s ease, opacity .2s ease;
}

.ph-compatibility button:hover {
  opacity: .9;
  transform: translateY(-1px);
}
.ph-compatibility .ph-toggle-date {
  display: none !important;
}
/* === Sjednocení tlačítka Compatibility Lite === */

.ph-compatibility button,
.ph-compatibility .ph-btn {
  background: linear-gradient(90deg, #6fb1ff 0%, #8a7dff 50%, #b06bff 100%);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 500;
  transition: all .2s ease;
  box-shadow: 0 6px 18px rgba(120, 120, 255, 0.25);
}

.ph-compatibility button:hover,
.ph-compatibility .ph-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(120, 120, 255, 0.35);
}
/* =========================================================
   Compatibility Lite 0.2 – sign/date/mixed mode
========================================================= */
.ph-compatibility{
  max-width: 1180px;
  margin: 0 auto;
}

.ph-compat-card--intro{
  margin: 0 auto 18px;
  max-width: 980px;
  padding: 14px 18px;
}

.ph-compat-card--intro p{
  margin: 0;
  color: rgba(233,237,246,.82);
  line-height: 1.55;
}

.ph-compat-field{
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
}

.ph-compat-field span{
  color: rgba(233,237,246,.88);
  font-weight: 650;
  font-size: 14px;
}

.ph-compat-field small{
  display: block;
  color: rgba(233,237,246,.58);
  font-size: 12px;
  line-height: 1.35;
}

.ph-compat-date-field input[type="date"]{
  width: 100%;
  box-sizing: border-box;
}

.ph-compat-card.is-loading{
  opacity: .74;
  pointer-events: none;
}

.ph-compatibility select.is-locked{
  opacity: .72;
  cursor: not-allowed;
}

.ph-compat-chart{
  display: grid;
  justify-items: center;
  gap: 14px;
}

.ph-astro-wheel{
  max-width: min(100%, 340px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.35));
}

.ph-chart-body{
  opacity: .96;
  transition: opacity .18s ease;
}

.ph-chart-body circle{
  fill: rgba(12, 16, 28, .80);
  stroke-width: 1.2;
}

.ph-chart-body text{
  fill: rgba(255,255,255,.92);
  dominant-baseline: middle;
  pointer-events: none;
}

.ph-chart-body--me circle{
  stroke: rgba(178,136,255,.86);
}

.ph-chart-body--partner circle{
  stroke: rgba(111,184,255,.86);
}

.ph-chart-body--is-extra,
.ph-chart-body.is-extra{
  opacity: 0;
  pointer-events: none;
}

.ph-chart-body--is-extra.is-visible,
.ph-chart-body.is-extra.is-visible{
  opacity: .96;
}

.ph-compat-positions{
  width: min(100%, 420px);
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(10,14,26,.42);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 38px rgba(0,0,0,.25);
  color: rgba(233,237,246,.82);
  font-size: 13px;
  line-height: 1.45;
}

.ph-compat-personline + .ph-compat-personline{
  margin-top: 7px;
}

.ph-compat-note{
  margin-top: 8px;
  color: rgba(233,237,246,.55);
  font-size: 12px;
}

.ph-compat-result-grid{
  align-items: stretch;
}

.ph-bubble--moon .ph-bubble-title::before{ content: "☽ "; }
.ph-bubble--venus .ph-bubble-title::before{ content: "♀ "; }
.ph-bubble--sun .ph-bubble-title::before{ content: "☉ "; }

@media (max-width: 768px){
  .ph-compat-card--intro{
    margin-left: 8px;
    margin-right: 8px;
  }

  .ph-compat-grid{
    gap: 14px;
  }

  .ph-astro-wheel{
    max-width: min(100%, 300px);
  }
}
