/* ============================================================
   CHARTER TECH LIMITED — style.css
   Palette derived from CTL logo: navy, red, blue, gold
   Typefaces: Merriweather (headings) + Inter (body)
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --navy:  #0B1F3A;
  --red:   #C0201A;
  --blue:  #1A4A8A;
  --gold:  #B8952A;
  --light: #F5F7FA;
  --mid:   #E8ECF2;
  --text:  #1A2233;
  --muted: #5A6680;
  --white: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Global safety net: no image should ever exceed its container */
img {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.logo-placeholder {
  display: none;
  height: 36px;
  width: 90px;
  border: 2px dashed rgba(0,0,0,0.2);
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.4);
  font-size: 11px;
  text-align: center;
}

.logo-placeholder {
  display: none; /* shown via JS if image fails */
  height: 44px;
  width: 110px;
  border: 2px dashed rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.4);
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--red);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  padding: 4px;
  align-items: center;
  justify-content: center;
}

/* ── MOBILE NAV DRAWER ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 260px;
  height: 100vh;
  background: var(--navy);
  z-index: 200;
  padding: 28px 24px;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 20px;
  padding: 4px;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav ul a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s;
}

.mobile-nav ul a:hover {
  color: var(--red);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
}

.mobile-nav-overlay.open {
  display: block;
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
section {
  padding: 90px 5%;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.25;
}

.section-divider {
  width: 52px;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  border-radius: 2px;
  margin-bottom: 36px;
}
.zfa-logo {
  height: 120px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  background: var(--white);
  border-radius: 6px;
  padding: 6px;
  border: 1px solid var(--mid);
}
.footer-credit a {
  color: inherit;
  text-decoration: underline;
}
/* ============================================================
   HERO
   ============================================================ */
#home {
  margin-top: 68px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 80px,
    rgba(255, 255, 255, 0.03) 80px,
    rgba(255, 255, 255, 0.03) 81px
  );
}

.hero-stripe {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(to bottom, var(--red), var(--blue));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-inner > * {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(192, 32, 26, 0.18);
  color: #E05550;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 22px;
  border-left: 3px solid var(--red);
}

.hero-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 10px;
}

.hero-title span {
  color: var(--gold);
}

.hero-subtitle {
  font-family: 'Merriweather', serif;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 36px;
  font-style: italic;
}

.hero-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 38px;
}

.hero-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.hero-contact-row i {
  color: var(--gold);
  margin-top: 2px;
  flex-shrink: 0;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
  background: #9e1a15;
  transform: translateY(-1px);
}

.hero-photo-box {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.hero-photo-box i {
  opacity: 0.5;
}

.hero-photo-box p {
  font-size: 13px;
  text-align: center;
  max-width: 180px;
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  background: var(--light);
}

/* Logo + tagline header at top of about section */
.about-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--mid);
}

.about-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.about-tagline-main {
  font-family: 'Merriweather', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.about-tagline-sub {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  min-width: 0;
}

.about-grid > * {
  min-width: 0;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 15px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-alliance {
  margin-top: 20px;
  padding: 20px;
  background: var(--white);
  border-left: 4px solid var(--blue);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.about-alliance p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.about-alliance p:last-child {
  margin-bottom: 0;
}

.about-alliance strong {
  color: var(--navy);
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-subsidiary {
  background: var(--white);
  border-radius: 4px;
  padding: 24px;
  border-top: 3px solid var(--red);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.subsidiary-title {
  font-family: 'Merriweather', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.about-subsidiary p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.about-sub-label {
  font-weight: 600;
  color: var(--navy) !important;
  margin-bottom: 8px !important;
}

.about-courses {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
}

.about-courses li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}

.about-courses li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.about-courses li span {
  color: var(--blue);
  font-size: 13px;
  margin-left: 4px;
}

/* ============================================================
   SERVICES
   ============================================================ */
#services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 10px;
}

.service-card {
  background: var(--light);
  border-top: 3px solid var(--red);
  border-radius: 4px;
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--gold);
}

.service-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   TRAINING
   ============================================================ */
#training {
  background: var(--navy);
  color: var(--white);
}

#training .section-title {
  color: var(--white);
}

#training .section-label {
  color: var(--gold);
}

.training-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  min-width: 0;
}

.training-grid > * {
  min-width: 0;
}

.training-intro p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  margin-bottom: 16px;
}

.training-quote {
  margin-top: 30px;
  border-left: 4px solid var(--gold);
  padding: 16px 22px;
  background: rgba(184, 149, 42, 0.1);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.7;
}

.training-quote strong {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-style: normal;
  font-size: 13px;
}

.training-since {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(192, 32, 26, 0.2);
  border: 1px solid rgba(192, 32, 26, 0.4);
  border-radius: 3px;
  padding: 8px 16px;
  color: #E05550;
  font-size: 13px;
  font-weight: 600;
}

.courses-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.course-item i {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.course-item strong {
  display: block;
  color: var(--white);
  font-size: 15px;
  margin-bottom: 3px;
}

.course-item span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.training-photos {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}

.training-photos > * {
  min-width: 0;
}

.photo-placeholder {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  width: 100%;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.photo-placeholder span {
  font-size: 11px;
}

/* ============================================================
   ENHANCED OIL RECOVERY
   ============================================================ */
#eor {
  background: var(--light);
}

.eor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  min-width: 0;
}

.eor-grid > * {
  min-width: 0;
}

.eor-text p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
}

.eor-tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--gold);
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 22px;
}

.eor-steps-title {
  font-family: 'Merriweather', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

.eor-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eor-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border-radius: 4px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eor-step strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 3px;
}

.eor-step span {
  color: var(--muted);
  font-size: 14px;
}

.eor-twitter {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.eor-twitter i {
  color: #1DA1F2;
}

.eor-schematic-placeholder {
  margin-top: 28px;
  background: var(--white);
  border: 1px dashed #CBD3DE;
  border-radius: 4px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
  min-height: 180px;
}

.eor-schematic-placeholder i {
  opacity: 0.4;
}

.eor-schematic-placeholder p {
  font-size: 13px;
  margin-bottom: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-offices {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.office-card {
  background: var(--light);
  border-radius: 4px;
  padding: 24px;
  border-left: 4px solid var(--blue);
}

.office-card--red {
  border-left-color: var(--red);
}

.office-card h4 {
  font-family: 'Merriweather', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.office-card h4 i {
  color: var(--red);
}

.office-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.contact-right h3 {
  font-family: 'Merriweather', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.contact-right > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.contact-people {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.person-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--light);
  border-radius: 4px;
  padding: 14px 18px;
}

.person-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.person-row strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
}

.person-row span {
  color: var(--muted);
  font-size: 13px;
}

.email-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.email-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 14px;
  text-decoration: none;
  padding: 10px 16px;
  background: rgba(26, 74, 138, 0.06);
  border-radius: 3px;
  transition: background 0.2s;
}

.email-link:hover {
  background: rgba(26, 74, 138, 0.12);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 32px 5%;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer strong {
  color: rgba(255, 255, 255, 0.8);
}

.footer-credit {
  margin-top: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

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

  .mobile-nav {
    display: flex;
  }
}

@media (max-width: 800px) {
  .hero-inner,
  .about-grid,
  .training-grid,
  .eor-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo-box {
    display: none;
  }

  .about-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  section {
    padding: 60px 5%;
  }
}

/* ── Active nav link (set via JS on scroll) ── */
.nav-links a.active {
  color: var(--red);
}

.mobile-nav ul a.active {
  color: var(--red);
}

/* ============================================================
   MULTI-PAGE ADDITIONS
   ============================================================ */

/* ── PAGE BANNER (used on About / Training / EOR / Services / Contact) ── */
.page-banner {
  margin-top: 68px;
  background: var(--navy);
  padding: 56px 5% 48px;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(to bottom, var(--red), var(--blue));
}

.page-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.page-banner-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #E05550;
  margin-bottom: 10px;
}

.page-banner-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 900;
  color: var(--white);
}

/* ── HOME PAGE HERO (no top margin issue, full layout) ── */
.page-hero {
  /* uses existing #home styles */
}

/* ── QUICK LINKS STRIP (home page only) ── */
.quick-links {
  background: var(--white);
  padding: 70px 5%;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.quick-link-card {
  background: var(--light);
  border-radius: 6px;
  padding: 28px 24px;
  text-decoration: none;
  border-top: 3px solid var(--blue);
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
}

.quick-link-card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.quick-link-icon {
  width: 46px;
  height: 46px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.quick-link-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.quick-link-card p {
  font-size: 13px;
  color: var(--muted);
}

/* ── ABOUT PAGE: link to training page ── */
.about-link-more {
  display: inline-block;
  margin-top: 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.about-link-more:hover {
  text-decoration: underline;
}

/* ── TRAINING STANDALONE PAGE: stack courses under intro, photos full width ── */
.training-standalone .training-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.training-standalone .courses-list {
  margin-top: 28px;
}

/* ── EOR STANDALONE PAGE ── */
.eor-standalone {
  padding-top: 70px;
}

/* ── SERVICES STANDALONE PAGE ── */
.services-standalone {
  padding-top: 70px;
}

/* ── CONTACT STANDALONE PAGE ── */
.contact-standalone {
  padding-top: 70px;
}

.contact-standalone .contact-grid {
  grid-template-columns: 0.85fr 1.15fr;
}

/* ── CONTACT FORM ── */
.contact-form-wrap {
  background: var(--light);
  border-radius: 8px;
  padding: 32px;
}

.contact-form-wrap h3 {
  font-family: 'Merriweather', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.contact-form-wrap > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.form-group label span {
  color: var(--red);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  border: 1px solid #D5DAE2;
  border-radius: 4px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  font-family: 'Inter', sans-serif;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 13px 26px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}

.form-submit-btn:hover {
  background: #9e1a15;
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  font-size: 13px;
  margin-top: -6px;
  min-height: 18px;
}

.form-status.success {
  color: #1B8A3D;
}

.form-status.error {
  color: var(--red);
}

/* ── RESPONSIVE: multi-page additions ── */
@media (max-width: 800px) {
  .training-standalone .training-grid,
  .contact-standalone .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-banner {
    padding: 44px 5% 36px;
  }
}