/* checkout.css - Razorpay Custom Checkout Modal Styling */

/* Modal Backdrop */
.checkout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 51, 64, 0.75); /* Dark teal semi-transparent overlay */
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.checkout-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Content Card */
.checkout-modal-card {
  background: #ffffff;
  border: 1px solid rgba(16, 68, 90, 0.1);
  border-radius: 16px;
  width: 90%;
  max-width: 460px;
  padding: 36px 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  font-family: 'Inter', sans-serif;
  color: #374151;
}

.checkout-modal-overlay.active .checkout-modal-card {
  transform: translateY(0);
}

/* Close Button */
.checkout-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.checkout-modal-close:hover {
  color: #374151;
}

/* Header & Badges */
.checkout-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.checkout-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef8fd;
  color: #126a8c;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
  border: 1px solid #d4eef8;
}

.checkout-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #0d3340;
  margin: 0 0 8px 0;
}

.checkout-modal-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Pricing Display */
.checkout-pricing-summary {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-pricing-label {
  font-weight: 600;
  font-size: 14px;
  color: #374151;
}

.checkout-pricing-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #126a8c;
}

/* Form Styling */
.checkout-form-group {
  margin-bottom: 16px;
  text-align: left;
}

.checkout-form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.checkout-form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #111827;
  background-color: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-form-input:focus {
  outline: none;
  border-color: #1480a8;
  box-shadow: 0 0 0 3px rgba(20, 128, 168, 0.15);
}

/* Action Button */
.checkout-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #126a8c, #1480a8);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(18, 106, 140, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.checkout-submit-btn:hover {
  background: linear-gradient(135deg, #115570, #126a8c);
  box-shadow: 0 6px 20px rgba(18, 106, 140, 0.4);
}

.checkout-submit-btn:active {
  transform: translateY(1px);
}

.checkout-submit-btn:disabled {
  background: #9ca3af;
  box-shadow: none;
  cursor: not-allowed;
}

/* Success Card */
.checkout-success-view {
  text-align: center;
}

.checkout-success-icon {
  width: 48px;
  height: 48px;
  background: #d4eef8;
  color: #126a8c;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.checkout-success-details {
  background: #f9fafb;
  border: 1px dashed #c9a227;
  border-radius: 10px;
  padding: 16px;
  margin: 18px 0;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

/* Add custom class for styling the Buy Button specifically */
.btn-buy {
  background: linear-gradient(135deg, #22b584, #1f9972) !important;
  color: #ffffff !important;
  border-color: #1a7a5e !important;
  box-shadow: 0 4px 14px rgba(34, 181, 132, 0.35) !important;
}

.btn-buy:hover {
  background: linear-gradient(135deg, #1f9972, #1a7a5e) !important;
  box-shadow: 0 6px 20px rgba(34, 181, 132, 0.45) !important;
  transform: translateY(-1px);
}
