/* Custom styles for Checkout Simulator */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.step-label {
  transition: all 0.3s ease;
}

.step-label.active {
  color: #0d6efd !important;
  font-weight: 600;
}

.step-label.completed {
  color: #198754 !important;
}

.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-body {
  border-radius: 15px;
}

.btn {
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-control {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.input-group-text {
  border-radius: 10px 0 0 10px;
  border: 2px solid #e9ecef;
  border-right: none;
  background-color: #f8f9fa;
}

.card-option {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-option:hover {
  border-color: #0d6efd;
  background-color: #f8f9fa;
}

.card-option.selected {
  border-color: #0d6efd;
  background-color: #e7f3ff;
}

.progress {
  border-radius: 10px;
}

.progress-bar {
  border-radius: 10px;
  transition: width 0.6s ease;
}

#debugConsole {
  border-radius: 10px;
  border: 1px solid #495057;
}

.spinner-border {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Card number formatting */
#cardNumber {
  letter-spacing: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    margin-top: 2rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

/* Estilos específicos para el campo de país */
#countryCode {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

#countryCode:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Estilo para opciones del select */
#countryCode option {
    padding: 0.5rem;
}

/* Indicador visual para campo requerido */
.form-label::after {
    content: " *";
    color: #dc3545;
}

/* Estilos para los nuevos campos de dirección */
#region, #city {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

#region:focus, #city:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Estilo para datalist de ciudades chilenas */
#city::-webkit-calendar-picker-indicator {
    display: none !important;
}

/* Indicador visual para campos requeridos */
.form-label::after {
    content: " *";
    color: #dc3545;
}

/* Estilo para campos de dirección */
#address, #city, #region, #postalCode {
    transition: all 0.3s ease;
}

#address:focus, #city:focus, #region:focus, #postalCode:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Animation for step transitions */
.step-content {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}