:root {
  --mt-page-bg: radial-gradient(circle at top, #0b1120 0, #020617 55%, #000 100%);
  --mt-shell-max: 1200px;

  --mt-bg-shell: #ffffff;
  --mt-bg-soft: #f9fafb;
  --mt-bg-soft-alt: #f3f4f6;
  --mt-bg-dark: #020617;
  --mt-bg-dark-soft: #0b1120;

  --mt-primary: #127dc1;
  --mt-primary-dark: #195b87;
  --mt-accent: #22c55e;

  --mt-text-main: #0f172a;
  --mt-text-muted: #6b7280;
  --mt-text-light: #e5e7eb;

  --mt-border-subtle: rgba(148, 163, 184, 0.3);

  --mt-radius-lg: 18px;
  --mt-radius-xl: 24px;

  --mt-shadow-shell: 0 30px 80px rgba(15, 23, 42, 0.35);
  --mt-shadow-card: 0 18px 45px rgba(15, 23, 42, 0.18);
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.mt-body {
  background: var(--mt-page-bg);
  color: var(--mt-text-main);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout shells */

.mt-page {
  min-height: 100vh;
}

.mt-shell {
  max-width: var(--mt-shell-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.mt-header {
  padding-top: 1.25rem;
}

.mt-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.mt-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.mt-brand-logo img {
  max-height: 60px;
}

.mt-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.mt-brand-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f9fafb;
}

.mt-brand-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.mt-header-right {
  min-width: 220px;
  text-align: right;
  color: #e5e7eb;
  font-size: 0.85rem;
}

.mt-advert-top {
  margin-top: 0.8rem;
}

/* Nav bar */

.mt-nav-bar {
  margin-top: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.mt-nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mt-nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 999px;
}

.mt-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mt-nav-toggle--open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mt-nav-toggle--open span:nth-child(2) {
  opacity: 0;
}
.mt-nav-toggle--open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mt-nav {
  flex: 1;
}

.mt-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.3rem;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.78rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #e5e7eb;
}

.mt-nav-list > li > a,
.mt-nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.7rem 0;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.mt-nav-list > li > a:hover,
.mt-nav-parent:hover {
  background: rgba(50, 79, 147, 0.7);
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
  text-decoration: none;	
}

.mt-nav-has-children {
  position: relative;
}

.mt-nav-caret {
  font-size: 0.75rem;
}

/* Submenu */

.mt-nav-sub {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  margin: 0;
  padding: 0.25rem 0.4rem;
  list-style: none;
  background: #020617;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: none;
  z-index: 20;
}

.mt-nav-sub li a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.mt-nav-sub li a:hover {
  background: rgba(37, 99, 235, 0.18);
}

/* Open state on mobile and when toggled (JS adds class) */
.mt-nav-sub--open {
  display: block;
}

/* Main shell */

.mt-main {
  background: var(--mt-bg-shell);
  box-shadow: var(--mt-shadow-shell);
  border-radius: var(--mt-radius-xl);
  max-width: var(--mt-shell-max);
  margin: 1.5rem auto 2.5rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.16);
}

/* Hero */

.mt-hero {
  background: radial-gradient(circle at top left, #1e293b 0, #020617 45%, #020617 100%);
  color: #f9fafb;
  padding: 2.4rem 0 2.2rem;
}

.mt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr);
  gap: 2rem;
  align-items: start;
}

.mt-hero-main {
  position: relative;
}

.mt-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.mt-hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.35);
}

.mt-hero-title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 2.7vw, 2.2rem);
  font-weight: 600;
}

.mt-hero-text {
  margin: 0 0 0.9rem;
  font-size: 0.98rem;
  color: #e5e7eb;
}

.mt-hero-list {
  margin: 0 0 1.2rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.mt-hero-list li + li {
  margin-top: 0.25rem;
}

.mt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.mt-hero-meta {
  font-size: 0.82rem;
  color: #a5b4fc;
}

/* Hero side */

.mt-hero-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mt-card {
  background: #020617;
  border-radius: var(--mt-radius-lg);
  padding: 1rem 1rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--mt-shadow-card);
}

.mt-card-title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #7580f0;
}

.mt-card-body {
  font-size: 0.85rem;
  color: #e5e7eb;
}
.mt-card-body1 {
  font-size: 0.85rem;  
}

/* Search form */

.mt-search-form {
  margin-top: 0.2rem;
}

.mt-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #0b1120;
  border-radius: 999px;
  padding: 0.35rem 0.4rem 0.35rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.mt-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.85rem;
}

.mt-search-input::placeholder {
  color: #6b7280;
}

.mt-search-button {
  border: none;
  background: #127dc1;
  border-radius: 999px;
  padding: 0.32rem 0.55rem;
  cursor: pointer;
}

.mt-search-button img {
  width: 14px;
  height: 14px;
  filter: invert(1);
}

/* Sections */

.mt-section {
  padding: 2rem 0;
}

.mt-section-light {
  background: var(--mt-bg-soft);
}

.mt-section-dark {
  background: linear-gradient(to bottom, var(--mt-bg-dark), var(--mt-bg-dark-soft));
  color: var(--mt-text-light);
}

.mt-section-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mt-text-muted);
}

.mt-section-text {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--mt-text-muted);
}

.mt-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: flex-start;
}

.mt-section-grid1 {
  display: grid;
  /* Main content much wider, sidebar narrower */
  grid-template-columns: minmax(0, 3.5fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: flex-start;
}

/* Features */

.mt-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}



.mt-feature {
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid var(--mt-border-subtle);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.mt-feature h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.mt-feature p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mt-text-muted);
}

/* Latest section */

.mt-latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: flex-start;
}

.mt-latest-main {
  min-width: 0;
}

.mt-section-header {
  margin-bottom: 0.9rem;
}

.mt-latest-side {
  min-width: 0;
}

.mt-card-soft {
  background: var(--mt-bg-soft-alt);
  color: var(--mt-text-main);
  border: 1px solid var(--mt-border-subtle);
}

/* Disclaimer */

.mt-disclaimer {
  text-align: center;
}

.mt-disclaimer-text {
  max-width: 900px;
  margin: 0.5rem auto 1rem;
  font-size: 0.9rem;
  color: #cbd5f5;
}

/* Buttons */

.mt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease,
    transform 0.05s ease;
}

.mt-btn-primary {
  background: var(--mt-primary);
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.mt-btn-primary:hover {
  background: var(--mt-primary-dark);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.55);
  transform: translateY(-1px);
}

.mt-btn-ghost {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.mt-btn-ghost:hover {
  background: rgba(15, 23, 42, 0.7);
  text-decoration: none;
}

.mt-btn-outline-light {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.8);
}

.mt-btn-outline-light:hover {
  background: rgba(15, 23, 42, 0.85);
  text-decoration: none;
}

/* Helpers */

.mt-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */

@media (max-width: 1024px) {
  .mt-main {
    margin: 1rem 1rem 2rem;
  }

  .mt-section-grid,
  .mt-latest-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .mt-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mt-header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .mt-header-right {
    text-align: left;
  }

  .mt-nav-shell {
    align-items: center;
  }

  .mt-nav-toggle {
    display: inline-block;
  }

  .mt-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #020617;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .mt-nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mt-nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.2rem 1.5rem 0.7rem;
  }

  .mt-nav-sub {
    position: static;
    margin-top: 0.3rem;
    box-shadow: none;
    border-radius: 10px;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.4);
  }
}

@media (max-width: 480px) {
  .mt-shell {
    padding: 0 1rem;
  }

  .mt-brand-title {
    font-size: 1.2rem;
  }

  .mt-hero {
    padding: 1.8rem 0 1.8rem;
  }

  .mt-hero-title {
    font-size: 1.5rem;
  }

  .mt-section {
    padding: 1.6rem 0;
  }

  .mt-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mt-disclaimer-text {
    font-size: 0.86rem;
  }
}
	
/* Latest talk cards */

.mt-talk-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

/* Generic card styling for whatever the CGI outputs */
.mt-talk-card-grid > * {
  background: #ffffff;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--mt-border-subtle);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  font-size: 0.9rem;
}

/* If you add specific classes in your CGI, these will refine it */
.mt-talk-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mt-talk-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--mt-text-main);
}

.mt-talk-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--mt-text-muted);
}

.mt-talk-summary {
  margin: 0.1rem 0 0.4rem;
  font-size: 0.9rem;
  color: var(--mt-text-main);
}

.mt-talk-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.mt-talk-tag {
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
  color: #15803d;
  border: 1px solid rgba(74, 222, 128, 0.5);
}

.mt-talk-link {
  font-size: 0.8rem;
  color: var(--mt-primary);
  font-weight: 500;
  text-decoration: none;
}

.mt-talk-link:hover {
  text-decoration: underline;
}

/* =========================
   3-Column Footer Layout
   ========================= */

.mt-footer {
  background: #020617;
  color: #e5e7eb;
  margin-top: 0;
}

.mt-footer-inner {
  padding: 2.4rem 0 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.mt-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.mt-footer-col {
  min-width: 0;
}

.mt-footer-col-right {
  text-align: right;
}

/* Headings */

.mt-footer-heading {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f1f5f9;
}

.mt-footer-heading--spaced {
  margin-top: 1.4rem;
}

/* Links */

.mt-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mt-footer-links li {
  margin-bottom: 0.35rem;
}

.mt-footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
}

.mt-footer-links a:hover {
  text-decoration: underline;
}

/* Social icons */

.mt-footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.mt-footer-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #e5e7eb;
  transition: 0.15s ease;
}

.mt-footer-icon:hover {
  background: #127dc1;
  border-color: #127dc1;
  color: white;
  transform: translateY(-1px);
}

/* CTA Button */

.mt-footer-btn {
  margin-bottom: 1.1rem;
}

/* Copy + legal + Redi logo */

.mt-footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.mt-footer-copy a {
  color: #cbd5e1;
}

.mt-footer-sep {
  padding: 0 0.4rem;
}

.mt-footer-powered {
  float: right;
}
.mt-footer-powered img {
  max-height: 30px;
  margin-top: 0.8rem;
}

/* Responsive */

@media (max-width: 900px) {
  .mt-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mt-footer-col-right {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .mt-footer-grid {
    grid-template-columns: 1fr;
  }
  .mt-footer-social {
    justify-content: flex-start;
  }
}

.mt-footer-social {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
  justify-content: flex-end;
}

.mt-footer-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #e5e7eb;
  transition: 0.15s ease;
}

.mt-footer-icon:hover {
  background: #127dc1;
  border-color: #127dc1;
  color: #fff;
  transform: translateY(-2px);
}

/* ===============================
   Latest Talkz Full-Width Section
   =============================== */

.mt-latest-section {
  padding: 3rem 0;
  background: #f9fafb;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  width: 100%;
}

/* allows this section to break outside the main 1200px container */
.mt-shell-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.mt-section-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
  color: #7580f0;
}

/* 4-per-row grid */
.mt-latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

/* turn each talk into a card */
.mt-latest-grid > * {
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(148,163,184,0.25);
  box-shadow: 0 10px 25px rgba(15,23,42,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mt-latest-grid > *:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Responsive rules */
@media (max-width: 1100px) {
  .mt-latest-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .mt-latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .mt-latest-grid {
    grid-template-columns: 1fr;
  }
}

/* Login area in header */

.mt-login-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.mt-login-box--logged-out {
  flex-wrap: wrap;
}

.mt-login-text {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.mt-login-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.mt-login-name {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #f9fafb;
}

.mt-login-extra {
  font-size: 0.8rem;
  color: #cbd5f5;
}

.mt-login-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.mt-login-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mt-login-field input {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 0.8rem;
  min-width: 130px;
  width: 150px;
}

.mt-login-field input::placeholder {
  color: #6b7280;
}

.mt-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  align-items: center;
}

.mt-login-btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
}

.mt-login-forgot {
  font-size: 0.75rem;
  color: #9ca3af;
  text-decoration: none;
}

.mt-login-forgot:hover {
  text-decoration: underline;
}

/* Slightly friendlier on small screens */

@media (max-width: 768px) {
  .mt-login-box {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .mt-login-text {
    text-align: left;
  }
}

.mt-login-secondary {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: right;
}

.mt-login-link {
  font-size: 0.75rem;
  color: #9ca3af;
  text-decoration: none;
}

.mt-login-link:hover {
  text-decoration: underline;
}

/* About / inner pages: main + sidebar layout */
.mt-section-main {
  min-width: 0; /* allow content to shrink nicely */
}

.mt-section-side {
  min-width: 0;
}

/* Sidebar styling still tuned for narrow column */
.mt-section-side .mt-card {
  padding: 16px;
}

.mt-section-side .mt-card-title {
  font-size: 1rem;
}

.mt-card-list li a {
  font-size: 0.9rem;
}


/* ===========
   FORM LAYOUT
   =========== */

.mt-card-form {
  border-radius: 12px;
  padding: 24px 24px 28px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.mt-card-form .mt-card-title {
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 600;
}

.mt-form-table {
  width: 100%;
}

/* Make inner table spacing lighter */
.mt-form-table td {
  vertical-align: top;
}

/* Headings inside form sections */
.mt-card-form h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 16px 0 8px;
  color: #0f172a;
}

/* Small helper text */
.mt-card-form small,
.mt-card-form span.help-text {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
}

/* ======================
   INPUTS, SELECTS, TEXTAREA
   ====================== */

.mt-card-form .input,
.mt-card-form input[type="text"],
.mt-card-form input[type="password"],
.mt-card-form input[type="email"],
.mt-card-form input[type="tel"],
.mt-card-form select,
.mt-card-form textarea {
  /*width: 100%;*/
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background: #f9fafb;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

/* For selects that were not full-width before, force full width */
.mt-card-form select {
  max-width: 100%;
}

/* Focus state */
.mt-card-form .input:focus,
.mt-card-form input[type="text"]:focus,
.mt-card-form input[type="password"]:focus,
.mt-card-form input[type="email"]:focus,
.mt-card-form input[type="tel"]:focus,
.mt-card-form select:focus,
.mt-card-form textarea:focus {
  outline: none;
  border-color: #0ea5e9;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25);
}

/* Textarea sizing */
.mt-card-form textarea {
  min-height: 80px;
  resize: vertical;
}

/* Labels / field titles (the left column) */
.mt-card-form td:first-child strong {
  display: block;
  padding-top: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #111827;
}

/* Space between rows */
.mt-card-form tr + tr td {
  padding-top: 6px;
}

/* Required star */
.mt-card-form td * + * {
  /*margin-left: 4px;*/
}

/* ======================
   CHECKBOXES & INLINE ITEMS
   ====================== */

.mt-card-form input[type="checkbox"] {
  width: auto;
  margin-right: 6px;
  accent-color: #0ea5e9; /* modern browsers */
}

.mt-card-form label {
  font-size: 0.9rem;
  color: #111827;
}

/* ======================
   BUTTON
   ====================== */

.mt-card-form .mt-btn-primary,
.mt-card-form input[type="button"].mt-btn-primary,
.mt-card-form input[type="submit"].mt-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #0ea5e9;
  border: none;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    transform 0.08s ease,
    box-shadow 0.15s ease;
}

.mt-card-form .mt-btn-primary:hover {
  background: #0284c7;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.mt-card-form .mt-btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ======================
   REGISTRATION BODIES & SMALL CONTROLS
   ====================== */

.mt-card-form .regbody select {
  width: auto;
  min-width: 150px;
  margin-right: 8px;
}

.mt-card-form .regbody input[type="text"] {
  max-width: 180px;
  display: inline-block;
}

/* “+” icon next to reg body rows if you still use font-awesome */
.addicon {
  cursor: pointer;
  font-size: 1.1rem;
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.75;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.addicon:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ======================
   RECAPTCHA & INFO BOXES
   ====================== */

.g-recaptcha {
  margin-top: 6px;
}

/* Columns stack nicely on mobile */
@media (max-width: 768px) {
  .mt-form-table td {
    display: block;
    width: 100% !important;
  }

  .mt-card-form td:first-child strong {
    padding-top: 4px;
    margin-bottom: 4px;
  }

  .mt-card-form .regbody select,
  .mt-card-form .regbody input[type="text"] {
    width: 100%;
    max-width: 100%;
    margin-bottom: 6px;
  }
}

/* ======================
   TELEPHONE INPUT OVERRIDE
   ====================== */

.mt-card-form .iti {
  width: 100%;
}

.mt-card-form .iti input[type="tel"] {
  width: 50%;
  padding-left: 52px; /* keep flag space */
}
