/* =============================================
   TarikDanaPage.css
   ============================================= */

:root {
  --td-orange: #ff5200;
  --td-orange-soft: #fff5f0;
  --td-green: #198754;
  --td-green-soft: #d1e7dd;
}

/* --- Background --- */
.td-bg {
  background-color: #f5f5f5;
  min-height: 100vh;
  padding-bottom: 2rem;
}

/* --- Mobile sub-header --- */
.td-mobile-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: white;
  border-bottom: 1px solid #eee;
}

/* --- Info card (saldo / rekening) --- */
.td-info-card {
  background-color: white;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #eee;
  margin-bottom: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 768px) {
  .td-info-card {
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    margin-bottom: 1.25rem;
  }
}

/* --- Bank logo kecil --- */
.td-bank-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: #005eb8;
  border: 1px solid #005eb8;
  flex-shrink: 0;
}

/* --- Input nominal --- */
.td-amount-wrapper {
  background: white;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  border: 1px solid #eee;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .td-amount-wrapper {
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    margin-bottom: 1.25rem;
  }
}

.td-input-group {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #eee;
  padding-bottom: 4px;
  transition: border-color 0.2s;
}

.td-input-group:focus-within {
  border-bottom-color: var(--td-orange);
}

.td-currency-prefix {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-right: 8px;
}

.td-amount-input {
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  width: 100%;
  outline: none;
  color: #333;
  background: transparent;
}

.td-amount-input::placeholder {
  color: #ddd;
}

.td-amount-input.error {
  color: #dc3545;
}

.td-link-orange {
  color: var(--td-orange);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.75rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* --- Summary box --- */
.td-summary-box {
  background-color: #fcfcfc;
  border: 1px dashed #ddd;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.td-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  color: #666;
}

.td-summary-total {
  border-top: 1px dashed #ddd;
  padding-top: 0.4rem;
  margin-top: 0.4rem;
  font-weight: 700;
  color: #333;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
}

/* --- Desktop summary panel --- */
.td-summary-panel {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #eee;
  position: sticky;
  top: 100px;
}

@media (min-width: 768px) {
  .td-summary-box {
    background: transparent;
    border: none;
    padding: 0;
  }
  .td-summary-row {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }
  .td-summary-total {
    font-size: 1.1rem;
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

/* --- Tombol submit --- */
.td-btn-submit {
  background-color: var(--td-orange);
  color: white;
  border: none;
  font-weight: 700;
  padding: 14px;
  border-radius: 12px;
  width: 100%;
  font-size: 1rem;
  transition: background 0.2s, opacity 0.2s;
  cursor: pointer;
}

.td-btn-submit:disabled {
  background-color: #ddd;
  color: #aaa;
  cursor: not-allowed;
}

.td-btn-submit:hover:not(:disabled) {
  background-color: #e64a00;
}

/* --- Fixed bottom action (mobile) --- */
.td-fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

@media (min-width: 768px) {
  .td-fixed-bottom {
    position: static;
    padding: 0;
    box-shadow: none;
    margin-top: 1.5rem;
  }
}

/* --- OTP Ghost Input --- */
.td-otp-container {
  position: relative;
  width: 100%;
  margin: 1.5rem 0;
}

.td-otp-real-input {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 10;
  cursor: text;
  font-size: 1px;
  color: transparent;
  background: transparent;
  border: none;
  outline: none;
}

.td-otp-boxes {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.td-otp-box {
  width: 45px;
  height: 50px;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  background-color: #fff;
  transition: all 0.2s;
  user-select: none;
}

.td-otp-box.active {
  border-color: var(--td-orange);
  box-shadow: 0 0 0 4px var(--td-orange-soft);
  transform: translateY(-2px);
}

.td-otp-box.filled {
  background-color: #fcfcfc;
  border-color: #ccc;
}

/* --- Modal sukses --- */
.td-modal-content {
  border-radius: 20px !important;
  border: none !important;
}

.td-success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--td-green-soft);
  color: var(--td-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 2rem;
}

/* --- Breadcrumb --- */
.td-breadcrumb {
  margin-bottom: 1.5rem;
}
