/* ===============================
   RESET & BASE
================================ */
*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Inter,system-ui,sans-serif;
  background:#f0fdf9; /* soft emerald background */
  color:#0f172a;
}

/* ===============================
   CONTAINER & CARD
================================ */
.pay-container{
  display:flex;
  justify-content:center;
  padding:40px 16px;
}

.pay-card{
  width:100%;
  max-width:520px;
  background:#ffffff;
  border-radius:22px;
  box-shadow:0 30px 60px rgba(0,0,0,.12);
  overflow:hidden;
}

/* ===============================
   HEADER (FORM & RECEIPT)
================================ */
.form-header,
.receipt-header{
  background:linear-gradient(
    135deg,
    #064e3b,
    #047857
  );
  color:#ffffff;
  text-align:center;
  padding:36px 24px;
}

.receipt-header.success{
  background:linear-gradient(135deg,#064e3b,#047857);
}

.receipt-header.pending{
  background:linear-gradient(135deg,#92400e,#d97706);
}

.receipt-header.failed{
  background:linear-gradient(135deg,#7f1d1d,#b91c1c);
}

.form-header .icon,
.receipt-header .icon{
  font-size:42px;
  margin-bottom:10px;
}

.form-header h1,
.receipt-header h1{
  margin:8px 0;
  font-size:26px;
  font-weight:800;
}

.form-header p,
.receipt-header p{
  font-size:14px;
  opacity:.95;
  line-height:1.5;
}

.secure-pill{
  display:inline-block;
  margin-top:14px;
  padding:7px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  font-size:12px;
  backdrop-filter:blur(6px);
}
/* ===============================
   FORM HEADER LOGO ONLY
================================ */
.form-header .form-logo {
  display: block;
  margin: 0 auto 12px;
  max-width: 200px;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 4px 10px rgba(0,0,0,.35))
    drop-shadow(0 0 10px rgba(110, 231, 183, .55));
}

/* mobile – kecilkan sikit */
@media (max-width: 768px) {
  .form-header .form-logo {
    max-width: 150px;
    margin-bottom: 8px;
    filter:
      drop-shadow(0 0 6px rgba(110, 231, 183, .45))
      drop-shadow(0 3px 8px rgba(0,0,0,.3));
  }
}

/* ===============================
   FORM
================================ */
form{
  padding:26px 24px;
}

section{
  margin-bottom:26px;
}

section h3{
  margin-bottom:14px;
  font-size:15px;
  font-weight:700;
  color:#064e3b;
}

/* GRID */
.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.grid-1{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

/* INPUT */
input,
select{
  width:100%;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid #d1fae5;
  font-size:14px;
  background:#ffffff;
  transition:all .2s ease;
}

input::placeholder{
  color:#9ca3af;
}

input:focus,
select:focus{
  outline:none;
  border-color:#047857;
  box-shadow:0 0 0 3px rgba(4,120,87,.18);
}

/* ===============================
   QUICK AMOUNT
================================ */
.quick-amount{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-bottom:16px;
}

.quick-amount button{
  padding:11px;
  border-radius:14px;
  border:1px solid #047857;
  background:#ecfdf5;
  font-weight:800;
  font-size:13px;
  color:#065f46;
  cursor:pointer;
  transition:all .2s ease;
}

.quick-amount button:hover{
  background:#d1fae5;
  transform:translateY(-1px);
}

/* ===============================
   AMOUNT INPUT
================================ */
.amount-input{
  display:flex;
  align-items:center;
  border:1px solid #d1fae5;
  border-radius:14px;
  padding:0 14px;
  background:#ffffff;
}

.amount-input span{
  font-weight:800;
  margin-right:6px;
  color:#064e3b;
}

.amount-input input{
  border:none;
  outline:none;
  padding:14px 0;
}

/* ===============================
   PRIMARY BUTTON
================================ */
.primary-btn{
  width:100%;
  padding:16px;
  border:none;
  border-radius:18px;
  background:linear-gradient(
    135deg,
    #064e3b,
    #047857
  );
  color:#ffffff;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 14px 32px rgba(4,120,87,.35);
  transition:all .25s ease;
}

.primary-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 40px rgba(4,120,87,.45);
}

/* ===============================
   SECURE BOX
================================ */
.secure-box{
  margin-top:18px;
  padding:14px;
  border-radius:16px;
  background:#ecfdf5;
  font-size:12px;
  text-align:center;
  color:#065f46;
  line-height:1.5;
}

/* ===============================
   RECEIPT
================================ */
.ref-box{
  margin:26px 24px;
  padding:18px;
  border-radius:18px;
  background:#ecfdf5;
  position:relative;
}

.ref-box span{
  font-size:12px;
  color:#065f46;
}

.ref-box strong{
  display:block;
  font-size:18px;
  margin-top:6px;
  color:#064e3b;
}

.ref-box button{
  position:absolute;
  right:16px;
  top:16px;
  border:none;
  background:#047857;
  color:#ffffff;
  border-radius:10px;
  padding:8px;
  cursor:pointer;
}

/* STATUS GRID */
.status-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  padding:0 24px;
}

.status-card{
  padding:16px;
  border-radius:16px;
  background:#f8fafc;
}

/* DETAIL */
.detail-card{
  margin:26px 24px;
  padding:18px;
  border-radius:18px;
  background:#f8fafc;
}

.detail-card h3{
  margin-bottom:12px;
  font-size:15px;
  color:#064e3b;
}

.detail-card .row{
  display:flex;
  justify-content:space-between;
  margin-bottom:10px;
  font-size:14px;
}

/* ===============================
   ACTION ROW
================================ */
.action-row{
  padding: 26px 24px 14px;
  display: flex;
  justify-content: center;
}

/* ===============================
   RECEIPT BUTTON (REFINED)
================================ */
.btn-receipt-clean{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 13px 22px;
  min-width: 240px;

  background: linear-gradient(135deg, #0d6f52, #138f6f);
  color: #ffffff;
  text-decoration: none;

  border-radius: 14px; /* 🔥 kurang bulat → lebih premium */
  font-size: 14px;
  font-weight: 600;

  box-shadow:
    0 10px 24px rgba(13,111,82,0.22),
    inset 0 1px 0 rgba(255,255,255,0.22);

  transition: all .25s ease;
}

/* ICON */
.btn-receipt-clean .btn-icon{
  width: 28px;
  height: 28px;
  border-radius: 8px;

  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 13px;
}

/* TEXT */
.btn-receipt-clean .btn-label{
  line-height: 1;
  letter-spacing: .2px;
}

/* HOVER */
.btn-receipt-clean:hover{
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(13,111,82,0.28),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

/* ACTIVE */
.btn-receipt-clean:active{
  transform: translateY(0);
  box-shadow:
    0 8px 18px rgba(13,111,82,0.22);
}

/* MOBILE */
@media (max-width: 480px){
  .btn-receipt-clean{
    width: 100%;
    justify-content: center;
    padding: 16px;
  }
}
/* ===============================
   CTA – SUMBANG LAGI
================================ */
.cta-primary{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:calc(100% - 48px);
  margin:26px auto 0;
  padding:16px 20px;
  border-radius:16px;
  background:linear-gradient(135deg,#064e3b,#047857);
  color:#ffffff;
  font-size:15px;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 12px 28px rgba(4,120,87,.32);
  transition:all .25s ease;
}

.cta-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 36px rgba(4,120,87,.42);
}

/* ===============================
   BACK TO PORTAL
================================ */
.back-portal-wrap{
  display:flex;
  justify-content:center;
  margin-top:16px;
}

.back-portal{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 20px;
  font-size:13px;
  font-weight:700;
  color:#065f46;
  text-decoration:none;
  background:#ecfdf5;
  border:1px solid #047857;
  border-radius:999px;
  transition:all .2s ease;
}

.back-portal:hover{
  background:#d1fae5;
  transform:translateY(-1px);
}

/* ===============================
   FOOTER
================================ */
.footer-note{
  padding:22px;
  font-size:12px;
  text-align:center;
  color:#64748b;
}

/* ===============================
   MOBILE
================================ */
@media (max-width:480px){
  .grid-2{
    grid-template-columns:1fr;
  }

  .back-portal{
    width:calc(100% - 48px);
    justify-content:center;
  }
}

/* Jarak khas untuk No Telefon */
.phone-field{
  margin-top:14px;
}

.payment-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  margin-bottom: 18px;
}

.payment-logos img {
  height: 70px;        /* 🔼 BESARKAN SIKIT */
  width: auto;
  max-width: 240px;    /* cukup luas untuk DuitNow */
  object-fit: contain;
  display: block;
}

/* Mobile */
@media (max-width: 480px) {
  .payment-logos img {
    height: 36px;
    max-width: 110px;
  }
}
.field-error {
  color: #d32f2f;
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
}