/* THPayment - Custom Styles */

:root {
  --primary-color: #3b3b3f;
  --secondary-color: #28a745;
  --accent-color: #ffc107;
  --danger-color: #dc3545;
  --dark-color: #3b3b3f;
  --light-color: #f8f9fa;
  --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --bs-primary-rgb: 23, 23, 24 !important;
}

/* General Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #373737 100%);
}

.bg-primary {
  --bs-bg-opacity: 1;
  background-color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-image i {
  font-size: 8rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Feature Icons */
.feature-icon {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
}

.security-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  font-size: 1.25rem;
}

/* Cards */
.card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg) !important;
}

/* Payment Form Styles */
.payment-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-floating>.form-control {
  height: calc(3.5rem + 2px);
  padding: 1rem 0.75rem;
}

.form-floating>label {
  padding: 1rem 0.75rem;
}

.card-input-group {
  position: relative;
}

.card-brand-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  z-index: 10;
}

.amount-display {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.amount-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* Security Indicators */
.security-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.2);
  border-radius: 25px;
  color: var(--secondary-color);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0.25rem;
  justify-content: center;
  width: 220px;
}

.security-badge i {
  margin-right: 0.5rem;
}

/* Progress Steps */
.payment-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.payment-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #dee2e6;
  z-index: 1;
}

.step {
  background: white;
  border: 3px solid #dee2e6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.step.active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
}

.step.completed {
  border-color: var(--secondary-color);
  background: var(--secondary-color);
  color: white;
}

/* Loading States */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Success/Error Messages */
.alert-success {
  border-color: var(--secondary-color);
  background-color: rgba(40, 167, 69, 0.1);
}

.alert-danger {
  border-color: var(--danger-color);
  background-color: rgba(220, 53, 69, 0.1);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: #1f2233;
  border-color: #1f2233;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Input Validation */
.form-control.is-invalid {
  border-color: var(--danger-color);
  background-image: none;
}

.form-control.is-valid {
  border-color: var(--secondary-color);
  background-image: none;
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--danger-color);
}

.valid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--secondary-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 3rem 0;
  }

  .hero-image i {
    font-size: 4rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .payment-steps {
    flex-direction: column;
    align-items: center;
  }

  .payment-steps::before {
    display: none;
  }

  .step {
    margin: 0.5rem 0;
  }
}

/* Print Styles */
@media print {

  .navbar,
  .btn,
  footer {
    display: none !important;
  }

  .payment-form {
    box-shadow: none !important;
  }
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
  outline: none;
}

/* Animation for form submission */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.btn-submit-animation {
  animation: pulse 0.3s ease-in-out;
}

/* Tooltip Customization */
.tooltip-inner {
  background-color: var(--dark-color);
  color: white;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: var(--dark-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1f2233;
}
