/* ==============================
   Zitro Appointment — Public Form Styles
   ============================== */

#zitro-appointment-container {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.zitro-form-group {
  margin-bottom: 20px;
}

.zitro-form-group label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.zitro-form-group input,
.zitro-form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  background-color: #fff;
}

.zitro-form-group select {
  cursor: pointer;
}

.zitro-form-group input:focus,
.zitro-form-group select:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 1px #0073aa;
}

.zitro-submit-btn {
  background: #0073aa;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  transition: background-color 0.3s ease;
}

.zitro-submit-btn:hover {
  background: #005177;
}

.zitro-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#zitro-message {
  text-align: center;
  font-weight: 600;
}

#zitro-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#zitro-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Disabled time slot styling */
.zitro-form-group select option.booked-slot {
  color: #999;
  background-color: #f5f5f5;
}

.zitro-form-group select option:disabled {
  color: #999;
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
  #zitro-appointment-container {
    margin: 10px;
    padding: 15px;
    max-width: none;
  }
  
  .zitro-form-group input,
  .zitro-form-group select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 480px) {
  #zitro-appointment-container {
    margin: 5px;
    padding: 10px;
  }
}
