/* BCode Academy — site styles */

:root {
  --bc-blue: #0056d2;
  --bc-blue-dark: #003d99;
  --bc-amber: #d4620a;
  --bc-ink: #1a2332;
  --bc-muted: #5c6778;
  --bc-bg: #ffffff;
  --bc-bg-soft: #f4f6f9;
  --bc-border: #e2e7ef;
  --bc-radius: 12px;
  --bc-radius-lg: 18px;
  --bc-shadow: 0 8px 30px rgba(26, 35, 50, 0.07);
  --bc-header-h: 72px;
  --bc-max: 1120px;
  --bc-font: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--bc-font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--bc-muted);
  background: var(--bc-bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--bc-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--bc-blue-dark); }

h1, h2, h3, h4 {
  color: var(--bc-ink);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

p { margin: 0 0 1rem; }

.bc-container {
  width: min(100% - 2rem, var(--bc-max));
  margin-inline: auto;
}

/* Header */
.bc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--bc-header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bc-border);
}

.bc-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bc-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--bc-ink);
  font-weight: 700;
  font-size: 1.15rem;
}

.bc-logo img { height: 38px; width: auto; }

.bc-logo .bc-accent { color: var(--bc-amber); }

.bc-logo-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bc-muted);
  display: none;
}

@media (min-width: 900px) {
  .bc-logo-tag { display: inline; margin-left: 0.35rem; }
}

.bc-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--bc-ink);
  font-size: 1.35rem;
}

.bc-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.bc-nav a {
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bc-muted);
  border-radius: 8px;
}

.bc-nav a:hover,
.bc-nav a.is-active {
  color: var(--bc-blue);
  background: var(--bc-bg-soft);
}

.bc-nav .bc-btn-nav {
  margin-left: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--bc-blue);
  color: #fff !important;
  border-radius: 9px;
}

.bc-nav .bc-btn-nav:hover {
  background: var(--bc-blue-dark);
  color: #fff !important;
}

/* Buttons */
.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.bc-btn-primary {
  background: var(--bc-blue);
  color: #fff;
}

.bc-btn-primary:hover {
  background: var(--bc-blue-dark);
  color: #fff;
  transform: translateY(-1px);
}

.bc-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.bc-btn-outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.bc-btn-amber {
  background: var(--bc-amber);
  color: #fff;
}

.bc-btn-amber:hover {
  background: #b85308;
  color: #fff;
}

/* Hero */
.bc-hero {
  padding: calc(var(--bc-header-h) + 3rem) 0 4rem;
  background: linear-gradient(160deg, #0b2545 0%, #0056d2 100%);
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.bc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/banner2.jpg") center / cover no-repeat;
  opacity: 0.14;
}

.bc-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.bc-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffc978;
  margin-bottom: 0.85rem;
}

.bc-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 14ch;
  margin-bottom: 1rem;
}

.bc-hero-lead {
  font-size: 1.1rem;
  max-width: 38ch;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.88);
}

.bc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.bc-hero-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--bc-radius-lg);
  padding: 1.5rem;
  color: var(--bc-ink);
  box-shadow: var(--bc-shadow);
}

.bc-hero-card h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.bc-stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bc-stat-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--bc-border);
  font-size: 0.92rem;
  color: var(--bc-muted);
}

.bc-stat-list li:last-child { border-bottom: none; }

.bc-stat-list i {
  color: var(--bc-blue);
  margin-top: 0.15rem;
}

/* Sections */
.bc-section {
  padding: 4.5rem 0;
}

.bc-section-soft {
  background: var(--bc-bg-soft);
}

.bc-section-head {
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

.bc-section-head.center {
  text-align: center;
  margin-inline: auto;
}

.bc-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bc-blue);
  margin-bottom: 0.4rem;
}

.bc-section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.bc-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.bc-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.bc-card {
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.bc-card:hover {
  border-color: #b8cce8;
  box-shadow: var(--bc-shadow);
  transform: translateY(-3px);
}

.bc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e8f0fb;
  color: var(--bc-blue);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.bc-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.bc-card p {
  font-size: 0.92rem;
  margin: 0;
}

/* Page hero (inner pages) */
.bc-page-hero {
  padding: calc(var(--bc-header-h) + 2.5rem) 0 2.5rem;
  background: var(--bc-bg-soft);
  border-bottom: 1px solid var(--bc-border);
}

.bc-page-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 0.35rem;
}

.bc-breadcrumb {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--bc-muted);
}

.bc-breadcrumb a { color: var(--bc-blue); }

/* CTA band */
.bc-cta {
  background: var(--bc-ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0;
  text-align: center;
}

.bc-cta h2 { color: #fff; margin-bottom: 0.75rem; }

.bc-cta p {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

/* Footer */
.bc-footer {
  background: #111820;
  color: rgba(255, 255, 255, 0.72);
  padding: 3.5rem 0 0;
}

.bc-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.bc-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.bc-footer a { color: rgba(255, 255, 255, 0.78); }
.bc-footer a:hover { color: #ffc978; }

.bc-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bc-footer-links li { margin-bottom: 0.35rem; }

.bc-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.1rem 0;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.bc-social {
  display: flex;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bc-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.bc-newsletter {
  display: flex;
  gap: 0.5rem;
}

.bc-newsletter input[type="email"] {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
}

.bc-newsletter button {
  padding: 0.65rem 0.9rem;
  border: none;
  border-radius: 8px;
  background: var(--bc-blue);
  color: #fff;
  cursor: pointer;
}

.subscribe-form-msg { font-size: 0.82rem; margin-top: 0.4rem; }
.subscribe-form-msg.success { color: #6ee7b7; }
.subscribe-form-msg.error { color: #fca5a5; }

/* Contact */
.bc-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.bc-info-tile {
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
}

.bc-info-tile i {
  color: var(--bc-blue);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.bc-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.bc-quick-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--bc-border);
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bc-ink);
  background: #fff;
}

.bc-quick-actions a:hover {
  border-color: var(--bc-blue);
  color: var(--bc-blue);
}

/* Verify page */
.verify-card {
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-lg);
  padding: 2rem;
  box-shadow: var(--bc-shadow);
}

.verify-shield {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f0fb;
  color: var(--bc-blue);
  font-size: 1.5rem;
}

.verify-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bc-ink);
  margin-bottom: 0.4rem;
}

.verify-input-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.verify-input-row input {
  flex: 1 1 220px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--bc-border);
  border-radius: 10px;
  font: inherit;
}

.verify-result[hidden] { display: none !important; }

.verify-result {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--bc-radius);
  text-align: center;
}

.verify-result.valid { background: #ecfdf5; border: 1px solid #a7f3d0; }
.verify-result.warn { background: #fff7ed; border: 1px solid #fed7aa; }
.verify-result.invalid { background: #fef2f2; border: 1px solid #fecaca; }

.verify-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0.75rem auto;
  display: block;
}

.verify-photo-fallback {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0.75rem auto;
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: var(--bc-blue);
  font-size: 2rem;
  font-weight: 700;
}

.verify-details {
  text-align: left;
  max-width: 360px;
  margin: 0.75rem auto 0;
  font-size: 0.92rem;
}

.check-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.check-list li {
  padding: 0.35rem 0;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.check-list i { color: var(--bc-blue); margin-top: 0.2rem; }

.bc-img-round {
  border-radius: var(--bc-radius-lg);
  box-shadow: var(--bc-shadow);
}

.form-alert[hidden] { display: none !important; }

.form-alert:not([hidden]) {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.form-alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.form-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.bc-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: #991b1b;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.45;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.bc-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.bc-toast i { margin-top: 0.15rem; flex-shrink: 0; }

.bc-contact-form input,
.bc-contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--bc-border);
  border-radius: 10px;
  font: inherit;
}

.bc-contact-form textarea { min-height: 130px; resize: vertical; }

/* Enroll */
.bc-enroll-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.bc-enroll-form label,
.bc-enroll-form legend {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bc-ink);
  margin-bottom: 0.35rem;
}

.bc-enroll-form input,
.bc-enroll-form select,
.bc-enroll-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--bc-border);
  border-radius: 10px;
  font: inherit;
}

.bc-enroll-form textarea { min-height: 100px; resize: vertical; }

.bc-delivery-options {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
}

.bc-delivery-options legend { margin-bottom: 0.65rem; }

.bc-delivery-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.55rem;
  border: 1px solid var(--bc-border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.bc-delivery-option:has(input:checked) {
  border-color: var(--bc-blue);
  background: #f0f6ff;
}

.bc-delivery-option input { width: auto; margin: 0; flex-shrink: 0; }

.bc-delivery-option span small {
  display: block;
  font-weight: 400;
  color: var(--bc-muted);
  font-size: 0.85rem;
}

.bc-delivery-price {
  margin-left: auto;
  font-weight: 700;
  color: var(--bc-blue);
  white-space: nowrap;
  text-align: right;
  line-height: 1.2;
}

.bc-delivery-price small {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--bc-muted);
}

.bc-duration-options {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
}

.bc-duration-options legend { margin-bottom: 0.65rem; }

.bc-duration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.bc-duration-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--bc-border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  height: 100%;
}

.bc-duration-option:has(input:checked) {
  border-color: var(--bc-blue);
  background: #f0f6ff;
}

.bc-duration-option input { width: auto; margin: 0; }

.bc-duration-option strong {
  display: block;
  color: var(--bc-ink);
  font-size: 0.92rem;
}

.bc-duration-option small {
  display: block;
  color: var(--bc-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.bc-discount-badge {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 700;
}

.bc-location-panel {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  background: var(--bc-bg-soft);
  border-radius: 10px;
  border: 1px solid var(--bc-border);
}

.bc-location-panel[hidden] { display: none !important; }

.enroll-discount-line {
  font-size: 0.88rem;
  color: #047857;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.enroll-discount-line[hidden] { display: none !important; }

.enroll-breakdown {
  font-size: 0.92rem;
  color: var(--bc-ink);
  margin: 0 0 0.65rem;
  font-weight: 500;
}

.enroll-loading-hint {
  font-size: 0.9rem;
  color: var(--bc-muted);
  margin: 0;
  grid-column: 1 / -1;
}

.bc-enroll-summary {
  padding: 1rem 1.1rem;
  background: var(--bc-bg-soft);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.bc-enroll-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.bc-enroll-summary strong {
  font-size: 1.35rem;
  color: var(--bc-ink);
}

.bc-btn-block { width: 100%; justify-content: center; }

.enroll-merchant-note {
  font-size: 0.82rem;
  color: var(--bc-muted);
  margin: 0;
}

.enroll-success { text-align: center; }

.enroll-receipt {
  text-align: left;
  max-width: 380px;
  margin: 1.25rem auto;
  padding: 1rem 1.1rem;
  background: var(--bc-bg-soft);
  border-radius: 10px;
  display: grid;
  gap: 0.65rem;
}

.enroll-receipt div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.enroll-receipt dt { color: var(--bc-muted); margin: 0; }
.enroll-receipt dd { margin: 0; font-weight: 600; color: var(--bc-ink); text-align: right; }

.bc-steps-list {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.92rem;
}

.bc-steps-list li { margin-bottom: 0.45rem; }

#enroll-form-wrap[hidden],
#enroll-success[hidden] { display: none !important; }

.bc-map {
  border-radius: var(--bc-radius-lg);
  overflow: hidden;
  border: 1px solid var(--bc-border);
  margin-top: 2rem;
}

.bc-map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

#movetop {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--bc-blue);
  color: #fff;
  cursor: pointer;
  display: none;
  z-index: 90;
  box-shadow: var(--bc-shadow);
}

/* Responsive */
@media (max-width: 900px) {
  .bc-nav-toggle { display: block; }

  .bc-nav {
    position: fixed;
    top: var(--bc-header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid var(--bc-border);
    box-shadow: var(--bc-shadow);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
  }

  .bc-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .bc-nav .bc-btn-nav { margin-left: 0; text-align: center; }

  .bc-hero-grid,
  .bc-two-col,
  .bc-card-grid,
  .bc-footer-grid,
  .bc-contact-grid,
  .bc-enroll-layout {
    grid-template-columns: 1fr;
  }

  .bc-hero h1 { max-width: none; }
}

@media (max-width: 600px) {
  .bc-card-grid { grid-template-columns: 1fr; }
  .bc-duration-grid { grid-template-columns: 1fr; }
  .verify-input-row { flex-direction: column; }
  .verify-input-row .bc-btn { width: 100%; }
}
