/*
 * public.css
 * Shared base styles for all public-facing KinetPOS pages.
 * Templates that use this file only need page-specific overrides in their own <style>.
 */

/* ════════════════════════════════════════════
   1. RESET
════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ════════════════════════════════════════════
   2. CSS CUSTOM PROPERTIES
════════════════════════════════════════════ */
:root {
  --navy:    #023047;
  --navy-dk: #011d2e;
  --amber:   #ffb703;
  --amber-dk:#e6a500;
  --green:   #22c55e;
  --red:     #ef4444;
  --white:   #ffffff;
  --gray:    #64748b;
  --light:   #f0f5fa;
  --border:  rgba(2,48,71,.12);
  --radius:  12px;
}

/* ════════════════════════════════════════════
   3. BASE
════════════════════════════════════════════ */
html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', 'Open Sans', sans-serif;
  background: var(--light);
  color: var(--navy);
  min-height: 100vh;
}

/* ════════════════════════════════════════════
   4. STEP PILL  (hero badge — dark backgrounds)
════════════════════════════════════════════ */
.step-pill {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.65);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ════════════════════════════════════════════
   5. STEP BAR  (multi-step progress indicator)
════════════════════════════════════════════ */
.step-bar {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.steps {
  display: flex;
  align-items: center;
  width: 100%;
  padding-bottom: 20px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px; left: 55%; right: -45%;
  height: 2px;
  background: rgba(255,255,255,.12);
}
.step-item.done:not(:last-child)::after   { background: rgba(34,197,94,.3); }
.step-item.active:not(:last-child)::after { background: rgba(255,183,3,.3); }

.step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  color: rgba(255,255,255,.35);
  position: relative; z-index: 1;
}
.step-item.done .step-circle   { background: rgba(34,197,94,.15); border-color: var(--green); color: var(--green); }
.step-item.active .step-circle { background: var(--amber); border-color: var(--amber); color: var(--navy); }

.step-label {
  font-size: 10px; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  text-align: center; white-space: nowrap;
}
.step-item.done .step-label   { color: rgba(255,255,255,.5); }
.step-item.active .step-label { color: var(--amber); }

/* ════════════════════════════════════════════
   6. FORM CARD  (white card with navy header)
════════════════════════════════════════════ */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(2,48,71,.07);
  overflow: hidden;
}
.form-card-header {
  background: var(--navy);
  padding: 20px 28px;
  display: flex; align-items: center; gap: 12px;
}
.form-card-header-ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,183,3,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber); font-size: 18px; flex-shrink: 0;
}
.form-card-header h2 {
  font-size: 17px; font-weight: 800;
  color: var(--white); margin: 0;
}
.form-card-header p {
  font-size: 12px; color: rgba(255,255,255,.55); margin: 2px 0 0;
}
.form-card-body { padding: 28px; }

/* Internal section titles */
.form-section-title {
  font-size: 12px; font-weight: 800;
  letter-spacing: .8px; text-transform: uppercase;
  color: var(--amber-dk);
  margin: 0 0 16px;
  display: flex; align-items: center; gap: 8px;
}
.form-section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.form-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px;
}
.form-sep { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* Bootstrap form field overrides to match brand */
.form-card .form-group label {
  font-size: 12px; font-weight: 700;
  color: var(--navy); text-transform: uppercase;
  letter-spacing: .4px; margin-bottom: 5px;
}
.form-card .form-control {
  border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 14px;
  color: var(--navy); padding: 9px 12px;
  transition: border-color .2s, box-shadow .2s;
  background: #fafcfe;
}
.form-card .form-control:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255,183,3,.15);
  outline: none; background: var(--white);
}
.form-card input[type="file"].form-control { padding: 6px 12px; cursor: pointer; }
.form-card .invalid-feedback { font-size: 12px; }
.form-card .form-check-label { font-size: 13px; font-weight: 400; }

/* ════════════════════════════════════════════
   7. PRIMARY AMBER BUTTON  (shared CTA)
════════════════════════════════════════════ */
.btn-submit, .btn-pay, .btn-home {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 24px;
  background: var(--amber); color: var(--navy);
  border: none; border-radius: 10px;
  font-size: 15px; font-weight: 900; letter-spacing: .3px;
  cursor: pointer; text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(255,183,3,.3);
}
.btn-submit:hover, .btn-pay:hover, .btn-home:hover {
  background: var(--amber-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,183,3,.4);
  color: var(--navy); text-decoration: none;
}
.btn-submit:disabled {
  background: #94a3b8; cursor: not-allowed;
  transform: none; box-shadow: none;
}

/* Outline variant */
.btn-outline {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 11px 20px;
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy); border-radius: 10px;
  font-size: 13px; font-weight: 800; text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-outline:hover {
  background: var(--navy); color: var(--white); text-decoration: none;
}

/* ════════════════════════════════════════════
   8. MINI-NAV  (dark-background pages without main header)
════════════════════════════════════════════ */
.mini-nav {
  position: relative; z-index: 10;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mini-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mini-nav-logo-text { color: var(--amber); font-weight: 800; font-size: 18px; }
.mini-nav-btn {
  background: var(--amber); color: var(--navy);
  font-size: 12px; font-weight: 800;
  padding: 6px 16px; border-radius: 6px; text-decoration: none;
  transition: background .2s;
}
.mini-nav-btn:hover { background: var(--amber-dk); color: var(--navy); }

/* ════════════════════════════════════════════
   9. PAGE WRAPPER  (dark-background pages)
════════════════════════════════════════════ */
.page-wrap {
  flex: 1; display: flex;
  align-items: flex-start; justify-content: center;
  padding: 28px 20px 48px;
  position: relative; z-index: 1;
}

/* Dark page body variant — apply via class or override in template */
.pub-body-dark {
  background: linear-gradient(135deg, var(--navy-dk) 0%, #034a6e 100%);
  display: flex; flex-direction: column;
}
.pub-body-dark::before {
  content: ''; position: fixed; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,183,3,.08) 0%, transparent 65%);
  pointer-events: none;
}

/* ════════════════════════════════════════════
   10. GUARANTEE STRIP
════════════════════════════════════════════ */
.guarantee-strip {
  background: var(--navy);
  padding: 24px;
  text-align: center;
  position: relative; z-index: 1;
}
.guarantee-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
}
.guarantee-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.8); font-size: 13px; font-weight: 600;
}
.guarantee-item i { color: var(--amber); font-size: 15px; }

/* ════════════════════════════════════════════
   11. FOOTER  (all page variants share the same structure)
════════════════════════════════════════════ */
.cc-footer,
.fe-footer,
.plans-footer,
.pay-footer {
  background: var(--navy-dk);
  padding: 20px 24px;
  text-align: center;
  position: relative; z-index: 1;
}

.cc-footer-links,
.fe-footer-links,
.plans-footer-links,
.pay-footer-links {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 8px 28px;
}

.cc-footer-links a,
.fe-footer-links a,
.plans-footer-links a,
.pay-footer-links a {
  color: rgba(255,183,3,.8);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.cc-footer-links a:hover,
.fe-footer-links a:hover,
.plans-footer-links a:hover,
.pay-footer-links a:hover { color: var(--amber); }

/* ════════════════════════════════════════════
   12. ANIMATIONS
════════════════════════════════════════════ */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,183,3,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(255,183,3,0); }
}

@keyframes ring-pulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ════════════════════════════════════════════
   13. RESPONSIVE HELPERS
════════════════════════════════════════════ */
@media (max-width: 600px) {
  .step-label { display: none; }
  .form-card-body { padding: 20px 16px; }
  .form-cols { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .mini-nav { padding: 12px 18px; }
  .page-wrap { padding: 20px 14px 40px; }
  .guarantee-inner { gap: 16px; }
  .guarantee-item { font-size: 12px; }
}
