/* ================================================================
   Zudio Franchise Apply Online — Custom styles
   (Minimal: Bootstrap 5 handles grid, spacing, components, accordion)
================================================================ */
:root {
  --zx-dark: #0f0f0f;
  --zx-ink: #1a1a1a;
  --zx-muted: #6b6b6b;
  --zx-cream: #faf9f7;
  --zx-line: #ececec;
  --zx-green: #16a34a;
  --zx-green-soft: #e7f6ee;
}

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--zx-ink);
  background: #fff;
}

/* ---------- Logo ---------- */
.zx-logo {
  background: #000;
  color: #fff;
  font-weight: 800;
  font-style: italic;
  letter-spacing: .5px;
  padding: .35rem 1rem;
  border-radius: .4rem;
  font-size: 1.4rem;
  line-height: 1;
}
.zx-logo-light { background: #1f1f1f; }

/* Logo image */
.zx-logo-img {
  height: 38px;
  width: auto;
  border-radius: .4rem;
  display: block;
}
.zx-logo-img-footer { height: 42px; }

/* Off-canvas mobile drawer (slides in from right) */
.zx-offcanvas { width: 290px; }
@media (max-width: 991.98px) {
  .zx-offcanvas .nav-link { padding: .7rem .25rem; font-size: 1.05rem; }
}
/* On large screens the offcanvas becomes a normal inline navbar (Bootstrap handles this) */

/* ---------- Navbar ---------- */
.zx-nav { padding-top: .6rem; padding-bottom: .6rem; }
.zx-nav .nav-link {
  color: #3a3a3a;
  font-weight: 500;
  padding: .45rem .9rem;
  border-radius: .5rem;
}
.zx-nav .nav-link:hover { color: #000; }
.zx-nav .nav-link.active {
  color: #000;
  font-weight: 600;
  background: #f2f2f2;
}

/* ---------- Buttons ---------- */
.zx-btn-dark {
  background: #000;
  color: #fff;
  font-weight: 600;
  border-radius: .6rem;
  border: 1px solid #000;
}
.zx-btn-dark:hover { background: #1f1f1f; color: #fff; }
.zx-btn-outline {
  background: #fff;
  color: #111;
  font-weight: 600;
  border-radius: .6rem;
  border: 1px solid #d9d9d9;
}
.zx-btn-outline:hover { border-color: #000; color: #000; }

/* ---------- Section helpers ---------- */
.zx-cream { background: var(--zx-cream); }
.section-pad { padding-top: 5rem; padding-bottom: 5rem; }
.zx-lead { color: var(--zx-muted); font-size: 1.08rem; }
.zx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--zx-green-soft);
  color: var(--zx-green);
  font-weight: 600;
  font-size: .85rem;
  padding: .5rem 1rem;
  border-radius: 2rem;
}
.display-hero {
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -1px;
}
.section-title {
  font-weight: 800;
  letter-spacing: -.5px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

/* ---------- Cards ---------- */
.zx-card {
  background: #fff;
  border: 1px solid var(--zx-line);
  border-radius: 1rem;
  transition: box-shadow .2s ease, transform .2s ease;
}
.zx-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.06); transform: translateY(-3px); }
.zx-cream .zx-card { background: #fff; }

.zx-stat-num { font-weight: 800; font-size: 1.6rem; }
.zx-cost-num { color: var(--zx-green); font-weight: 800; font-size: 1.35rem; }
.zx-icon-muted { color: #9a9a9a; }

/* ---------- Hero image / floating card ---------- */
.zx-hero-img { border-radius: 1.2rem; object-fit: cover; width: 100%; height: 100%; }
.zx-float-card {
  background: #fff;
  border: 1px solid var(--zx-line);
  border-radius: .9rem;
  box-shadow: 0 15px 40px rgba(0,0,0,.10);
}
.zx-float-ico {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--zx-green-soft); color: var(--zx-green);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Check list ---------- */
.zx-check { color: var(--zx-green); flex-shrink: 0; }

/* ---------- Step number ---------- */
.zx-step-num {
  position: absolute; top: 1rem; right: 1.25rem;
  font-weight: 800; font-size: 2.4rem; color: #eee;
}

/* ---------- State pills ---------- */
.zx-pill {
  border: 1px solid #e2e2e2;
  border-radius: 2rem;
  padding: .5rem 1.15rem;
  background: #fff;
  color: #333;
  font-size: .95rem;
  text-decoration: none;
  transition: all .15s ease;
}
.zx-pill:hover { border-color: #000; color: #000; }

/* ---------- Secure note ---------- */
.zx-secure {
  background: var(--zx-green-soft);
  border: 1px solid #cde6d9;
  border-radius: .9rem;
}

/* ---------- Accordion (FAQ) ---------- */
.accordion-item { border: 1px solid var(--zx-line); border-radius: 1rem !important; overflow: hidden; }
.accordion-button { font-weight: 600; color: #1a1a1a; }
.accordion-button:not(.collapsed) { background: #fff; color: #000; box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: transparent; }
.accordion-body { color: var(--zx-muted); }

/* ---------- Footer ---------- */
.zx-footer { background: #101010; }
.zx-footer-text { color: #b9b9b9; max-width: 380px; }
.zx-footer-head { color: #fff; font-size: .8rem; letter-spacing: 1px; }
.zx-footer-links li { margin-bottom: .55rem; }
.zx-footer-links a { color: #b9b9b9; text-decoration: none; }
.zx-footer-links a:hover { color: #fff; }
.zx-footer-domain { color: #7a7a7a; font-size: .85rem; }
.zx-footer-hr { border-color: #2a2a2a; opacity: 1; }
.zx-footer-copy { color: #8a8a8a; font-size: .9rem; }

/* ---------- Form ---------- */
.form-control, .form-select { border-radius: .6rem; padding: .7rem .9rem; border-color: #e0e0e0; }
.form-control:focus, .form-select:focus { border-color: #000; box-shadow: 0 0 0 .15rem rgba(0,0,0,.06); }
.form-label { font-weight: 500; font-size: .95rem; }

/* Enquiry form styling - black accent (form only) */
#enquiryForm {
  position: relative;
  background: #fff;
}

#enquiryForm .zx-card,
.zx-card:has(> #enquiryForm) {
  background: #fff;
  border: 2px solid #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ---------- Text link with arrow ---------- */
.zx-link { color: #000; font-weight: 600; text-decoration: none; }
.zx-link:hover { text-decoration: underline; }

/* ---------- Alert boxes ---------- */
.zx-alert-warning {
  background: #fdf6e3;
  border: 1px solid #f2e2b3;
  border-radius: 1rem;
  color: #7a5b16;
}
.zx-alert-danger {
  background: #fdecec;
  border: 1px solid #f5c6c6;
  border-radius: 1rem;
  color: #b02a2a;
}

/* ---------- Numbered step circle (dark) ---------- */
.zx-step-circle {
  width: 46px; height: 46px; flex-shrink: 0;
  background: #101010; color: #fff;
  border-radius: .8rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}

/* ---------- Dark CTA box ---------- */
.zx-dark-box { background: #101010; color: #fff; border-radius: 1.2rem; }
.zx-dark-box .btn { border-radius: .6rem; }
.zx-btn-light { background: #fff; color: #111; font-weight: 600; border: 1px solid #fff; }
.zx-btn-light:hover { background: #f0f0f0; color: #000; }

/* ---------- Soft gray box ---------- */
.zx-gray-box { background: var(--zx-cream); border: 1px solid var(--zx-line); border-radius: 1.2rem; }

/* ---------- Icon square (dark) for cost cards ---------- */
.zx-icon-square {
  width: 44px; height: 44px; flex-shrink: 0;
  background: #101010; color: #fff;
  border-radius: .7rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}

/* ================================================================
   RESPONSIVE — tablet & mobile refinements
   (Bootstrap grid already stacks columns; these fine-tune spacing,
    image heights, the floating card, and large headings.)
================================================================ */

/* No horizontal scroll on any screen */
html, body { overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; height: auto; }
.zx-hero-img { height: auto; } /* base: let height follow the layout unless overridden */

/* Tablet and below (< 992px) */
@media (max-width: 991.98px) {
  .section-pad { padding-top: 3.5rem; padding-bottom: 3.5rem; }

  /* Hero floating card: stop overlapping the image, sit below it */
  .zx-float-card {
    position: static !important;
    margin: 1rem 0 0 0 !important;
    display: inline-flex !important;
  }

  /* Fixed inline image heights → responsive */
  .zx-hero-img { height: 320px !important; }
}

/* Phones (< 768px) */
@media (max-width: 767.98px) {
  .section-pad { padding-top: 2.75rem; padding-bottom: 2.75rem; }

  .display-hero { font-size: clamp(2rem, 9vw, 2.6rem); letter-spacing: -.5px; }
  .section-title { font-size: clamp(1.6rem, 6.5vw, 2.1rem); }
  .zx-lead { font-size: 1rem; }

  .zx-hero-img { height: 260px !important; }

  /* Full-width buttons stack nicely on small screens */
  .zx-hero-actions .btn { width: 100%; }

  /* Numbered step watermark smaller */
  .zx-step-num { font-size: 2rem; top: .75rem; right: 1rem; }

  /* Dark / gray CTA boxes: tighter padding */
  .zx-dark-box, .zx-gray-box { padding: 2rem 1.25rem !important; }
}

/* Small phones (< 576px) */
@media (max-width: 575.98px) {
  .zx-hero-img { height: 220px !important; }
  .zx-logo-img { height: 32px; }
  .zx-step-circle { width: 40px; height: 40px; font-size: 1rem; }
  .zx-pill { padding: .45rem .9rem; font-size: .88rem; }
  .zx-eyebrow { font-size: .8rem; }
}
