/**
 * God of Graphics - Checkout Page Stylesheet
 */
:root{
  --ink:#141414; --ink-soft:#4a4a4a; --ink-faint:#767676;
  --gold:#f39316; --gold-dark:#d47b0a; --gold-soft:rgba(243,147,22,0.12);
  --bg:#ffffff; --bg-off:#f8f8f7; --border:#ececea;
  --radius-lg:20px; --radius-md:14px; --radius-sm:10px;
  --shadow-sm:0 1px 3px rgba(20,20,20,0.04);
  --shadow-md:0 10px 30px rgba(20,20,20,0.06);
  --shadow-lg:0 20px 60px rgba(20,20,20,0.10);
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent;}
html,body{min-height:100%;touch-action:manipulation;}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color:var(--ink);
  background:var(--bg-off);
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
}
a{text-decoration:none;color:inherit;}
button{font-family:inherit;cursor:pointer;border:none;background:none;}

/* Header */
header{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:50;}
.header-inner{max-width:1080px;margin:0 auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;}
.logo{display:flex;align-items:center;gap:9px;font-weight:800;font-size:15px;color:var(--ink);}
.logo img{height:38px;width:auto;border-radius:8px;display:block;}
.logo .badge{width:30px;height:30px;border-radius:8px;background:linear-gradient(145deg,#1c1c1c,#000);display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:14px;}
.logo span.accent{color:var(--gold);}

.secure-badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#027a48;background:#ecfdf3;padding:6px 12px;border-radius:999px;border:1px solid #d1fadf;}
.secure-badge svg{width:14px;height:14px;}

/* Layout */
.wrap{max-width:1080px;margin:0 auto;padding:36px 24px 70px;}
.page-title-row{margin-bottom:28px;}
.page-title-row h1{font-size:26px;font-weight:800;color:var(--ink);letter-spacing:-0.5px;}
.page-title-row p{font-size:14px;color:var(--ink-faint);margin-top:4px;}

.grid{display:grid;grid-template-columns:1.15fr 0.85fr;gap:32px;align-items:start;}

/* Cards */
.card{background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);padding:30px;box-shadow:var(--shadow-sm);}
.card-header{display:flex;align-items:center;gap:10px;margin-bottom:22px;padding-bottom:16px;border-bottom:1px solid var(--border);}
.card-header .num-dot{width:26px;height:26px;border-radius:50%;background:var(--gold-soft);color:var(--gold-dark);font-size:12.5px;font-weight:800;display:flex;align-items:center;justify-content:center;}
.card-header h2{font-size:17px;font-weight:800;color:var(--ink);letter-spacing:-0.2px;}

/* Form Fields */
.field{margin-bottom:18px;}
.field label{display:block;font-size:13px;font-weight:700;margin-bottom:6px;color:var(--ink-soft);}
.field input, .field textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  font-size:16px; /* 16px prevents mobile auto-zoom */
  font-family:inherit;
  color:var(--ink);
  background:#fff;
  touch-action:manipulation;
  transition:border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus{
  outline:none;
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(243,147,22,0.15);
}
.field input[readonly]{background:var(--bg-off);color:var(--ink-soft);cursor:default;}
.field textarea{min-height:76px;resize:vertical;}
.field-hint{font-size:11.5px;color:var(--ink-faint);margin-top:4px;}

.form-error{
  background:#fef3f2;
  border:1px solid #fee4e2;
  color:#b42318;
  padding:12px 14px;
  border-radius:10px;
  font-size:13px;
  font-weight:600;
  margin-bottom:18px;
  display:none;
  align-items:center;
  gap:8px;
}
.form-error.show{display:flex;}

/* CTA Button */
.btn-pay{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  background:linear-gradient(135deg,var(--gold),var(--gold-dark));
  color:#fff;
  font-weight:800;
  font-size:16px;
  padding:16px 24px;
  border-radius:999px;
  box-shadow:0 10px 26px rgba(224,125,0,0.30);
  margin-top:8px;
  transition:transform .18s ease, box-shadow .18s ease;
  cursor:pointer;
  touch-action:manipulation;
}
.btn-pay:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 14px 32px rgba(224,125,0,0.38);}
.btn-pay:disabled{opacity:0.65;cursor:not-allowed;transform:none;}
.btn-pay svg{width:18px;height:18px;transition:transform .18s ease;}
.btn-pay:hover:not(:disabled) svg{transform:translateX(3px);}

/* Course Summary Card */
.course-summary-box{
  background:linear-gradient(135deg, rgba(243,147,22,0.06), rgba(243,147,22,0.02));
  border:1px solid rgba(243,147,22,0.22);
  border-radius:14px;
  padding:18px;
  margin-bottom:20px;
}
.course-title-tag{display:inline-block;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:0.5px;color:var(--gold-dark);background:var(--gold-soft);padding:3px 9px;border-radius:5px;margin-bottom:8px;}
.course-title-text{font-size:16px;font-weight:800;color:var(--ink);line-height:1.35;margin-bottom:10px;}
.course-features{display:flex;flex-direction:column;gap:6px;}
.course-feature-item{display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;color:var(--ink-soft);}
.course-feature-item svg{width:14px;height:14px;color:var(--gold-dark);flex-shrink:0;}

/* Price Table */
.price-breakdown{margin-top:14px;border-top:1px solid var(--border);padding-top:14px;}
.summary-row{display:flex;justify-content:space-between;align-items:center;font-size:13.5px;padding:8px 0;color:var(--ink-soft);}
.summary-row.total{
  font-size:18px;
  font-weight:900;
  color:var(--ink);
  border-top:1px dashed var(--border);
  padding-top:14px;
  margin-top:8px;
}
.summary-row.total .price-amount{color:var(--gold-dark);font-size:22px;}
.summary-old{text-decoration:line-through;color:var(--ink-faint);margin-right:8px;font-size:14px;font-weight:500;}
.savings-tag{display:inline-flex;align-items:center;background:#ecfdf3;color:#027a48;font-size:11px;font-weight:800;padding:2px 7px;border-radius:4px;}

.trust-perks{margin-top:20px;padding-top:18px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:10px;}
.trust-item{display:flex;align-items:center;gap:9px;font-size:12.5px;color:var(--ink-soft);font-weight:500;}
.trust-item svg{width:16px;height:16px;color:#027a48;flex-shrink:0;}

/* ================= FULLSCREEN PAYMENT PROCESSING OVERLAY ================= */
.pay-overlay{
  position:fixed;
  inset:0;
  background:rgba(12,12,14,0.82);
  backdrop-filter:blur(10px);
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.pay-overlay.active{display:flex;}
.pay-modal{
  background:#ffffff;
  border-radius:24px;
  padding:44px 36px;
  max-width:440px;
  width:100%;
  text-align:center;
  box-shadow:0 25px 70px rgba(0,0,0,0.35);
  position:relative;
  animation:modalPop .3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop{
  from{opacity:0;transform:scale(0.92) translateY(12px);}
  to{opacity:1;transform:scale(1) translateY(0);}
}

.pay-spinner-box{
  width:76px;
  height:76px;
  margin:0 auto 24px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}
.pay-spin-ring{
  width:76px;
  height:76px;
  border-radius:50%;
  border:4px solid var(--border);
  border-top-color:var(--gold);
  border-right-color:var(--gold-dark);
  animation:spinRing 0.9s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}
@keyframes spinRing{to{transform:rotate(360deg);}}

.pay-tick-icon{
  width:76px;
  height:76px;
  border-radius:50%;
  background:#ecfdf3;
  color:#027a48;
  display:none;
  align-items:center;
  justify-content:center;
  margin:0 auto 24px;
  border:2px solid #a6f4c5;
  animation:tickPop .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes tickPop{
  0%{transform:scale(0.5);opacity:0;}
  100%{transform:scale(1);opacity:1;}
}
.pay-tick-icon svg{width:36px;height:36px;}

.pay-modal h3{font-size:21px;font-weight:800;color:var(--ink);margin-bottom:8px;letter-spacing:-0.3px;}
.pay-modal p{font-size:14px;color:var(--ink-soft);line-height:1.5;}
.pay-modal .pay-subtext{font-size:12px;color:var(--ink-faint);margin-top:14px;padding:8px 12px;background:var(--bg-off);border-radius:8px;}

/* Footer */
footer{border-top:1px solid var(--border);background:#fff;padding:26px 20px;margin-top:40px;}
.footer-wrap{max-width:1080px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;font-size:12.5px;color:var(--ink-faint);}
.footer-links{display:flex;gap:16px;flex-wrap:wrap;}
.footer-links a:hover{color:var(--ink);}

@media (max-width: 860px){
  .grid{grid-template-columns:1fr;}
  .wrap{padding:24px 18px 50px;}
  .page-title-row h1{font-size:22px;}
  .card{padding:22px;}
}
