/*
Theme Name: Twenty Twenty-One Child
Template: twentytwentyone
Version: 1.0.0
Text Domain: twentytwentyone-child
*/

/* Custom CSS */

:root {
  --brand: #009aa8;
  --brand-dark: #007f8b;
  --brand-light: #cbe9ed;
  --brand-soft: #a6dce2;
  --accent: #2dd4bf;
  --grad-start: #0d9488;
  --grad-end: #14b8a6;
  --ink: #0f1b2d;
  --ink-2: #1e293b;
  --muted: #6b7280;
  --cream: #fffcf7;
  --event-bg: #fff6f7;
  --event-date: #8b1414;
  --herobg: #0c4048;
  --radius: 12px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", var(--font-body);
}
button.carousel-control-prev,
button.carousel-control-next{
  background-color: transparent !important;
  cursor: pointer;
}
table td, table th, .wp-block-table td, .wp-block-table th{
  border-top:unset !important;
  border-left:unset !important;
  border-right:unset !important;
}
button.carousel-control-prev:hover span.carousel-arrow,
button.carousel-control-next:hover span.carousel-arrow{
  background-color: var(--brand);
}
header.entry-header.alignwide {
    display: none;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: #fff; }
section[id] { scroll-margin-top: 110px; }
.text-primary-brand { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn-brand {
  --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark);
  font-weight: 500; padding: .55rem 1.6rem; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-brand:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,154,168,.3); }
.btn-brand-soft {
  background: var(--brand-soft); color: var(--ink); font-weight: 500;
  padding: .7rem 2.6rem; border: 0; transition: all .2s;
}
.btn-brand-soft:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.btn-gradient {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end)); color: #fff; border: 0;
  font-weight: 600; padding: .8rem 2.1rem; box-shadow: 0 10px 24px rgba(20,184,166,.25); transition: all .2s;
}
.btn-gradient:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(20,184,166,.35); }

/* ---------- Header ---------- */
.site-header {
  background: #fff !important;
  transition: box-shadow .2s ease;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-left: auto;
  margin-right: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.site-header.scrolled { box-shadow: 0 4px 16px rgba(15,27,45,.06); }
/* Header size stays the same while scrolling (only the shadow changes).
   Changing height/padding on scroll shifts the page and makes the header flicker. */
.navbar { padding: .8rem 1rem !important; background: transparent !important; min-height: 72px; }
.brand-logo {
  width: 64px; height: 64px; border-radius: 50%;;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-weight: 600; font-size: 1rem; color: var(--ink);
}
.brand-logo img.custom-logo {
  width: 100%; height: 100%; object-fit: contain; border-radius: 50%;
  display: block;
}
.brand-logo.sm { width: 48px; height: 48px; font-size: .9rem; }
.brand-text { font-weight: 600; font-size: 1.1rem; line-height: 1.25; color: var(--ink); white-space: normal; }
.navbar .nav-link { color: var(--ink); font-size: 1rem; position: relative; padding: .4rem 0 !important; }
.navbar .nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--brand); transition: width .2s ease;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--brand); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { width: 100%; }
.navbar .btn-brand { font-size: .95rem; padding: .5rem 2rem; }

/* Become a Member CTA: keep pill-button look, do not inherit nav-link underline/padding */
.navbar .nav-link.btn-brand {
  position: static;
  padding: .5rem 2rem !important;
  color: #fff !important;
  background-color: var(--brand);
}
.navbar .nav-link.btn-brand::after { display: none !important; }
.navbar .nav-link.btn-brand:hover,
.navbar .nav-link.btn-brand:focus,
.navbar .nav-link.btn-brand.active { color: #fff !important; }
.navbar .nav-link.btn-brand.active { font-weight: 500 !important; }

/* ---------- Hero ---------- */
/* .hero-section { padding: 1.5rem 0 4rem; background: #0c4048; box-shadow: 0 20px 40px -30px rgba(0,0,0,.12); } */

.hero-section { padding: 1.5rem 0 4rem; background: var(--herobg); box-shadow: 0 20px 40px -30px rgba(0,0,0,.12); }
.hero-card {
  background: var(--brand-light); border-radius: var(--radius); padding: 3.5rem 3rem;
  min-height: 460px; position: relative; overflow: hidden;
}
.hero-card::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  right: -90px; bottom: -110px; background: rgba(0,154,168,.12);
}
.hero-badge {
  display: inline-flex; align-items: center; align-self: flex-start; background: rgba(255,255,255,.6);
  color: var(--brand-dark); font-weight: 600; font-size: .85rem; padding: .35rem .9rem; border-radius: 50rem;
}
.hero-title { font-size: clamp(1.7rem, 2.4vw, 2.1rem); font-weight: 500; line-height: 1.22; margin-bottom: 1.6rem; }
.hero-subtitle { font-size: 1.4rem; margin-bottom: 3rem; }
.hero-media { background: var(--brand-light); border-radius: var(--radius); overflow: hidden; min-height: 460px; }
.hero-poster { display: block; height: 100%; max-height: 520px; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
#heroCarousel, #heroCarousel .carousel-inner { min-height: 460px; }
.hero-slide-info {
  height: 100%; min-height: 460px; display: flex; flex-direction: column; justify-content: center;
  padding: 3rem 4.5rem; color: #fff; background: linear-gradient(135deg, #007f8b, #14b8a6);
}
.hero-slide-info.alt { background: linear-gradient(135deg, #0f766e, #0e7490); }
.hero-slide-info h3 { font-family: var(--font-head); font-weight: 700; font-size: 2rem; margin-bottom: 1rem; }
.slide-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; opacity: .85; margin-bottom: .6rem; }
.carousel-control-prev, .carousel-control-next { width: 3.5rem; opacity: 1; }
.carousel-arrow {
  width: 38px; height: 64px; border-radius: 8px; background: rgba(15,60,70,.55); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: background .2s;
}
.carousel-control-prev:hover .carousel-arrow, .carousel-control-next:hover .carousel-arrow { background: var(--brand); }
.carousel-indicators [data-bs-target] {
  width: 14px; height: 14px; border-radius: 50%; border: 0; background: #e36b6b; opacity: .55; margin: 0 6px;
}
.carousel-indicators .active { opacity: 1; }

/* ---------- Messages ---------- */
.messages-section { padding: 4rem 0 2rem; }
.message-block { background: var(--cream); border-radius: 16px; padding: 3.5rem 2.5rem; margin: 0 0 2.5rem; box-shadow: 0 10px 40px -25px rgba(0,0,0,.15); }
.portrait-frame {
  display: inline-block; overflow: hidden;
  box-shadow: 0 18px 30px -12px rgba(15,27,45,.25); max-width: 100%; transition: transform .3s;
}
.portrait-frame:hover { transform: translateY(-6px); }
.portrait-frame img { display: block; width: 100%; max-width: 360px; aspect-ratio: 4 / 5; object-fit: cover; }
.section-heading { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--ink-2); margin-bottom: .6rem; }
.heading-bar { display: block; width: 58px; height: 4px; border-radius: 4px; background: var(--accent); margin-bottom: 2rem; }
.person-name { font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; color: var(--ink-2); margin-bottom: .3rem; }
.person-role { color: var(--brand-dark); font-weight: 500; margin-bottom: 1.6rem; }
.message-text { color: var(--muted); font-size: 1.1rem; line-height: 1.75; margin-bottom: 2rem; }

/* ---------- Section titles ---------- */
.section-title { color: var(--brand); font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.6rem); margin-bottom: 2rem; }
.section-title.dark { color: #000; font-size: clamp(1.7rem, 2.6vw, 2rem); }

/* ---------- Events ---------- */
.events-section { padding: 3rem 0 4rem; }
.event-card {
  background: var(--event-bg); border: 1px solid var(--brand); border-radius: var(--radius);
  padding: 1.8rem 1.8rem 2.2rem; transition: transform .25s, box-shadow .25s;
}
.event-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -20px rgba(0,154,168,.45); }
.event-date { color: var(--event-date); font-weight: 600; font-size: 1.5rem; margin-bottom: .8rem; }
.event-title { color: #083c40; font-weight: 600; font-size: 1.45rem; line-height: 1.3; margin-bottom: 1.6rem; }
.event-meta li { display: flex; gap: .9rem; align-items: flex-start; font-size: .92rem; margin-bottom: .9rem; }
.event-meta i { color: var(--brand); font-size: 1.4rem; line-height: 1; }
.event-card .btn-brand { margin-top: .8rem; font-size: 1.1rem; font-weight: 400; }

/* ---------- CTA ---------- */
.cta-section { padding: 3rem 0 4.5rem; }
.cta-card {
  background: var(--brand); border-radius: 18px; color: #fff; padding: 9rem 2rem;
  position: relative; overflow: hidden; isolation: isolate;
}
.cta-card::before, .cta-card::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); z-index: -1;
}
.cta-card::before { width: 380px; height: 380px; left: -120px; top: -160px; }
.cta-card::after { width: 300px; height: 300px; right: -80px; bottom: -140px; }
.cta-title { font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.6rem); margin-bottom: 1.6rem; }
.cta-text { max-width: 650px; margin: 0 auto 2.4rem; font-size: 1.1rem; line-height: 1.4; }
.btn-cta { padding: .6rem 5rem; font-size: 1.1rem; border-width: 1px; }
.btn-cta:hover { color: var(--brand); }

/* ---------- Directory ---------- */
.directory-section { padding: 2rem 0 5rem; }
.directory-wrap { background: var(--cream); border-radius: 14px; padding: 2.5rem 3rem; }
.directory-count { color: var(--muted); font-size: .95rem; }
.directory-search { position: relative; min-width: 280px; }
.directory-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.directory-search .form-control { padding-left: 2.6rem; border-radius: 50rem; border-color: #eee6d8; background: #fff; }
.directory-search .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(0,154,168,.15); }
.directory-table-wrap { background: #fff; border: 1px solid #f3ede2; border-radius: 12px; }
.directory-table { --bs-table-bg: transparent; min-width: 900px; }
.directory-table thead th {
  background: var(--cream); font-weight: 600; font-size: .92rem; color: var(--ink-2);
  padding: 1.1rem 1.2rem; border-bottom: 1px solid #f3ede2; vertical-align: middle;
}
.directory-table td { padding: 1.1rem 1.2rem; color: var(--muted); font-size: .95rem; border-color: #f6f1e8; }
.directory-table tbody tr { transition: background .2s; }
.directory-table tbody tr:hover { background: #f4fbfb; }
.directory-table td.mem-no { color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.member { display: flex; align-items: center; gap: .9rem; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--grad-end), var(--grad-start)); color: #fff; font-weight: 600; font-size: .85rem;
  box-shadow: 0 4px 10px rgba(13,148,136,.25);
}
.m-name { color: var(--ink-2); font-weight: 500; margin: 0; }
.m-phone { margin: 0; font-size: .82rem; }
.m-email { color: var(--brand-dark); font-size: .82rem; text-decoration: none; }
.m-email:hover { text-decoration: underline; }
.directory-pagination { background: var(--cream); border-radius: 12px; padding: 1.6rem 1rem; max-width: 960px; margin: 2rem auto 0; }
.directory-pagination .page-link {
  border: 0; background: transparent; color: var(--muted); font-size: 1.05rem;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  border-radius: 50% !important; margin: 0 .25rem; transition: all .2s;
}
.directory-pagination .page-link:hover { background: var(--brand-light); color: var(--brand-dark); }
.directory-pagination .page-item.active .page-link { background: var(--grad-start); color: #fff; font-weight: 600; box-shadow: 0 6px 14px rgba(13,148,136,.35); }
.directory-pagination .page-link:focus { box-shadow: none; }

/* ---------- Footer ---------- */
.site-footer { background: #0b3b40; color: rgba(255,255,255,.8); padding: 3rem 0 1.5rem; }
.footer-brand { color: #fff; font-weight: 600; line-height: 1.35; }
.footer-links a { color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.site-footer hr { border-color: rgba(255,255,255,.15); margin: 2rem 0 1.2rem; opacity: 1; }
.copyright { font-size: .9rem; }

.back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,154,168,.4); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s; z-index: 1030; text-decoration: none;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: #fff; background: var(--brand-dark); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; top: -10000px; left: 0; z-index: 9999;
  background: var(--brand); color: #fff; padding: .6rem 1rem;
  border-radius: 4px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: .5rem; left: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0b3b40; color: rgba(255,255,255,.85); padding: 4rem 0 1.5rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.footer-brand { color: #fff; font-weight: 600; line-height: 1.35; }
.footer-description { font-size: .95rem; line-height: 1.6; margin-bottom: 1rem; opacity: .9; }
.footer-title { color: #fff; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .55rem; }
.site-footer .footer-links a {
  display: inline-block;
  transition: color .2s, transform .2s;
}

.site-footer .footer-links a:hover {
  padding-left: 0;
  transform: translateX(4px);
}
.footer-contact li { margin-bottom: .55rem; display: flex; align-items: flex-start; gap: .5rem; }
.footer-contact i { color: var(--accent); font-size: 1.1rem; line-height: 1; margin-top: .1rem; flex-shrink: 0; }
.footer-social { display: flex; gap: .8rem; }
.footer-social-link {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; text-decoration: none; transition: background .2s, transform .2s;
}
.footer-social-link:hover { background: var(--accent); color: #000; transform: translateY(-2px); }
.footer-social-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.site-footer hr { border-color: rgba(255,255,255,.15); margin: 2.5rem 0 1.5rem; opacity: 1; }
.copyright { font-size: .85rem; opacity: .7; }

/* ---------- Nav active/focus states ---------- */
.navbar .nav-link:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px;
}
.navbar .nav-link.active { font-weight: 600; color: var(--brand) !important; }
.navbar .nav-link.active::after { width: 100%; }


/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .brand-text { font-size: 1.1rem; }
  .navbar .nav-link { font-size: 1rem; }
  .navbar .btn-brand { padding: .55rem 1.6rem; font-size: .95rem; }
}
@media (max-width: 991.98px) {
  .brand-logo { width: 64px; height: 64px; font-size: 1.05rem; }
  .navbar { padding: .9rem 0; }
  .navbar-collapse { padding: 1rem 0 .5rem; }
  .navbar .nav-link::after { display: none; }
  .hero-card { padding: 2.5rem; min-height: auto; }
  .hero-subtitle { margin-bottom: 2rem; }
  .message-block { padding: 2.5rem 1.5rem; }
  .cta-card { padding: 5rem 1.5rem; }
  .directory-wrap { padding: 1.8rem 1.4rem; }
}
@media (max-width: 575.98px) {
  .brand-text { font-size: .95rem; }
  .brand-logo, .site-header.scrolled .brand-logo { width: 52px; height: 52px; font-size: .9rem; }
  .hero-card { padding: 2rem 1.5rem; }
  .hero-subtitle { font-size: 1.15rem; }
  .hero-media, #heroCarousel, #heroCarousel .carousel-inner, .hero-slide-info { min-height: 400px; }
  .hero-slide-info { padding: 2.5rem 3.5rem; }
  .hero-slide-info h3 { font-size: 1.5rem; }
  .btn-cta { padding: .6rem 2.5rem; }
  .directory-search { min-width: 0; }
  .directory-pagination .page-link { width: 36px; height: 36px; font-size: .95rem; margin: 0 .1rem; }
}
@media (max-width: 991.98px) {
  .site-footer .row > div { margin-bottom: 1.5rem; }
  .footer-links { justify-content: flex-start !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* Directory avatar: force the same small round size for photo and initials */
.directory-table .member .avatar,
.directory-table .member img.avatar,
.directory-table .member .wp-post-image {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center top;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0;
}
/* ======================================
   ASAS Registration — Multi-Step Form CSS
   ====================================== */

.asas-reg-form {
  --reg-primary: #349b8d;
  --reg-primary-dark: #287e73;
  --reg-border: #f2e6d8;
  --reg-text: #253047;
  --reg-muted: #817a75;

  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
  color: var(--reg-text);
  background: #fffdf9;
  font-family: inherit;
}

.asas-reg-form *,
.asas-reg-form *::before,
.asas-reg-form *::after {
  box-sizing: border-box;
}

/* Progress header */

.asas-reg-form .cf7-progress {
  position: relative;
  margin: 0 0 28px;
  padding: 0 0 8px;
}

.asas-reg-form .cf7-progress-steps {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.asas-reg-form .cf7-progress-steps li {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--reg-muted);
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
}

.asas-reg-form .cf7-progress-steps .n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fbf1df;
  color: #817a75;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
}

.asas-reg-form .cf7-progress-steps li.is-active,
.asas-reg-form .cf7-progress-steps li.is-done {
  color: var(--reg-primary-dark);
}

.asas-reg-form .cf7-progress-steps li.is-active .n,
.asas-reg-form .cf7-progress-steps li.is-done .n {
  background: var(--reg-primary);
  color: #fff;
}

.asas-reg-form .cf7-progress-bar {
  position: absolute;
  z-index: 1;
  top: 17px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: #f2e6d8;
}

.asas-reg-form .cf7-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--reg-primary);
  transition: width .25s ease;
}

/* Step panels */

.asas-reg-form fieldset.cf7-step {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 26px 24px;
  border: 1px solid #f4e9da;
  border-radius: 13px;
  background: #fff;
}

.asas-reg-form fieldset.cf7-step[hidden],
.asas-reg-form .cf7-nav [hidden],
.asas-reg-form .registration-submit[hidden] {
  display: none !important;
}

.asas-reg-form fieldset.cf7-step > legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.asas-reg-form .form-description {
  margin: 0 0 22px;
  color: var(--reg-muted);
  font-size: 14px;
  line-height: 1.6;
}
/* .asas-reg-form .form-field label > span  */
.asas-reg-form .required-star
{
  color: #ed554e;
}

.asas-reg-form .form-field label small {
  color: var(--reg-muted);
  font-size: 10px;
  font-weight: 400;
}

/* Field grid */

.asas-reg-form .registration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.asas-reg-form .form-field {
  min-width: 0;
  margin: 0;
}

.asas-reg-form .form-field > p {
  margin: 0;
}

.asas-reg-form .form-field.full-width {
  grid-column: 1 / -1;
}

.asas-reg-form .form-field > label {
  display: block;
  margin: 0 0 7px;
  color: var(--reg-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.asas-reg-form .form-field .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Text, date, email, tel, select and textarea */

.asas-reg-form .form-field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.asas-reg-form .form-field select,
.asas-reg-form .form-field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--reg-border);
  border-radius: 7px;
  background: #fff;
  color: var(--reg-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: none;
}

.asas-reg-form .form-field input::placeholder,
.asas-reg-form .form-field textarea::placeholder {
  color: #aaa29d;
  opacity: 1;
}

.asas-reg-form .form-field input:focus,
.asas-reg-form .form-field select:focus,
.asas-reg-form .form-field textarea:focus {
  outline: none;
  border-color: var(--reg-primary);
  box-shadow: 0 0 0 2px rgb(52 155 141 / 12%);
}

/* Radio controls */
.asas-reg-form .form-field input[type="radio"] {
    -webkit-appearance: radio !important;
    appearance: auto !important;

    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: initial !important;
    border-radius: 50% !important;
    background: initial !important;
    box-shadow: none !important;

    accent-color: #349b8d;
    flex-shrink: 0;
    cursor: pointer;
}
.asas-reg-form .form-field .wpcf7-radio {
     display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

@supports (-webkit-appearance: none) or (-moz-appearance: none) {
    input[type=radio]:after {
        content: "";
        opacity: 0;
        display: block;
        left: 2px;
        top: 2px;
        position: absolute;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--brand);
    }
}

/* .asas-reg-form .form-field .wpcf7-list-item {
  flex: 1;
  margin: 0;
} */

.asas-reg-form .form-field .wpcf7-list-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
      gap: 5px;
}

.asas-reg-form .form-field .wpcf7-list-item input[type="radio"] {
  margin: 0;
  accent-color: #349b8d;
}

/* File upload */

.asas-reg-form .form-field input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  color: var(--reg-muted);
  font-family: inherit;
  font-size: 11px;
}

.asas-reg-form .form-field input[type="file"]::file-selector-button {
  margin-right: 9px;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: #effbf8;
  color: var(--reg-primary-dark);
  font-size: 11px;
  cursor: pointer;
}

/* Navigation and submit */

.asas-reg-form .cf7-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--reg-border);
}

.asas-reg-form .cf7-nav button,
.asas-reg-form .cf7-nav input[type="submit"] {
  min-height: 40px;
  margin: 0;
  padding: 10px 20px;
  border: 0;
  border-radius: 7px;
  background: var(--reg-primary);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background .2s ease;
}

.asas-reg-form .cf7-nav button:hover,
.asas-reg-form .cf7-nav input[type="submit"]:hover {
  background: var(--reg-primary-dark);
  color: #fff;
}

.asas-reg-form .cf7-nav .cf7-prev {
  margin-right: auto;
  border: 1px solid var(--reg-border);
  background: #fff;
  color: var(--reg-text);
}

.asas-reg-form .cf7-nav .cf7-prev:hover {
  background: #f8f5f0;
  color: var(--reg-text);
}

.asas-reg-form .registration-submit {
  margin: 0;
  padding: 0;
  border: 0;
}

.asas-reg-form .registration-submit p {
  margin: 0;
}

/* Validation messages */

.asas-reg-form .wpcf7-not-valid {
  border-color: #dc5555 !important;
}

.asas-reg-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 5px;
  color: #c83f3f;
  font-size: 11px;
  line-height: 1.5;
}

.asas-reg-form .wpcf7 form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 12px;
  border-radius: 7px;
  font-size: 14px;
}

/* Mobile */

@media (max-width: 600px) {
  .asas-reg-form {
    padding: 12px;
  }

  .asas-reg-form fieldset.cf7-step {
    padding: 20px 14px;
  }

  .asas-reg-form .registration-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .asas-reg-form .form-field.full-width {
    grid-column: auto;
  }

  .asas-reg-form .cf7-progress-steps {
    gap: 5px;
  }

  .asas-reg-form .cf7-progress-steps li {
    font-size: 10px;
  }

  .asas-reg-form .cf7-progress-steps .n {
    width: 32px;
    height: 32px;
  }

  .asas-reg-form .cf7-progress-bar {
    top: 15px;
    left: 18%;
    right: 18%;
  }

  .asas-reg-form .cf7-nav button,
  .asas-reg-form .cf7-nav input[type="submit"] {
    padding: 10px 14px;
  }
}


.asas-reg-form .address-section-title {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #f2e6d8;
  color: #253047;
  font-size: 13px;
  font-weight: 600;
}

.asas-reg-form .same-address-field .wpcf7-list-item {
  margin: 0;
}

.asas-reg-form .same-address-field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.asas-reg-form .same-address-field input[type="checkbox"] {
  accent-color: #349b8d;
}

.asas-reg-form .form-field textarea {
  min-height: 70px;
  resize: vertical;
}

/* ===== Post-graduation repeater ===== */

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

.asas-reg-form .pg-repeater {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

/* WordPress auto-paragraphs can inject <p> and <br>; neutralise them here */
.asas-reg-form .pg-repeater p { margin: 0; }
.asas-reg-form .pg-repeater br { display: none; }

.asas-reg-form .pg-item {
  width: 100%;
  padding: 16px 18px 18px;
  border: 1px solid var(--reg-border);
  border-radius: 10px;
  background: #fffaf1;
}

.asas-reg-form .pg-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.asas-reg-form .pg-item-head p { display: contents; }

.asas-reg-form .pg-item-title {
  color: var(--reg-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.asas-reg-form .pg-item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.asas-reg-form .pg-item .form-field label {
  display: block;
  margin: 0 0 7px;
  color: var(--reg-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

/* Buttons: written with extra specificity so the theme's dark button style does not win */

.asas-reg-form button.pg-add,
.asas-reg-form button.pg-remove {
  width: auto;
  margin: 0;
  box-shadow: none;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.asas-reg-form button.pg-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px dashed var(--reg-primary);
  border-radius: 7px;
  background: #f1faf8;
  color: var(--reg-primary-dark);
  font-size: 14px;
  line-height: 1.4;
}

.asas-reg-form button.pg-add::before {
  content: "+";
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.asas-reg-form button.pg-add:hover,
.asas-reg-form button.pg-add:focus-visible {
  border-style: solid;
  border-color: var(--reg-primary);
  background: var(--reg-primary);
  color: #fff;
  outline: none;
}

.asas-reg-form button.pg-remove {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 0;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #c83f3f;
  font-size: 11px;
  line-height: 1.4;
}

.asas-reg-form button.pg-remove::before {
  content: "\00d7";
  font-size: 14px;
  line-height: 1;
}

.asas-reg-form button.pg-remove:hover,
.asas-reg-form button.pg-remove:focus-visible {
  border-color: #f3cccc;
  background: #fdeeee;
  color: #b13232;
  outline: none;
}

@media (max-width: 720px) {
  .asas-reg-form .pg-item-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ======================================
   ASAS Registration — Step 4: Membership & Payment
   ====================================== */

/* Real CF7 radios stay in the form (so they are submitted) but are visually hidden */
.asas-reg-form .membership-radios {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.asas-reg-form .membership-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.asas-reg-form .membership-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px 20px;
  border: 1px solid var(--reg-border);
  border-radius: 12px;
  background: #fffdf9;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.asas-reg-form .membership-card:hover {
  border-color: var(--reg-primary);
}

.asas-reg-form .membership-card:focus-visible {
  outline: 2px solid var(--reg-primary);
  outline-offset: 2px;
}

.asas-reg-form .membership-card.is-selected {
  border: 2px solid #2dd4bf;
  padding: 17px 19px 19px;
  background: #effbf8;
  box-shadow: 0 6px 18px rgb(45 212 191 / 18%);
}

.asas-reg-form .membership-card .mc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fbf1df;
  color: #a8794a;
}

.asas-reg-form .membership-card.is-selected .mc-icon {
  background: var(--reg-primary);
  color: #fff;
}

.asas-reg-form .mc-title {
  color: var(--reg-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.asas-reg-form .mc-sub {
  margin-top: 2px;
  color: var(--reg-muted);
  font-size: 10px;
}

.asas-reg-form .mc-price {
  margin-top: 14px;
  color: var(--reg-muted);
  font-size: 14px;
}

.asas-reg-form .mc-price strong {
  color: var(--reg-text);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

/* Payment summary */

.asas-reg-form .payment-summary {
  padding: 18px 20px;
  border: 1px solid #99f0e0;
  border-radius: 12px;
  background: #effbf8;
}

.asas-reg-form .ps-title {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #cfe3df;
  color: var(--reg-text);
  font-size: 13px;
  font-weight: 600;
}

.asas-reg-form .ps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.asas-reg-form .ps-amount {
  color: var(--reg-primary-dark);
  font-size: 18px;
  font-weight: 700;
}

.asas-reg-form .ps-note {
  color: var(--reg-muted);
  font-size: 10px;
}

/* Agreements */

.asas-reg-form .agree-field .wpcf7-list-item {
  margin: 0;
}

.asas-reg-form .agree-field label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--reg-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  cursor: pointer;
}

.asas-reg-form .agree-field input[type="checkbox"] {
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: #349b8d;
}

.asas-reg-form .agree-field a {
  color: var(--reg-primary-dark);
  text-decoration: underline;
}

/* Submit button + login note */

.asas-reg-form .cf7-nav input[type="submit"] {
  min-width: 190px;
  background: linear-gradient(135deg, #349b8d, #4fb8a8);
}

.asas-reg-form .cf7-nav input[type="submit"]:disabled {
  opacity: .65;
  cursor: wait;
}

.asas-reg-form .reg-login-note {
  margin: 18px 0 0;
  color: var(--reg-muted);
  font-size: 14px;
  text-align: center;
}

.asas-reg-form .reg-login-note a {
  color: var(--reg-primary-dark);
  font-weight: 600;
  text-decoration: none;
}

/* Payment status notice (shown after a failed / cancelled payment) */

.asas-reg-form .pay-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #f3cccc;
  border-radius: 8px;
  background: #fdeeee;
  color: #b13232;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .asas-reg-form .membership-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
