/* GLOBAL VARIABLES */
:root {
  --brand: #0f9d58;
  --ink: #1f1f1f;
  --muted: #555;
  --bg: #f8fafc;
  --card: #fafafa;
  --border: #e5e7eb;
}

/* GLOBAL VARIABLES */
:root {
  --brand: #0f9d58;
  --ink: #1f1f1f;
  --muted: #555;
  --bg: #f8fafc;
  --card: #fafafa;
  --border: #e5e7eb;
}

/* RESET & BODY */
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  line-height: 1.6;
}

/* LAYOUT CONTAINERS - CONSISTENT WIDTH */
.wrap {
  max-width: 1080px; /* Match the original design */
  margin: 0 auto;
  padding: 24px 20px;
}

.section, section {
  padding: 25px 0; /* Remove horizontal padding here */
  max-width: 1080px; /* Match .wrap width */
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

/* PARAGRAPH CONSISTENCY - KEY FIX */
p, .sub {
  max-width: none; /* Remove the 70ch constraint */
  width: 100%;
  margin: 1rem 0;
  line-height: 1.65;
}

/* Only apply max-width to specific hero/intro text if needed */
.hero .sub {
  max-width: 70ch; /* Keep constraint only for hero sections */
}

/* HEADER - FIXED LAYOUT */
.main-header {
  background-color: #fff;
  padding: 20px 30px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px; /* Match content width */
  margin: 0 auto;
  padding: 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-placeholder {
  background: var(--brand);
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
}

/* TEXT STYLES */
.header-text h1,
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0.25rem 0 0.5rem 0; /* Match original spacing */
}

.header-text .tagline {
  font-size: 16px;
  color: var(--brand);
  font-style: italic;
  margin: 0;
}

h2, .section h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0; /* Match original spacing */
  color: var(--brand);
}

.kicker {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .9rem;
}

/* BUTTONS */
.btn {
  background: var(--brand);
  color: #fff;
  padding: 12px 18px; /* Match original button size */
  font-weight: 700; /* Match original weight */
  font-size: 16px;
  text-decoration: none;
  border-radius: 8px; /* Match original radius */
  border: 0;
  display: inline-block;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.btn:hover {
  background: #0b7f46;
}

.btn.alt {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

/* HAMBURGER MENU - POSITIONED ON RIGHT */
.hamburger-menu {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-around !important;
  width: 30px !important;
  height: 25px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  z-index: 1001 !important;
  flex-shrink: 0 !important;
}
.hamburger-menu span {
  width: 100% !important;
  height: 3px !important;
  background: var(--brand) !important;
  border-radius: 2px; !important
  transition: all 0.3s ease !important;
  transform-origin: center !important;
}
.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* MOBILE MENU */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}
.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu li {
  border-bottom: 1px solid #f0f0f0;
}
.mobile-menu a {
  display: block;
  padding: 15px 30px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}
.mobile-menu a:hover {
  background-color: var(--bg);
  color: var(--brand);
}

/* FLEX & GRID UTILITIES */
.hero {
  display: grid;
  gap: 12px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media(min-width:860px) {
  .cols { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: repeat(3,1fr);}
}

/* LISTS & BADGES */
ul {
  padding-left: 1.1rem;
  line-height: 1.65;
}
.badgebar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.badge {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .95rem;
}

/* CARD/STYLES */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.note, .footer-note {
  font-size: .92rem;
  color: var(--muted);
}

/* FIXED CTA BAR */
.fixed-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #e6fcf5;
  border-top: 1px solid #ccc;
  padding: 15px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 9999;
  font-size: 16px;
}
.fixed-cta p { 
  margin: 4px 0;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
}
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 420px;
  margin: 10% auto;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}
.modal-content input[type="email"] {
  width: 90%;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 20px;
}

/* DETAILS */
details summary {
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-text h1, h1 {
    font-size: 20px;
  }
  .header-text .tagline {
    font-size: 14px;
  }
  .logo-container {
    gap: 15px;
  }
  .logo-placeholder {
    padding: 10px 15px;
    font-size: 16px;
  }
  .header-container {
    flex-wrap: nowrap;
  }
  html, body {
    padding-bottom: 70px;
  }
  
  .wrap, .section {
    padding: 20px 15px; /* More mobile-friendly padding */
  }
}
.site-footer {
  background: #f1f5f9;
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  margin-top: 40px;
  text-align: center;    /* ensure footer content is centered */
}

.site-footer p {
  margin: 0 auto;        /* center the paragraph block */
  color: var(--muted);
  font-size: 0.92rem;
}

/* ==================================================
   Terms & Conditions Page Overrides
   ================================================== */

/* Container */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;  /* top, horizontal, bottom */
  background: var(--bg);
  color: var(--text);
}

/* Heading & Meta */
.container header h1 {
  font-size: 2rem;
  margin: 0 0 0.25rem;    /* bottom gap */
}
.container header .meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.container header .notice {
  display: block;
  font-size: 0.95rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Table of Contents */
.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 2rem;
}
.toc a {
  display: inline-block;
  margin: 0.15rem 0.5rem 0.15rem 0;
  font-size: 0.95rem;
  color: var(--brand);
  text-decoration: none;
}
.toc a:hover {
  text-decoration: underline;
}

/* Section Headings */
h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
h3 {
  font-size: 1.1rem;
  margin-top: 1.25rem;
}

/* Body Text & Lists */
.container p,
.container ul,
.container ol {
  line-height: 1.65;
  margin: 1rem 0;
}
.container ul,
.container ol {
  padding-left: 1.25rem;
}
.container li + li {
  margin-top: 0.25rem;
}

/* Code & Preformatted */
code,
pre {
  font-family: ui-monospace, Menlo, Consolas, 'Courier New', monospace;
}

/* Notice Blocks */
.notice {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

/* Footer within this page (if not using global footer.php) */
.container footer,
footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}
footer hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}


/* Page Container */
.am-layout {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Form Styling */
.am-form {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* Headers */
h1, .am-signup-title {
    color: #333333 !important;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: left;
    padding-bottom: 1rem;
}

h2 {
    color: #333333;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Form Fields */
.am-row {
    margin-bottom: 1.5rem;
}

.am-element-title {
    display: block;
    color: #333333 !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Buttons */
.am-form-submit input[type="submit"],
.am-form-submit button,
input[type="submit"],
button {
    background-color: #0f9d58 !important;
    color: #ffffff !important;
    padding: 0.75rem 2rem !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
}

/* Messages and Alerts */
.am-info-block,
.am-error-block {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.am-info-block {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
    color: #1976d2;
}

.am-error-block {
    background-color: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

/* Radio Buttons and Checkboxes */
.am-element-radio,
.am-element-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.am-element-radio input[type="radio"],
.am-element-checkbox input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
}

/* Membership Type Selection */
.am-membership-type {
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.am-membership-type:hover {
    border-color: #0f9d58;
}

.am-membership-type.selected {
    border-color: #0f9d58;
    background-color: #f0f7ff;
}

/* Description Text */
.am-element-desc {
    font-size: 0.9rem;
    color: #666666;
    margin-top: 0.25rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333333;
}

/* Progress Bar */
.am-progress {
    background-color: #e0e0e0;
    border-radius: 4px;
    height: 8px;
    margin: 1rem 0;
}

.am-progress-bar {
    background-color: #0f9d58;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .am-layout {
        padding: 0 0.5rem;
    }
    
    .am-form {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    h1, .am-signup-title {
        font-size: 1.75rem;
    }
    
    .nro-nav-links {
        display: none;
    }
    
    .nro-container {
        padding: 0 1rem;
    }
}

/* Specific Form Adjustments */
.am-signup-form,
.am-login-form {
    max-width: 800px;
    margin: 0 auto;
}

/* Loading States */
.am-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Required Field Indicator */
.am-required {
    color: #f44336;
    font-weight: bold;
}

/* Help Text */
.am-help-text {
    font-size: 0.85rem;
    color: #666666;
    margin-top: 0.25rem;
    font-style: italic;
}

.am-layout {
background:none !important;
}

    .am-body {
        background: none !important;
    }
    
    ul.am-tabs li.active, ul.am-tabs li.normal:hover {
    background: linear-gradient(to bottom, #ffffff, #00ff0a) !important;
    }
    ul.am-tabs li.active > a, ul.am-tabs li.normal > a:hover {
    border-color: #ccc !important;
    }
    
    .am-body-content input[type=submit] {
    background: #0f9d58 !important;
    }
    .am-body .am-body-content-wrapper {
    border-style: solid;
    border-color: #0000;
    border-width: 0 1px;
    }
