/* ===========================
   DEEPKOR SERVICE - Custom Styles
   Bootstrap 5 Extension
   =========================== */

/* ---------- CSS Variables ---------- */
:root {
  --brand-green: #1e5631;
  --brand-green-light: #2d7a4a;
  --brand-green-dark: #163d23;
  --brand-yellow: #f4c430;
  --brand-yellow-light: #ffd954;
  --brand-yellow-dark: #d4a617;
}

/* ---------- Global Styles ---------- */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

/* ---------- Background Classes ---------- */
.bg-gradient-main {
  background: linear-gradient(to bottom right, #f0fdf4, rgba(254, 252, 232, 0.3), rgba(255, 251, 235, 0.4));
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.bg-gradient-success {
  background: linear-gradient(to bottom right, #f0fdf4, rgba(254, 252, 232, 0.3), rgba(255, 251, 235, 0.4));
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.bg-gradient-error {
  background: linear-gradient(to bottom right, #fef2f2, rgba(255, 247, 237, 0.3), rgba(255, 241, 242, 0.4));
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

.bg-pattern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-decoration-green {
  position: absolute;
  top: 0;
  left: 25%;
  width: 400px;
  height: 400px;
  background: linear-gradient(to bottom right, rgba(187, 247, 208, 0.3), rgba(254, 249, 195, 0.3));
  border-radius: 50%;
  filter: blur(48px);
}

.bg-decoration-yellow {
  position: absolute;
  bottom: 0;
  right: 25%;
  width: 500px;
  height: 500px;
  background: linear-gradient(to bottom right, rgba(254, 249, 195, 0.4), rgba(253, 230, 138, 0.4));
  border-radius: 50%;
  filter: blur(48px);
}

.bg-decoration-red-1 {
  position: absolute;
  top: 0;
  left: 25%;
  width: 400px;
  height: 400px;
  background: linear-gradient(to bottom right, rgba(254, 202, 202, 0.3), rgba(255, 237, 213, 0.3));
  border-radius: 50%;
  filter: blur(48px);
}

.bg-decoration-red-2 {
  position: absolute;
  bottom: 0;
  right: 25%;
  width: 500px;
  height: 500px;
  background: linear-gradient(to bottom right, rgba(255, 237, 213, 0.4), rgba(255, 228, 230, 0.4));
  border-radius: 50%;
  filter: blur(48px);
}

/* ---------- Logo ---------- */
.logo-img {
  height: 3rem;
  width: auto;
}

@media (min-width: 576px) {
  .logo-img {
    height: 3.5rem;
  }
}

/* ---------- Hero Section ---------- */
.hero-title {
  background: linear-gradient(to right, #1e5631, #2d7a4a, #f4c430);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.5);
  font-size: 0.75rem;
  font-weight: 500;
  color: #334155;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-pill:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-pill .icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--brand-green);
}

/* ---------- Main Card ---------- */
.main-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(34, 197, 94, 0.1), 0 8px 10px -6px rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.5);
  overflow: hidden;
}

/* ---------- Step Header ---------- */
.step-header {
  background: linear-gradient(to right, #1e5631, #2d7a4a, #1e5631);
  padding: 0.75rem 1rem;
}

@media (min-width: 576px) {
  .step-header {
    padding: 0.75rem 1.5rem;
  }
}

.step-badge {
  background: #f4c430;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  color: #1e5631;
  font-weight: 600;
  font-size: 0.625rem;
}

@media (min-width: 576px) {
  .step-badge {
    font-size: 0.75rem;
  }
}

/* ---------- Step Indicators ---------- */
.step-circle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
  z-index: 2;
}

@media (min-width: 576px) {
  .step-circle {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.step-circle.active {
  background: #1e5631;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(30, 86, 49, 0.3);
}

.step-circle.completed {
  background: #f4c430;
  color: #1e5631;
}

.step-circle.inactive {
  background: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.5);
}

.step-line {
  flex: 1;
  height: 2px;
  margin: 0 0.5rem;
  position: relative;
  background: rgba(255, 255, 255, 0.2);
}

@media (min-width: 576px) {
  .step-line {
    margin: 0 0.75rem;
  }
}

.step-line-progress {
  position: absolute;
  inset: 0;
  background: #f4c430;
  transform-origin: left;
  transition: transform 0.5s ease-in-out;
}

/* ---------- Form Styles ---------- */
.form-control-custom {
  height: 3rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  transition: all 0.2s;
  font-size: 1rem;
}

.form-control-custom:focus {
  border-color: #1e5631;
  box-shadow: 0 0 0 0.2rem rgba(30, 86, 49, 0.15);
}

.form-control-lg-custom {
  height: 3.5rem;
  font-size: 1.125rem;
  padding-left: 5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.form-control-lg-custom:focus {
  border-color: #1e5631;
  box-shadow: 0 0 0 0.2rem rgba(30, 86, 49, 0.15);
}

.phone-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  pointer-events: none;
  font-size: 0.875rem;
}

.form-label-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.form-label-icon i {
  color: var(--brand-green);
}

.currency-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
}

/* ---------- Buttons ---------- */
.btn-brand {
  background: linear-gradient(to right, #26673c 0%, #696d25 50%, #fdb022 88%, #e3a11f 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(30, 86, 49, 0.3);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-brand:hover {
  background: linear-gradient(to right, #163d23, #1e5631);
  color: white;
  box-shadow: 0 20px 25px -5px rgba(30, 86, 49, 0.4);
  transform: translateY(-1px);
}

.btn-brand:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-brand-lg {
  height: 3.5rem;
  font-size: 1rem;
  padding: 0 2rem;
}

.btn-brand-xl {
  height: 3.5rem;
  font-size: 1.125rem;
  padding: 0 2rem;
}

.btn-outline-brand {
  border: 2px solid #cbd5e1;
  border-radius: 0.75rem;
  background: transparent;
  color: #475569;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-outline-brand:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-outline-green {
  border: 2px solid #1e5631;
  border-radius: 0.75rem;
  background: transparent;
  color: #1e5631;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-outline-green:hover {
  background: #f0fdf4;
  color: #1e5631;
}

.btn-error {
  background: linear-gradient(to right, #dc2626, #e11d48, #dc2626);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-error:hover {
  background: linear-gradient(to right, #b91c1c, #be123c, #b91c1c);
  color: white;
}

.btn-outline-error {
  border: 2px solid #dc2626;
  border-radius: 0.75rem;
  background: transparent;
  color: #dc2626;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-outline-error:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* ---------- Trust Section ---------- */
.trust-text {
  font-size: 0.75rem;
  color: #64748b;
}

.trust-badges {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ---------- Indicator Dots ---------- */
.dot-green {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.dot-red {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: #dc2626;
}

/* ---------- Trust Stats ---------- */
.stat-value-green {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e5631;
  margin-bottom: 0.25rem;
}

.stat-value-yellow {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f4c430;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: #64748b;
}

/* ---------- OTP Page ---------- */
.otp-header {
  background: linear-gradient(to right, #1e5631, #2d7a4a);
  padding: 1.5rem;
  text-align: center;
}

.otp-icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.otp-input {
  width: 2.75rem;
  height: 3rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 0.5rem;
  border: 2px solid #cbd5e1;
  transition: all 0.2s;
  background: white;
}

.otp-input:focus {
  outline: none;
  border-color: #1e5631;
  box-shadow: 0 0 0 0.15rem rgba(30, 86, 49, 0.3);
}

.otp-input.filled {
  border-color: #1e5631;
  background: #f0fdf4;
  color: #1e5631;
}

.otp-input.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.otp-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.resend-timer {
  font-weight: 700;
  color: #1e5631;
}

.resend-link {
  font-weight: 600;
  color: #1e5631;
  cursor: pointer;
  text-decoration: none;
}

.resend-link:hover {
  color: #2d7a4a;
}

/* ---------- Employment Radio ---------- */
.employment-radio {
  position: relative;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
}

.employment-radio:hover {
  border-color: #2d7a4a;
}

.employment-radio.selected {
  border-color: #1e5631;
  background: rgba(240, 253, 244, 0.5);
}

.employment-radio input[type="radio"] {
  margin-right: 0.75rem;
  accent-color: #1e5631;
  width: 1.1rem;
  height: 1.1rem;
}

/* ---------- EMI Plans ---------- */
.emi-card {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 2px solid #e2e8f0;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
}

.emi-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.emi-card.selected {
  border-color: #1e5631;
  box-shadow: 0 10px 15px -3px rgba(30, 86, 49, 0.2);
  background: linear-gradient(to bottom right, rgba(240, 253, 244, 0.5), rgba(254, 252, 232, 0.3));
}

.emi-radio-circle {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.emi-radio-circle.selected {
  border-color: #1e5631;
  background: #1e5631;
}

.emi-radio-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: white;
  border-radius: 50%;
}

.popular-badge {
  position: absolute;
  top: -0.625rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 0.25rem 1rem;
  background: linear-gradient(to right, #f4c430, #ffd954);
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e5631;
  white-space: nowrap;
}

.emi-check-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #1e5631;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.info-card {
  border-radius: 0.75rem;
  background: linear-gradient(to bottom right, #eff6ff, #eef2ff);
  border: 1px solid #bfdbfe;
  padding: 1rem;
}

.info-icon-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.loan-summary-card {
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
}

.summary-indicator {
  width: 0.375rem;
  height: 1.25rem;
  background: #1e5631;
  border-radius: 9999px;
}

/* ---------- Payment Page ---------- */
.credit-card-preview {
  position: relative;
  height: 15rem;
  border-radius: 1rem;
  background: linear-gradient(to bottom right, #334155, #1e293b, #0f172a);
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

@media (min-width: 992px) {
  .credit-card-preview {
    height: 16rem;
  }
}

.card-pattern-circle-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: white;
  border-radius: 50%;
  opacity: 0.1;
  transform: translate(50%, -50%);
}

.card-pattern-circle-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 12rem;
  height: 12rem;
  background: white;
  border-radius: 50%;
  opacity: 0.1;
  transform: translate(-50%, 50%);
}

.card-chip {
  width: 3rem;
  height: 2rem;
  border-radius: 0.25rem;
  background: linear-gradient(to bottom right, #fbbf24, #d97706);
}

.payment-details-card {
  padding: 1.5rem;
  background: linear-gradient(to bottom right, #f8fafc, #f1f5f9);
  border-radius: 1rem;
}

.payment-detail-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #1e5631;
  flex-shrink: 0;
}

.payment-total-box {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
}

.loan-summary-green {
  padding: 1.5rem;
  background: linear-gradient(to bottom right, #f0fdf4, #fefce8);
  border-radius: 1rem;
  border: 1px solid #bbf7d0;
}

/* ---------- Approval Badge ---------- */
.approval-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(to right, #f0fdf4, #ecfdf5);
  border-radius: 9999px;
  border: 1px solid #bbf7d0;
}

.approval-badge i {
  color: #059669;
}

.approval-badge span {
  font-size: 0.875rem;
  font-weight: 500;
  color: #047857;
}

/* ---------- Success Page ---------- */
.success-icon-wrapper {
  width: 6rem;
  height: 6rem;
}

@media (min-width: 576px) {
  .success-icon-wrapper {
    width: 7rem;
    height: 7rem;
  }
}

.success-icon-circle {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #05df72, #00bc7d);
  box-shadow: 0 25px 50px rgba(0, 201, 80, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 576px) {
  .success-icon-circle {
    width: 7rem;
    height: 7rem;
  }
}

.success-notice {
  background: linear-gradient(to right, #f0fdf4, #ecfdf5);
  border: 2px solid #bbf7d0;
  border-radius: 1rem;
  padding: 1.5rem;
}

@media (min-width: 576px) {
  .success-notice {
    padding: 2rem;
  }
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
}

.benefit-check {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-check i {
  font-size: 0.75rem;
  color: #1e5631;
}

/* ---------- Error Page ---------- */
.error-icon-circle {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 25px 50px rgba(239, 68, 68, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 576px) {
  .error-icon-circle {
    width: 7rem;
    height: 7rem;
  }
}

.reason-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.reason-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fecaca;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reason-icon i {
  font-size: 0.75rem;
  color: #dc2626;
}

/* ---------- Spinner ---------- */
.spinner-border-sm-custom {
  width: 1.25rem;
  height: 1.25rem;
  border-width: 2px;
}

/* ---------- Animations ---------- */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.3s ease-in-out;
}

/* ---------- Select Custom ---------- */
.form-select-custom {
  height: 3rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
}

.form-select-custom:focus {
  border-color: #1e5631;
  box-shadow: 0 0 0 0.2rem rgba(30, 86, 49, 0.15);
}

/* ---------- Utility ---------- */
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-pill { border-radius: 9999px; }
.z-10 { z-index: 10; }

.text-brand-green { color: #1e5631; }
.text-brand-yellow { color: #f4c430; }
.text-brand-gold { color: #d4a617; }

.bg-brand-green { background-color: #1e5631; }
.bg-brand-yellow { background-color: #f4c430; }

.fw-700 { font-weight: 700; }
.fs-xs { font-size: 0.75rem; }
.fs-sm { font-size: 0.875rem; }

/* Hide number input arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

