/* ═══════════════════════════════════════════════════
   AllCorr / HopNaTop — intake-modal.css
   Modal wyboru trybu Intake przed uruchomieniem
   Używany na: allcorr.eu, hopnatop.allcorr.eu
   ═══════════════════════════════════════════════════ */

/* ── Overlay ── */
#intake-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 31, .85);
  backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#intake-modal-overlay.active {
  display: flex;
}

/* ── Modal box ── */
#intake-modal {
  background: #111738;
  border: 1px solid rgba(212, 168, 67, .28);
  border-radius: 16px;
  padding: 2.2rem 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  animation: modal-in .25s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Header ── */
.intake-modal-header {
  text-align: center;
  margin-bottom: 1.6rem;
}
.intake-modal-header .modal-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: .6rem;
}
.intake-modal-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: .4rem;
}
.intake-modal-header p {
  font-size: .85rem;
  color: #9a98a6;
  line-height: 1.6;
}

/* ── Radio options ── */
.intake-options {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: 1.6rem;
}

.intake-option {
  position: relative;
}

.intake-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.intake-option label {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 9px;
  cursor: pointer;
  font-size: .9rem;
  color: #e2e0dc;
  transition: background .18s, border-color .18s;
  user-select: none;
}

.intake-option label:hover {
  background: rgba(212, 168, 67, .08);
  border-color: rgba(212, 168, 67, .25);
}

.intake-option input[type="radio"]:checked + label {
  background: rgba(212, 168, 67, .12);
  border-color: rgba(212, 168, 67, .45);
  color: #ffffff;
}

.intake-option label .opt-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.intake-option label .opt-text {
  flex: 1;
}

/* ── Radio indicator ── */
.intake-option label::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  flex-shrink: 0;
  transition: border-color .18s, background .18s;
  order: -1;
}

.intake-option input[type="radio"]:checked + label::before {
  border-color: #d4a843;
  background: #d4a843;
  box-shadow: inset 0 0 0 3px #111738;
}

/* ── Actions ── */
.intake-modal-actions {
  display: flex;
  gap: .75rem;
}

#intake-modal-confirm {
  flex: 1;
  background: linear-gradient(135deg, #d4a843, #b8922e);
  color: #0a0e27;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  padding: .85rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
#intake-modal-confirm:hover:not(:disabled) {
  opacity: .88;
  transform: translateY(-1px);
}
#intake-modal-confirm:disabled {
  opacity: .45;
  cursor: not-allowed;
}

#intake-modal-cancel {
  padding: .85rem 1.2rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  color: #9a98a6;
  font-size: .88rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
#intake-modal-cancel:hover {
  border-color: rgba(255, 255, 255, .25);
  color: #e2e0dc;
}

/* ── Note ── */
.intake-modal-note {
  text-align: center;
  font-size: .75rem;
  color: #9a98a6;
  margin-top: 1rem;
}

/* ── Mobile ── */
@media (max-width: 520px) {
  #intake-modal {
    padding: 1.6rem 1.2rem;
  }
  .intake-modal-actions {
    flex-direction: column;
  }
  #intake-modal-cancel {
    order: 1;
  }
}
