/**
 * Event Slots Selector V2 - CSS Styles
 * Module: weplus_experience
 */

.event-slots-selector-v2 {
  margin: 20px 0;
  padding: 0;
  background: transparent;
}

.slots-selection-container {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.step-label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #007bff;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  margin-right: 10px;
}

.custom-select {
  border: 2px solid #e9ecef;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  transition: all 0.2s ease;
  background-color: #fff;
  margin-bottom: 0;
}

.custom-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
  outline: none;
}

.custom-select:disabled {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
  cursor: not-allowed;
}

.custom-select:disabled .step-number {
  background-color: #6c757d;
}

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

.slot-info-card {
  margin-top: 25px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #151F35 100%);
  border-radius: 8px;
  color: white;
  border: none;
}

.slot-info-card #slot-details {
  margin-bottom: 15px;
  line-height: 1.6;
}

.slot-info-card #slot-details strong {
  color: #fff;
  font-size: 1.2em;
  display: block;
  margin-bottom: 8px;
}

.slot-info-card #slot-details i {
  margin-right: 8px;
  color: rgba(255,255,255,0.9);
  width: 16px;
}

.quantity-info {
  background: rgba(255,255,255,0.15);
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.95);
}

.quantity-info i {
  margin-right: 6px;
  color: rgba(255,255,255,0.9);
}

.row .col-md-6 {
  padding-left: 10px;
  padding-right: 10px;
}

@media (max-width: 768px) {
  .slots-selection-container {
    padding: 20px 15px;
  }
  
  .row .col-md-6 {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 15px;
  }
}

/* Gift Voucher Styles */
.gift-btn-container {
  margin-top: 20px;
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.btn-gift {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-gift:hover {
  background: linear-gradient(135deg, #ee5a24 0%, #ff6b6b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
  color: white;
}

.btn-gift:active {
  transform: translateY(0);
}

.btn-gift i {
  margin-right: 8px;
}

.gift-btn-help {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #6c757d;
  font-style: italic;
}

.gift-voucher-container {
  margin-top: 20px;
}

.gift-section {
  background: linear-gradient(135deg, #667eea 0%, #151F35 100%);
  border-radius: 12px;
  padding: 25px;
  color: white;
  box-shadow: 0 4px 20px rgba(118, 75, 162, 0.3);
}

.gift-title {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.gift-title i {
  margin-right: 10px;
  font-size: 20px;
  color: #ffd700;
}

.gift-description {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.gift-form-container {
  margin-bottom: 20px;
}

.gift-field-group {
  margin-bottom: 15px;
}

.gift-label {
  display: block;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.gift-label i {
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.8);
}

.gift-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  transition: all 0.3s ease;
}

.gift-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.gift-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.gift-input.is-invalid {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

.gift-form-container .row {
  margin-left: -8px;
  margin-right: -8px;
}

.gift-form-container .col-md-6 {
  padding-left: 8px;
  padding-right: 8px;
}

.gift-help-text {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.gift-help-text i {
  margin-right: 5px;
}

.gift-actions {
  text-align: center;
}

.gift-actions .btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.gift-actions .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

.gift-actions .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: white;
}

.gift-validation-error {
  background-color: rgba(255, 107, 107, 0.15) !important;
  border-color: rgba(255, 107, 107, 0.3) !important;
  color: rgba(255, 255, 255, 0.95) !important;
}

/* CSS pour le nouveau mode cadeau indépendant */
.gift-standalone-section {
  margin-top: 30px;
  margin-bottom: 30px;
  padding-bottom: 25px;
}

.gift-standalone-section h3 {
  color: #B17046;
  margin-bottom: 15px;
}

.gift-mode-toggle {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #B17046;
}

.gift-mode-toggle .switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.gift-mode-toggle .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.gift-mode-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.gift-mode-toggle .slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

.gift-mode-toggle input:checked + .slider {
  background-color: #B17046;
}

.gift-mode-toggle input:focus + .slider {
  box-shadow: 0 0 1px #B17046;
}

.gift-mode-toggle input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.gift-mode-toggle .slider.round {
  border-radius: 34px;
}

.gift-mode-toggle .slider.round:before {
  border-radius: 50%;
}

.gift-mode-toggle .toggle-label {
  margin: 0;
  cursor: pointer;
}

.gift-mode-toggle .toggle-label strong {
  display: block;
  font-size: 16px;
  color: #212529;
}

.gift-mode-toggle .toggle-label small {
  display: block;
  color: #6c757d;
  font-size: 13px;
  margin-top: 2px;
}

.gift-standalone-form {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  margin-top: 20px;
}

.gift-standalone-actions {
  margin-top: 25px;
  text-align: center;
}

.gift-standalone-actions .btn {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
}

.gift-standalone-help {
  margin-top: 20px;
  padding: 15px;
  background: #e7e8ec;
  border-left: 4px solid #151F35;
  border-radius: 4px;
  font-size: 14px;
  color: #151F35;
}

.gift-standalone-help i {
  margin-right: 8px;
  color: #151F35;
}

/* Modal cadeau */
#giftModal .modal-content {
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

#giftModal .gift-modal-header {
  background: #151F35;
  color: white;
  border-bottom: none;
  padding: 20px 25px;
}

#giftModal .gift-modal-header .modal-title {
  color: white;
  font-size: 18px;
  font-weight: 700;
}

#giftModal .gift-modal-header .modal-title i {
  margin-right: 10px;
  color: #B17046;
}

#giftModal .gift-modal-body {
  padding: 25px;
}

#giftModal .gift-modal-body label {
  font-weight: 600;
  font-size: 13px;
  color: #333;
  margin-bottom: 6px;
}

#giftModal .gift-modal-body label i {
  margin-right: 8px;
  color: #151F35;
}

#giftModal .gift-modal-body .gift-input {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #fff;
  color: #333;
}

#giftModal .gift-modal-body .gift-input::placeholder {
  color: #adb5bd;
}

#giftModal .gift-modal-body .gift-input:focus {
  border-color: #151F35;
  box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.15);
  outline: none;
}

#giftModal .gift-modal-body .gift-input.is-invalid {
  border-color: #dc3545;
}

#giftModal .gift-modal-help {
  margin-top: 15px;
  padding: 12px 15px;
  background: #e7e8ec;
  border-left: 4px solid #151F35;
  border-radius: 4px;
  font-size: 13px;
  color: #151F35;
  line-height: 1.4;
}

#giftModal .gift-modal-help i {
  margin-right: 8px;
  color: #151F35;
}

#giftModal .gift-modal-footer {
  border-top: 1px solid #e9ecef;
  padding: 15px 25px;
  display: flex;
  flex-direction: row;
}

#giftModal .gift-modal-footer .btn-primary {
  background: #151F35;
  border: none;
  padding: 10px 30px;
  font-weight: 600;
  border-radius: 6px;
}

#giftModal .gift-modal-footer .btn-primary:hover {
  background: #151F35;
}

#giftModal .gift-modal-footer .btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#giftModal .gift-modal-footer .btn-outline-secondary {
  border-color: #B17046;
  color: #B17046;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 6px;
}
#giftModal .gift-modal-footer .btn-outline-secondary:hover{
  color: #fff;
}

#giftModal #gift-modal-errors .alert {
  margin-bottom: 15px;
  border-radius: 6px;
}