/* ============================================================
   Partner Network — Portal Styles
   Brand: #022083 (darkblue) | #116DA5 (midblue) | #3894D5 (skyblue)
          #91DBE5 (lightblue) | #ED1C24 (red) | #2EE0BE (mint)
   ============================================================ */

/* --- Suppress nav items in mainmenu — keep logo visible ------- */
.pn-portal .mainmenu #main-menu,
.pn-portal .mainmenu #secondary-menu,
.pn-portal .mainmenu #search-panel,
.pn-portal .mainmenu .mobile-menu { display: none !important; }
/* --- Hide sticky nav, mobile nav, and site footer ------------- */
.pn-portal .stickymenu,
.pn-portal .mobile-content  { display: none !important; }
.pn-portal .pre-footer,
.pn-portal footer.footer     { display: none !important; }

/* --- Reset & base -------------------------------------------- */
.pn-portal * { box-sizing: border-box; }
.pn-portal { background: #f4f6f9; }

.pn-portal .mainmenu {
position: absolute;

}

/* --- Portal subnav bar (below theme header, logged-in context) */
.pn-portal-subnav {
  padding: 8px 60px;
  position: relative;
  z-index: 99999999;
  margin-top: 40px;
}
.pn-portal-subnav-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.pn-welcome {
  color: #555;
  font-size: 13px;
}
.pn-nav-link {
  color: #022083;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.pn-nav-link:hover { color: #116DA5; }

/* --- Registration page hero (SSR event-page style) ---------- */

/* .featured-image normally gets its height from .single-event in the theme CSS.
   Since our plugin page doesn't carry that body class, we set it explicitly here. */
.pn-portal .page-header {
  padding: 0;
  position: relative;
}
.pn-portal .featured-image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 375 / 200;
  clip-path: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 544"><clipPath id="wave" clipPathUnits="objectBoundingBox" transform="scale(0.000694444 0.001838235)"><path d="M1440 544C1440 544 426.193 428.718 287.3 416.814C164.869 406.321 47.6254 490.237 0 544V0H1440V544Z"/></clipPath></svg>#wave');
}
@media (min-width: 768px) {
  .pn-portal .featured-image {
    min-height: 600px;
    aspect-ratio: 1440 / 544;
  }
}

.pn-portal .page-header i.tagline {
  color: #91DBE5;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform:uppercase;
  display: block;
  margin-bottom: 20px;
}
.pn-portal .page-header h1.page-title {
  color: #fff;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.1;
  font-weight: 800;
  margin: 0;
}
.pn-portal .pn-reg-intro p {
  color: #91DBE5;
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 20px;
}
.pn-portal .pn-reg-intro p:last-child { margin-bottom: 0; }

/* Transparent mainmenu + white logo on the dark registration header */
.pn-reg-page .mainmenu {
  background: transparent !important;
  box-shadow: none !important;
}
/*.pn-reg-page .mainmenu #logo .st0 { fill: #fff !important; }


/* --- Main content area --------------------------------------- */
.pn-main {
  min-height: calc(100vh - 160px);
  background: #f4f6f9;
  flex:1 0 auto;
}

/* --- Page container ------------------------------------------ */
.pn-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* --- Hero / page title --------------------------------------- */
.pn-page-hero {
  margin-bottom: 40px;
}
.pn-tagline {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ED1C24;
  margin-bottom: 8px;
}
.pn-page-hero h1 {
  color: #022083;
  font-size: clamp(28px, 3vw, 44px);
  margin: 0;
  line-height: 1.2;
}

/* --- Two-column grid: main + sidebar ------------------------- */
.pn-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .pn-content-grid { grid-template-columns: 1fr; }
}
/* Registration page has no sidebar — stretch content to full width */
.pn-registration-page .pn-content-grid {
  grid-template-columns: 1fr;
}

/* --- Intro content ------------------------------------------- */
.pn-section { margin-bottom: 40px; }
.pn-section h2 { color: #022083; font-size: 24px; margin: 0 0 16px; }
.pn-section h3 { color: #116DA5; font-size: 18px; }
.pn-section p, .pn-intro-content p { font-size: 16px; line-height: 1.7; color: #333; }
.pn-section ul, .pn-intro-content ul { padding-left: 20px; }
.pn-section li, .pn-intro-content li { font-size: 16px; line-height: 1.8; color: #333; }
.pn-intro-content { margin-bottom: 40px; }

.pn-hero-intro { font-size: 17px; line-height: 1.7; color: #444; max-width: 740px; margin: 10px 0 0; }

/* --- Value proposition cards (2-col bubble grid) ------------- */
.pn-value-props {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
@media (max-width: 700px) {
  .pn-value-props { grid-template-columns: 1fr; }
}
.pn-value-prop {
  background: #fff;
  border: 1px solid #91DBE5;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(2, 32, 131, 0.06);
}
.pn-value-prop h3 {
  color: #022083;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
}
.pn-value-prop p {
  font-size: 14px;
  line-height: 1.65;
  color: #444;
  margin: 0;
}

/* --- Chip / tag list ----------------------------------------- */
.pn-chip-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pn-chip-list li {
  background: #fff;
  border: 1px solid #91DBE5;
  border-radius: 50px;
  padding: 20px 30px;
  font-size: 14px;
  color: #022083;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 2px 12px rgba(2, 32, 131, 0.06);
}

/* --- How it works — detailed steps list ---------------------- */
.pn-steps-detail {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  counter-reset: steps-detail;
}
.pn-steps-detail > li {
  counter-increment: steps-detail;
  position: relative;
  padding: 20px 24px 20px 64px;
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 10px;
  margin-bottom: 12px;
}
.pn-steps-detail > li::before {
  content: counter(steps-detail);
  position: absolute;
  box-shadow: 0 2px 12px rgba(2, 32, 131, 0.06);
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: #022083;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pn-steps-detail > li > strong {
  display: block;
  color: #022083;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.pn-steps-detail > li > p {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* --- CTA section --------------------------------------------- */
.pn-section--cta {
  background: linear-gradient(135deg, #022083 0%, #116DA5 100%);
  border-radius: 12px;
  padding: 40px;
  margin: 8px 0 32px;
}
.pn-section--cta h2 { color: #fff !important; margin: 0 0 12px; }
.pn-section--cta p  { color: rgba(255,255,255,0.9) !important; font-size: 16px; margin: 0; }

/* --- Sidebar note text --------------------------------------- */
.pn-sidebar-note {
  font-size: 12px !important;
  color: #888 !important;
  font-style: italic;
  margin-top: 10px;
}

/* --- Status legend below the referrals table ----------------- */
.pn-status-legend {
  
  border: 1px solid #e8eaf0;
  border-top: none;
  padding: 14px 20px 10px;
  margin-bottom: 40px;
}
.pn-status-legend-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 8px;
}
.pn-status-list--inline {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.pn-status-list--inline li {
  font-size: 12px;
  color: #555;
  padding: 0;
  border: none;
  margin:0;
  line-height: 1.6;
}

/* --- 2-column info grid after the referral form -------------- */
.pn-info-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 700px) {
  .pn-info-grid-2col { grid-template-columns: 1fr; }
}

/* --- Form card (wraps GF form) ------------------------------- */
.pn-form-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(2, 32, 131, 0.06);
}
.pn-form-card h2 { color: #022083; margin: 0 0 8px; }
.pn-form-card > p { color: #555; margin: 0 0 24px; }

/* --- Sidebar cards ------------------------------------------- */
.pn-sidebar-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(2, 32, 131, 0.06);
}
.pn-sidebar-card h3 {
  color: #022083;
  font-size: 16px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}
.pn-sidebar-card h4 { color: #116DA5; font-size: 14px; margin: 12px 0 6px; }
.pn-sidebar-card p  { font-size: 14px; line-height: 1.6; color: #444; margin: 0 0 10px; }
.pn-sidebar-card ul, .pn-sidebar-card ol { font-size: 14px; line-height: 1.8; color: #444; padding-left: 18px; margin: 0; }
.pn-sidebar-card--steps { border-left: 4px solid #022083; }
.pn-sidebar-card--fee   { background: linear-gradient(135deg, #022083 0%, #116DA5 100%); color: #fff; }
.pn-sidebar-card--fee h3 { color: #91DBE5; border-color: rgba(255,255,255,0.2); }
.pn-sidebar-card--fee h4 { color: rgba(255,255,255,0.75); }
.pn-sidebar-card--fee p  { color: rgba(255,255,255,0.9); }
.pn-sidebar-card--fee strong { color: #fff; }
.pn-sidebar-card--fee ul,
.pn-sidebar-card--fee ol { color: rgba(255,255,255,0.85); }
.pn-sidebar-card--fee li { color: rgba(255,255,255,0.85); }

.pn-steps { counter-reset: steps; list-style: none; padding: 0; margin: 0; }
.pn-steps li {
  counter-increment: steps;
  padding: 8px 0 8px 36px;
  position: relative;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
}
.pn-steps li:last-child { border: none; }
.pn-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  background: #022083;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pn-status-list { list-style: none; padding: 0; margin: 0; }
.pn-status-list li { font-size: 13px; padding: 6px 0; border-bottom: 1px solid #f5f5f5; color: #444; }
.pn-status-list li:last-child { border: none; }
.pn-status-note { font-size: 12px; color: #888; font-style: italic; margin:8px 0 0 0; }

/* --- Auth pages (login / password) --------------------------- */
.pn-auth-page {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
}
.pn-auth-card {
  background: #fff;
  border-radius: 12px;
  padding: 48px 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 4px 24px rgba(2, 32, 131, 0.08);
}
.pn-auth-card h1 {
  color: #022083;
  font-size: 26px;
  margin: 0 0 6px;
}
.pn-auth-sub {
  color: #777;
  font-size: 15px;
  margin: 0 0 28px;
}

/* --- Form elements ------------------------------------------- */
.pn-field-group {
  margin-bottom: 20px;
}
.pn-field-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #022083;
  margin-bottom: 6px;
  padding-left: 4px;
}
.pn-field-group input[type="email"],
.pn-field-group input[type="password"],
.pn-field-group input[type="text"] {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid #dde2ef;
  border-radius: 50px;
  font-size: 15px;
  color: #333;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.pn-field-group input:focus {
  border-color: #022083;
  box-shadow: 0 0 0 3px rgba(2, 32, 131, 0.08);
}
.pn-field-remember {
  margin-bottom: 24px;
  font-size: 14px;
  color: #555;
}
.pn-field-remember input[type="checkbox"] {
  display: inline !important;
  width: auto;
  margin-right: 6px;
  vertical-align: middle;
}

/* --- Buttons ------------------------------------------------- */
.pn-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
}
.pn-btn-primary {
  background: #022083;
  color: #fff;
}
.pn-btn-primary:hover { background: #116DA5; color: #fff; }
.pn-btn-full { width: 100%; text-align: center; }
.pn-btn:active { transform: scale(0.98); }

/* --- Auth links --------------------------------------------- */
.pn-auth-links {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #666;
}
.pn-auth-links a { color: #116DA5; text-decoration: none; }
.pn-auth-links a:hover { text-decoration: underline; }
.pn-auth-register { margin-top: 8px; padding-top: 16px; border-top: 1px solid #f0f0f0; }

/* --- Notice / error boxes ------------------------------------ */
.pn-form-error {
  background: #fff0f0;
  border-left: 4px solid #ED1C24;
  color: #c0392b;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 20px;
}
.pn-form-success {
  background: #f0fff8;
  border-left: 4px solid #2EE0BE;
  color: #1a7a5e;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 20px;
}

/* --- Portal footer ------------------------------------------- */
.pn-portal-footer {
  background: #022083;
  color: rgba(255,255,255,0.7);
  padding: 20px 40px;
  font-size: 12px;
}
.pn-portal-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pn-portal-footer p { margin: 0; }
.pn-portal-footer a { color: #91DBE5; text-decoration: none; }
.pn-portal-footer a:hover { text-decoration: underline; color: #91DBE5; }

/* --- Password form ------------------------------------------- */
.pn-pw-form { margin-top: 12px; }

/* --- GF form overrides on portal pages ----------------------- */
.pn-portal .gform_wrapper,
.pn-form-card .gform_wrapper {
  margin: 0;
}
.pn-portal .gform_body .gfield_label,
.pn-form-card .gfield_label {
  font-size: 12px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #022083;
  padding: 0 0 6px 4px !important;
}
.pn-portal .gform_body input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.pn-portal .gform_body select,
.pn-portal .gform_body textarea,
.pn-form-card input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.pn-form-card select,
.pn-form-card textarea {
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid #dde2ef !important;
  background: #fff !important;
  box-sizing: border-box !important;
}
/* Force GF field containers and size modifier classes to full width */
.pn-portal .gfield,
.pn-portal .ginput_container,
.pn-portal .ginput_container_text,
.pn-portal .ginput_container_email,
.pn-portal .ginput_container_phone,
.pn-portal .ginput_container_select,
.pn-portal .ginput_container_textarea,
.pn-portal .ginput_container_website,
.pn-form-card .ginput_container,
.pn-form-card .ginput_container_text,
.pn-form-card .ginput_container_email,
.pn-form-card .ginput_container_phone,
.pn-form-card .ginput_container_select,
.pn-form-card .ginput_container_textarea,
.pn-form-card .ginput_container_website {
  width: 100% !important;
  max-width: 100% !important;
}
/* GF uses .small / .medium on the field li — override */
.pn-portal .gform_body .gfield input.small,
.pn-portal .gform_body .gfield input.medium,
.pn-portal .gform_body .gfield input.large,
.pn-portal .gform_body .gfield select.small,
.pn-portal .gform_body .gfield select.medium,
.pn-portal .gform_body .gfield select.large,
.pn-form-card .gfield input.small,
.pn-form-card .gfield input.medium,
.pn-form-card .gfield input.large,
.pn-form-card .gfield select.small,
.pn-form-card .gfield select.medium,
.pn-form-card .gfield select.large {
  width: 100% !important;
}
.pn-portal .gform_body input:focus,
.pn-form-card input:focus {
  border-color: #022083 !important;
  box-shadow: 0 0 0 3px rgba(2, 32, 131, 0.08) !important;
}
.pn-portal .gform_footer input[type="submit"],
.pn-form-card .gform_footer input[type="submit"] {
  background: #022083 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 14px 40px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}
.pn-portal .gform_footer input[type="submit"]:hover,
.pn-form-card .gform_footer input[type="submit"]:hover {
  background: #116DA5 !important;
}

/* --- Admin: status badges ------------------------------------ */
.pn-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}
.pn-badge-pending  { background: #fff3cd; color: #856404; }
.pn-badge-approved { background: #d1fae5; color: #065f46; }
.pn-badge-rejected { background: #fee2e2; color: #991b1b; }

/* --- Admin wrap ---------------------------------------------- */
.pn-admin-wrap { max-width: 1100px; }
.pn-admin-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .pn-admin-grid { grid-template-columns: 1fr; }
}
.pn-admin-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
}
.pn-admin-card h2 { margin: 0 0 16px; font-size: 16px; color: #022083; }
.pn-status-ok     { color: #065f46; font-weight: 600; }
.pn-status-missing { color: #991b1b; font-weight: 600; }

/* Referral status select */
.pn-status-select {
  min-width: 160px;
  border: 1px solid #dde2ef;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 13px;
}
.pn-approve-link { color: #065f46 !important; font-weight: 600; }

/* --- My Referrals table on partner portal -------------------- */
.pn-my-referrals {
  margin-bottom: 40px;
}
.pn-my-referrals h2 {
  color: #022083;
  font-size: 22px;
  margin: 0 0 16px;
}
.pn-referrals-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(2, 32, 131, 0.06);
}
.pn-referrals-table th {
  background: #022083;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  text-align: left;
}
.pn-referrals-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.pn-referrals-table tr:last-child td { border-bottom: none; }
.pn-referrals-table tbody tr:hover   { background: #f8f9fc; }
@media (max-width: 700px) {
  .pn-referrals-table thead { display: none; }
  .pn-referrals-table td    { display: block; padding: 6px 16px; }
  .pn-referrals-table tr    { border-bottom: 1px solid #f0f0f0; }
}

/* --- Responsive tweaks --------------------------------------- */
@media (max-width: 600px) {
  .pn-portal-subnav { padding: 8px 16px; }
  .pn-auth-card { padding: 32px 24px; }
  .pn-form-card { padding: 24px 20px; }
  .pn-page-container { padding: 32px 16px 48px; }
  .pn-portal-footer { padding: 16px 20px; }
  .pn-portal-footer-inner { flex-direction: column; text-align: center; }
  .pn-portal-subnav-inner { justify-content: center; gap: 16px; }
}
