/* ===================================
   iziPay Embedded Form Personalization
   Meraki Clip Factory - Custom Theme
   =================================== */

/* Contenedor principal - Centrado */
#kr-payment-form {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

#kr-payment-form .kr-embedded,
#kr-payment-form > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Estilos generales del formulario */
.kr-embedded div[class*="form"],
.kr-embedded div[class*="wrapper"],
.kr-embedded div[class*="container"] {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Labels */
label {
  font-weight: 600 !important;
  color: #4b5563 !important;
  margin-bottom: 8px !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* Inputs y selects */
input[type="text"],
input[type="tel"],
input[type="number"],
select {
  height: 48px !important;
  padding: 12px 16px !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-family: inherit !important;
  transition: all 0.3s ease !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

input::placeholder {
  color: #9ca3af !important;
}

/* Input Focus State */
input:focus,
select:focus {
  outline: none !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
  background: #f0f7ff !important;
}

/* Button */
button[class*="btn"],
button[class*="submit"],
button[class*="pay"],
button[type="submit"] {
  height: 52px !important;
  padding: 0 24px !important;
  margin-top: 24px !important;
  border: none !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  width: 100% !important;
}

button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
  transform: translateY(-2px) !important;
}

button:active {
  transform: translateY(0) !important;
}

button:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
}

/* Error text */
.error,
[class*="error"],
.alert-danger {
  color: #ef4444 !important;
  font-size: 13px !important;
  margin-top: 6px !important;
}

/* Success messages */
.success,
.alert-success {
  background: #f0fdf4 !important;
  border: 1px solid #86efac !important;
  color: #16a34a !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  margin-bottom: 16px !important;
}

/* Responsive */
@media (max-width: 640px) {
  input[type="text"],
  input[type="tel"],
  input[type="number"],
  select {
    height: 44px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
  }

  button {
    height: 48px !important;
    font-size: 14px !important;
  }

  label {
    font-size: 12px !important;
  }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  input[type="text"],
  input[type="tel"],
  input[type="number"],
  select {
    background: #374151 !important;
    border-color: #4b5563 !important;
    color: #f3f4f6 !important;
  }

  input::placeholder {
    color: #9ca3af !important;
  }

  input:focus,
  select:focus {
    background: #1f3a5f !important;
    border-color: #60a5fa !important;
  }

  label {
    color: #d1d5db !important;
  }
}
