/**
 * Guest Options Styles
 * Styling for person selection and extra services
 */

.phb-guest-options {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid #e9ecef;
}

.phb-options-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #667eea;
}

/* Person Selector */
.phb-persons-selector {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.phb-person-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  min-width: 50px;
  min-height: 50px;
  text-align: center;
}

.phb-person-option:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.phb-person-option input[type="radio"] {
  display: none;
}



.phb-person-option input[type="radio"]:checked~.phb-person-icon {
  color: #667eea;
}

.phb-person-option input[type="radio"]:checked {
  border-color: #667eea;
  background: #f0f4ff;
}



.phb-person-option input[type="radio"]:checked~* {
  color: #667eea;
}

.phb-person-option:has(input[type="radio"]:checked) {
  border-color: #667eea;
  background: #f0f4ff;
}

.phb-person-icon {
  font-size: 1.8rem;
  color: #6c757d;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phb-person-icon i {
  margin: 0 1px;
}



/* Extra Services */
.phb-extra-services {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.phb-service-option {
  display: flex;
  align-items: center;
  padding: 0.25rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  min-width: 120px;
}

/* Compact layout for small screens */
@media (max-width: 600px) {
  .phb-options-title { font-size: 0.95rem; margin: 0 0 0.5rem 0; }
  .phb-persons-selector { gap: 0.25rem; }

  .phb-person-option { min-width: 44px; min-height: 44px; padding: 0.2rem; }
  .phb-person-icon { font-size: 1.5rem; }

  .phb-extra-services { gap: 0.5rem; }
  .phb-service-option { padding: 0.35rem 0.5rem; min-width: auto; gap: 0.35rem; }
  .phb-service-label { display: none; }
}

.phb-service-option:hover {
  border-color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.phb-service-option input[type="checkbox"] {
  display: none;
}

.phb-service-option input[type="checkbox"]:checked+.phb-service-icon+.phb-service-label {
  color: #667eea;
  font-weight: 600;
}

.phb-service-option input[type="checkbox"]:checked~.phb-service-icon {
  color: #667eea;
}

.phb-service-option:has(input[type="checkbox"]:checked) {
  border-color: #667eea;
  background: #f0f4ff;
}

.phb-service-icon {
  font-size: 1rem;
  color: #6c757d;
  margin-right: 0.75rem;
  transition: color 0.3s ease;
}

.phb-service-label {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Disabled state for max persons */
.phb-person-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8f9fa;
}

.phb-person-option.disabled:hover {
  border-color: #e9ecef;
  transform: none;
  box-shadow: none;
}

.phb-person-option.disabled input[type="radio"] {
  pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .phb-guest-options {
    padding: 0.5rem;
    margin: 0.5rem 0;
  }

  .phb-persons-selector {
    gap: 0.5rem;
    justify-content: center;
  }

  .phb-person-option {
    min-width: 50px;
    min-height: 50px;
    padding: 0.5rem;
  }

  .phb-person-icon {
    font-size: 1rem;
  }



  .phb-extra-services {
    gap: 0.5rem;
    justify-content: center;
  }

  .phb-service-option {
    min-width: 100px;
    padding: 0.25rem 0.25rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .phb-guest-options {
    background: #2a2a2a;
    border-color: #333333;
  }

  .phb-options-title {
    color: #ffffff;
    border-bottom-color: #667eea;
  }

  .phb-person-option,
  .phb-service-option {
    background: #3a3a3a;
    border-color: #444444;
  }

  .phb-person-option:hover,
  .phb-service-option:hover {
    border-color: #667eea;
  }

  .phb-person-option:has(input[type="radio"]:checked),
  .phb-service-option:has(input[type="checkbox"]:checked) {
    background: #1e3a5f;
    border-color: #667eea;
  }

  .phb-person-icon,
  .phb-service-icon {
    color: #9ca3af;
  }

  .phb-service-label {
    color: #9ca3af;
  }
}