/* ==========================================================================
   Project_Fin: White-Blue FinTech Theme (ธีม ขาว-ฟ้า สไตล์มืออาชีพ)
   Font: DBHelvethaicaXv32.ttf
   ========================================================================== */

@font-face {
  font-family: 'DBHelvethaicaX';
  src: url('../fonts/DBHelvethaicaXv32.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ==========================================================================
     🎨 [CUSTOMIZE THEME COLORS] - คุณสามารถปรับเปลี่ยนสีหลักได้ที่ตรงนี้
     ========================================================================== */
  --brand-blue: #0059ff;                /* 🔵 สีฟ้า/น้ำเงินหลักที่คุณต้องการ (ปรับได้ที่นี่) */
  --brand-blue-hover: #0047cc;          /* สีเมื่อชี้เมาส์ (Hover) */
  --brand-blue-dark: #003699;           /* สีน้ำเงินเข้มสำหรับตัวหนังสือหัวข้อ */
  --brand-blue-deep: #002266;           /* สีกรมท่าเข้มพิเศษ */
  --brand-blue-light: #e6efff;          /* สีฟ้าอ่อนพาสเทลสำหรับพื้นหลัง Badge/กล่อง */
  --brand-blue-border: #b3cfff;         /* สีขอบฟ้าอ่อน */
  --brand-blue-soft: #f0f5ff;           /* สีฟ้าอ่อนละมุนสำหรับพื้นหลังสลับ */
  --brand-blue-glow: rgba(0, 89, 255, 0.25); /* เงาสีฟ้า Glow */
  --brand-blue-subtle: rgba(0, 89, 255, 0.08); /* รัศมีพื้นหลัง */

  /* White - Blue Palette */
  --bg-primary: #f5f8fd;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: var(--brand-blue-soft);
  --bg-glass: rgba(255, 255, 255, 0.9);
  --border-glass: #e2e8f0;
  --border-light: var(--brand-blue-border);
  --border-glow: var(--brand-blue);
  --border-primary: var(--brand-blue);

  /* Primary Blue Accents (Alias mapping to --brand-blue) */
  --blue-50: var(--brand-blue-soft);
  --blue-100: var(--brand-blue-light);
  --blue-200: var(--brand-blue-border);
  --blue-400: #337aff;
  --blue-500: var(--brand-blue);
  --blue-600: var(--brand-blue);
  --blue-700: var(--brand-blue-hover);
  --blue-800: var(--brand-blue-dark);
  --blue-900: var(--brand-blue-deep);

  /* Accent Colors */
  --accent-cyan: var(--brand-blue);
  --accent-blue: var(--brand-blue-dark);
  --accent-emerald: #059669;
  --accent-gold: #d97706;
  --accent-rose: #e11d48;

  /* Text Colors */
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-hover) 100%);
  --grad-cyan: linear-gradient(135deg, #337aff 0%, var(--brand-blue) 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --grad-hero-bg: radial-gradient(circle at 10% 20%, var(--brand-blue-subtle) 0%, transparent 40%),
                  radial-gradient(circle at 90% 70%, rgba(0, 89, 255, 0.05) 0%, transparent 40%),
                  #f5f8fd;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 89, 255, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 89, 255, 0.1), 0 8px 10px -6px rgba(0, 89, 255, 0.06);
  --shadow-lg: 0 20px 45px -12px rgba(0, 89, 255, 0.18);
  --glow-blue: 0 0 20px var(--brand-blue-glow);
  --glow-emerald: 0 0 20px rgba(16, 185, 129, 0.25);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Setup with DBHelvethaicaX */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 18px; /* Slightly higher base for Helvethaica readability */
}

body {
  font-family: 'DBHelvethaicaX', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  background-image: var(--grad-hero-bg);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Helpers */
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-emerald {
  background: var(--grad-emerald);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Top Security Notification Bar */
.top-security-bar {
  background: var(--brand-blue);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  text-align: center;
  box-shadow: 0 2px 8px var(--brand-blue-glow);
}

.top-security-bar .badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
}

.top-security-bar .pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #34d399;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Header & Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
  box-shadow: 0 4px 15px rgba(0, 89, 255, 0.05);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--grad-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  box-shadow: 0 4px 14px var(--brand-blue-glow);
}

.brand-text h1 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
  line-height: 1.15;
}

.brand-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.nav-badges {
  display: flex;
  align-items: center;
  gap: 16px;
}

.security-seal {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-blue-light);
  border: 1px solid var(--brand-blue-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--brand-blue-dark);
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  padding: 50px 0 40px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-blue-light);
  border: 1px solid var(--brand-blue-border);
  color: var(--brand-blue-dark);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--brand-blue-deep);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Feature Pills Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.feature-pill {
  background: #ffffff;
  border: 1px solid var(--brand-blue-border);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.feature-pill:hover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pill-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.pill-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.pill-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Buttons */
.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  border: none;
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px var(--brand-blue-glow);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 89, 255, 0.35);
}

.btn-secondary {
  background: #ffffff;
  border: 2px solid var(--brand-blue-border);
  color: var(--brand-blue);
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--brand-blue-soft);
  border-color: var(--brand-blue);
  color: var(--brand-blue-dark);
}

/* Loan Visual Card Preview (White & Blue) */
.loan-card-preview {
  background: #ffffff;
  border: 1px solid var(--brand-blue-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.loan-card-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--grad-primary);
}

.card-header-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tag-exclusive {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
}

.amount-highlight {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px dashed var(--brand-blue-border);
  margin-bottom: 24px;
}

.amount-highlight .label {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.amount-highlight .value {
  font-size: 3.8rem;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1.1;
  margin: 6px 0;
}

.amount-highlight .unit {
  font-size: 1.6rem;
  color: var(--brand-blue-dark);
}

.amount-highlight .interest-sub {
  color: #d97706;
  font-weight: 700;
  font-size: 1.05rem;
}

.loan-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-box {
  background: var(--brand-blue-soft);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-blue-light);
}

.stat-box .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-box .stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-blue-deep);
  margin-top: 2px;
}

/* Agent Credibility Section */
.agent-credibility-section {
  padding: 70px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 46px;
}

.section-head .tag {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brand-blue-deep);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Agent Card Layout */
.agent-showcase-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  background: #ffffff;
  border: 1px solid var(--brand-blue-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.agent-profile-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.agent-meta-header {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.agent-avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid var(--brand-blue);
  box-shadow: var(--glow-blue);
  flex-shrink: 0;
}

.agent-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.online-indicator {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 14px;
  height: 14px;
  background-color: var(--accent-emerald);
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.agent-title-info h3 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--brand-blue-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}

.verified-icon {
  color: var(--brand-blue);
  font-size: 1.3rem;
}

.agent-role {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 4px;
}

.agent-license-chip {
  display: inline-block;
  background: var(--brand-blue-light);
  border: 1px solid var(--brand-blue-border);
  color: var(--brand-blue-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  font-family: monospace;
}

.agent-quote {
  background: var(--brand-blue-soft);
  border-left: 4px solid var(--brand-blue);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #1e293b;
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.agent-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}

.metric-item {
  background: #f8fafc;
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.metric-item .val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-blue);
}

.metric-item .lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ID Card Display Col */
.agent-id-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.id-card-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--brand-blue-border);
  transition: transform 0.3s ease;
  cursor: pointer;
  background: #ffffff;
}

.id-card-wrapper:hover {
  transform: scale(1.02);
}

.id-card-wrapper img {
  width: 100%;
  display: block;
}

.id-card-badges {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.custom-photo-uploader {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--brand-blue-soft);
  border: 1px dashed var(--brand-blue-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.custom-photo-uploader p {
  font-size: 0.9rem;
  color: var(--brand-blue-dark);
}

.btn-upload-trigger {
  background: var(--brand-blue);
  border: none;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px var(--brand-blue-glow);
}

.btn-upload-trigger:hover {
  background: var(--brand-blue-hover);
}

/* Criteria & Checklist */
.criteria-section {
  padding: 60px 0;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.criteria-card {
  background: #ffffff;
  border: 1px solid var(--brand-blue-border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.criteria-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.criteria-card .icon-head {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.icon-blue { background: var(--brand-blue-light); color: var(--brand-blue); }
.icon-emerald { background: #dcfce7; color: #059669; }
.icon-amber { background: #fef3c7; color: #d97706; }

.criteria-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-blue-deep);
  margin-bottom: 14px;
}

.criteria-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.criteria-card li {
  font-size: 1rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.criteria-card li::before {
  content: '✓';
  color: #059669;
  font-weight: bold;
}

/* Checkout Section (Clean White & Blue) */
.checkout-section {
  padding: 70px 0;
  background: #eef4fe;
}

.checkout-box {
  max-width: 780px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid var(--brand-blue-border);
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--shadow-lg);
}

.checkout-header {
  text-align: center;
  margin-bottom: 32px;
}

.checkout-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand-blue-deep);
  margin-bottom: 8px;
}

.checkout-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-blue);
  font-size: 1.2rem;
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--brand-blue-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px 14px 48px;
  font-family: inherit;
  font-size: 1.1rem;
  color: #0f172a;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px var(--brand-blue-glow);
  background: #ffffff;
}

.form-control::placeholder {
  color: #94a3b8;
}

/* Channel Selector (SMS vs Email) */
.channel-selector-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-blue-deep);
  margin-bottom: 12px;
}

.channel-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.channel-card {
  position: relative;
  background: #f8fafc;
  border: 2px solid var(--brand-blue-light);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition-smooth);
}

.channel-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.channel-card.active {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
  box-shadow: 0 4px 14px var(--brand-blue-glow);
}

.channel-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--brand-blue);
}

.channel-card.active .channel-icon-wrap {
  background: var(--brand-blue);
  color: #ffffff;
}

.channel-text h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.channel-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.channel-check-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
}

.channel-card.active .channel-check-badge {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  font-weight: bold;
}

/* Service Fee Price Summary Box */
.price-summary-box {
  background: var(--brand-blue-soft);
  border: 1.5px solid var(--brand-blue-border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.summary-row.total {
  border-top: 1px dashed var(--brand-blue-border);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-blue-deep);
}

.summary-row.total .price-tag {
  color: var(--brand-blue);
  font-size: 1.7rem;
  font-weight: 800;
}

/* Terms Checkbox */
.terms-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.terms-checkbox-wrap input[type="checkbox"] {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  accent-color: var(--brand-blue);
  cursor: pointer;
}

.terms-checkbox-wrap a {
  color: var(--brand-blue);
  text-decoration: underline;
}

.btn-checkout-submit {
  width: 100%;
  background: var(--grad-primary);
  color: #ffffff;
  border: none;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 25px var(--brand-blue-glow);
  transition: var(--transition-smooth);
}

.btn-checkout-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 89, 255, 0.4);
}

.payment-gateway-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.paysolution-logo-text {
  font-weight: 700;
  color: var(--brand-blue);
}

/* PaySolution QR Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--brand-blue-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 34px;
  position: relative;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  color: #475569;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.qr-head .bank-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.qr-head h3 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--brand-blue-deep);
}

.qr-head p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.qr-code-box {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin: 16px auto;
  border: 2px solid var(--brand-blue-border);
  box-shadow: var(--shadow-md);
}

.promptpay-header-banner {
  background: #003764;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px 6px 0 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.qr-timer-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.05rem;
  color: #d97706;
  font-weight: 700;
  margin-bottom: 16px;
}

.qr-instructions {
  background: var(--brand-blue-soft);
  border: 1px solid var(--brand-blue-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.9rem;
  color: #1e293b;
  text-align: left;
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn-simulate-pay {
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  color: #047857;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-simulate-pay:hover {
  background: #d1fae5;
  transform: translateY(-1px);
}

/* Success View Modal */
.success-icon-animated {
  width: 80px;
  height: 80px;
  background: #dcfce7;
  border: 3px solid #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #059669;
  margin: 0 auto 20px;
  box-shadow: var(--glow-emerald);
}

.success-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--brand-blue-deep);
  margin-bottom: 10px;
}

.success-channel-notice {
  background: var(--brand-blue-soft);
  border: 1.5px solid var(--brand-blue-border);
  padding: 16px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  text-align: left;
  font-size: 1rem;
}

.channel-preview-tag {
  font-weight: 700;
  color: var(--brand-blue);
}

.btn-instant-apply {
  background: var(--grad-emerald);
  color: #ffffff;
  border: none;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
  text-decoration: none;
  margin-top: 10px;
}

/* Image Viewer Modal */
.image-preview-modal .modal-content {
  max-width: 800px;
  background: #ffffff;
  padding: 24px;
}

.full-id-card-view {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-blue-border);
}

/* Footer (Clean Slate & Blue) */
.footer {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 60px 0 30px;
  font-size: 1rem;
  color: #94a3b8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.6;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: #337aff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .agent-showcase-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 24px;
  }
  .criteria-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .amount-highlight .value {
    font-size: 3rem;
  }
  .channel-options-grid {
    grid-template-columns: 1fr;
  }
  .checkout-box {
    padding: 24px 16px;
  }
  .nav-badges .security-seal {
    display: none;
  }
  .agent-metrics-row {
    grid-template-columns: 1fr;
  }
}
