/*
Theme Name: Feria 593 NJ
Theme URI: https://feria593nj.com/
Description: Tema oficial exclusivo para la Feria de Créditos para Tu Casa (Nueva Jersey a Ecuador 2026).
Author: Inqmatic
Author URI: https://inqmatic.com/
Version: 1.0.0
Text Domain: feria593nj
*/


:root{
  --marino:#0A2540; --real:#1C63B8; --oro:#F59E0B; --coral:#E11D48; --verde:#10B981; --alabastro:#F8FAFC; --body-light:#2B303A;
  --bg:#F8FAFC; --surface:#FFFFFF; --text:#0A2540; --muted:#475569; --line:#DCE3EC; --tint:#EAF1FA;
  --on-dark:#F8FAFC; --on-dark-muted:#B9C8DA;
  --head:"Montserrat", "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --body:"Inter"; --valuable:"Barlow Semi Condensed", "Montserrat", sans-serif, "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#061829; --surface:#0C2338; --text:#F1F5F9; --muted:#A9B9CB; --line:#1E3A56; --tint:#0F2C47;
    color-scheme: dark;
  }
}
*,*::before,*::after{box-sizing:inherit}
html{scroll-padding-top:calc(env(safe-area-inset-top,0px) + 90px);scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--body);font-size:1.0625rem;line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit}
h1,h2,h3,h4{font-family:var(--head);line-height:1.15;margin:0 0 .5em;letter-spacing:-.01em}
h2{font-size:clamp(1.75rem,3.5vw,2.5rem);font-weight:800}
h3{font-size:1.25rem;font-weight:700}
p{margin:0 0 1em;max-width:66ch}
:focus-visible{outline:3px solid var(--oro);outline-offset:3px;border-radius:4px}
.wrap{width:min(1160px,100% - 2.5rem);margin-inline:auto}
.skip{position:absolute;left:-999px;top:0;background:var(--oro);color:var(--marino);padding:.5rem 1rem;z-index:100}
.skip:focus{left:1rem;top:1rem}

/* Co-branding bar */
.alliance{background:#061829;color:var(--on-dark-muted);font-size:.85rem;padding:.45rem 0}
.alliance .wrap{display:flex;gap:.5rem;align-items:center;justify-content:center;flex-wrap:wrap;text-align:center}
.alliance strong{color:var(--on-dark);font-weight:600}

/* Header */
header.site{position:sticky;top:env(safe-area-inset-top,0px);z-index:50;background:var(--marino);color:var(--on-dark);border-bottom:1px solid rgba(255,255,255,.08)}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);background:var(--marino);z-index:60}
.nav{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:72px}
.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none}
.brand-mark{width:42px;height:42px;border-radius:12px;background:var(--oro);display:grid;place-items:center;flex:none}
.brand-mark svg{width:26px;height:26px}
.brand-text{font-family:var(--head);font-weight:800;font-size:.98rem;line-height:1.1}
.brand-text small{display:block;font-weight:600;color:var(--oro);font-size:.78rem;margin-top:2px}
.menu{display:flex;gap:.25rem;list-style:none;margin:0;padding:0}
.menu a{display:block;padding:.6rem .85rem;border-radius:999px;text-decoration:none;font-weight:500;font-size:.95rem;color:var(--on-dark-muted)}
.menu a:hover{color:var(--on-dark);background:rgba(255,255,255,.07)}
.menu a[aria-current="page"]{color:var(--on-dark);background:rgba(255,255,255,.12)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-family:var(--head);font-weight:700;font-size:1rem;border-radius:999px;padding:.9rem 1.6rem;text-decoration:none;border:2px solid transparent;cursor:pointer;transition:transform .15s ease, background .15s ease}
.btn:active{transform:translateY(1px)}
.btn-gold{background:var(--oro);color:var(--marino)}
.btn-gold:hover{background:#FBB12A}
.btn-ghost{border-color:rgba(255,255,255,.45);color:var(--on-dark);background:transparent}
.btn-ghost:hover{background:rgba(255,255,255,.08)}
.btn-line{border-color:var(--real);color:var(--real);background:transparent}
@media (prefers-color-scheme: dark){.btn-line{color:#8DB8EC;border-color:#8DB8EC}}
.nav .btn{padding:.65rem 1.2rem;font-size:.92rem}
.burger{display:none;background:none;border:0;color:var(--on-dark);padding:.5rem;cursor:pointer}
@media (max-width:920px){
  .burger{display:block}
  .menu{display:none;position:absolute;left:0;right:0;top:100%;background:var(--marino);flex-direction:column;padding:.5rem 1.25rem 1.25rem;border-bottom:1px solid rgba(255,255,255,.1)}
  .menu.open{display:flex}
  .menu a{border-radius:10px;padding:.85rem 1rem;font-size:1.05rem}
  .nav .btn-gold{display:none}
}

/* Pages */
.page{display:none}
.page.active{display:block}

/* Hero */
.hero{background:linear-gradient(160deg,var(--marino) 0%,#123A63 70%,var(--real) 130%);color:var(--on-dark);overflow:hidden}
.hero-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,2fr) minmax(0,.8fr);align-items:center;gap:2.5rem;padding:4.5rem 0 4rem}
.hero-photo{border-radius:20px;overflow:hidden;position:relative;aspect-ratio:3/4;box-shadow:0 20px 50px rgba(0,0,0,.35)}
.hero-photo img{width:100%;height:100%;object-fit:cover}
.hero-photo figcaption{position:absolute;left:.75rem;bottom:.75rem;background:rgba(10,37,64,.82);color:var(--on-dark);font-size:.82rem;font-weight:600;padding:.3rem .7rem;border-radius:999px}
.hero-photo.left{transform:translateY(1.5rem)}
.hero-photo.right{transform:translateY(-1.5rem)}
.hero-copy{text-align:center}
.hero h1{font-weight:800;text-transform:uppercase;font-size:clamp(2.2rem,5.4vw,4.1rem);letter-spacing:.01em;line-height:1.02;margin-bottom:.35em}
.hero .hook{font-family:var(--valuable),var(--head);font-style:italic;font-weight:600;color:var(--oro);font-size:clamp(1.25rem,2.4vw,1.7rem);letter-spacing:.02em;margin-bottom:1.4rem}
.pill{display:inline-flex;flex-wrap:wrap;justify-content:center;gap:.4rem 1rem;align-items:center;border:2px solid var(--on-dark);border-radius:999px;padding:.7rem 1.5rem;font-family:var(--head);font-weight:700;font-size:clamp(.95rem,1.8vw,1.15rem)}
.pill .sep{width:2px;height:1.1em;background:var(--oro)}
.hero .lead{margin:1.4rem auto 1.8rem;color:var(--on-dark-muted);font-size:1.12rem}
.hero .ctas{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:center}
.free-badge{display:inline-block;background:var(--verde);color:#062a1d;font-family:var(--head);font-weight:800;font-size:.85rem;padding:.3rem .8rem;border-radius:6px;margin-bottom:1rem}
.hero-place{margin-top:1.4rem;font-size:.95rem;color:var(--on-dark-muted)}
@media (max-width:920px){
  .hero-grid{grid-template-columns:1fr 1fr;padding:3rem 0}
  .hero-copy{grid-column:1/-1;order:-1}
  .hero-photo{aspect-ratio:4/3}
  .hero-photo.left,.hero-photo.right{transform:none}
}

/* Countdown strip */
.countdown{background:var(--oro);color:var(--marino)}
.countdown .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem 0}
.cd-label{font-family:var(--head);font-weight:700;font-size:1.05rem}
.cd{display:flex;gap:1.4rem}
.cd div{text-align:center;min-width:3.2rem}
.cd b{display:block;font-family:var(--head);font-weight:800;font-size:1.9rem;line-height:1;font-variant-numeric:tabular-nums}
.cd span{font-size:.8rem;font-weight:600}

/* Sections */
.sec{padding:5rem 0}
.sec-tint{background:var(--tint)}
.sec-head{max-width:720px;margin-bottom:2.5rem}
.sec-head p{color:var(--muted);font-size:1.1rem}
.page-hero{background:var(--marino);color:var(--on-dark);padding:3.5rem 0 3rem}
.page-hero h1{font-size:clamp(2rem,4.5vw,3.1rem);font-weight:800}
.page-hero p{color:var(--on-dark-muted);font-size:1.12rem}

/* Benefits */
.benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-top:4px solid var(--marino)}
@media (prefers-color-scheme: dark){.benefits{border-top-color:var(--oro)}}
.benefit{padding:2rem 2rem 2rem 0}
.benefit + .benefit{padding-left:2rem;border-left:1px solid var(--line)}
.benefit .ico{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;margin-bottom:1.1rem}
.benefit .ico svg{width:28px;height:28px}
.benefit p{color:var(--muted);margin:0}
@media (max-width:820px){.benefits{grid-template-columns:1fr}.benefit,.benefit+.benefit{padding:1.6rem 0;border-left:0;border-bottom:1px solid var(--line)}}

/* Aqui y alla */
.twin{display:grid;grid-template-columns:1fr 1fr;border-radius:24px;overflow:hidden;box-shadow:0 1px 0 var(--line)}
.twin > div{padding:2.6rem}
.twin .nj{background:var(--marino);color:var(--on-dark)}
.twin .ec{background:var(--real);color:var(--on-dark)}
.twin h3{font-size:1.5rem}
.twin .flagline{display:flex;gap:6px;margin-bottom:1rem}
.twin .flagline i{display:block;height:6px;width:36px;border-radius:3px}
.twin ul{list-style:none;padding:0;margin:1rem 0 0}
.twin li{display:flex;gap:.7rem;padding:.55rem 0;border-top:1px solid rgba(255,255,255,.15)}
.twin li svg{flex:none;width:22px;height:22px;margin-top:2px}
@media (max-width:820px){.twin{grid-template-columns:1fr}.twin>div{padding:2rem}}

/* Sponsor placeholder */
.presented{display:flex;flex-wrap:wrap;align-items:center;gap:1.2rem 2rem}
.presented .lbl{font-family:var(--head);font-weight:700;color:var(--muted)}
.logo-slot{height:64px;min-width:170px;border:2px dashed var(--line);border-radius:12px;display:grid;place-items:center;color:var(--muted);font-size:.85rem;padding:0 1rem}
.njfcu-slot{border-style:solid;border-color:var(--real);color:var(--text);font-weight:600}

/* CTA band */
.cta-band{background:var(--marino);color:var(--on-dark);border-radius:28px;padding:3rem;display:grid;grid-template-columns:1.4fr 1fr;gap:2rem;align-items:center}
.cta-band p{color:var(--on-dark-muted)}
.cta-band .notice{display:flex;gap:.6rem;align-items:flex-start;background:rgba(225,29,72,.14);border:1px solid rgba(225,29,72,.5);color:#FFD5DE;border-radius:14px;padding:1rem 1.1rem;font-size:.95rem}
.cta-band .notice svg{flex:none;width:22px;height:22px;color:#FF6B8A}
@media (max-width:820px){.cta-band{grid-template-columns:1fr;padding:2rem}}

/* Program timeline */
.lanes-key{display:flex;flex-wrap:wrap;gap:1.2rem;margin-bottom:1.8rem;font-size:.95rem}
.lanes-key span{display:inline-flex;align-items:center;gap:.5rem}
.lanes-key i{width:14px;height:14px;border-radius:4px;display:inline-block}
.timeline{list-style:none;margin:0;padding:0;border-left:3px solid var(--line);margin-left:.6rem}
.timeline li{position:relative;padding:0 0 2.2rem 2rem}
.timeline li::before{content:"";position:absolute;left:-10px;top:.35rem;width:17px;height:17px;border-radius:50%;background:var(--surface);border:4px solid var(--real)}
.timeline li.aud::before{border-color:var(--coral)}
.timeline li.hl::before{border-color:var(--oro)}
.timeline time{font-family:var(--head);font-weight:800;font-size:1.05rem;display:block;margin-bottom:.15rem}
.timeline .zone{font-size:.85rem;font-weight:600;color:var(--real)}
.timeline li.aud .zone{color:var(--coral)}
@media (prefers-color-scheme: dark){.timeline .zone{color:#8DB8EC}.timeline li.aud .zone{color:#FF6B8A}}
.timeline h3{margin:.2rem 0 .3rem;font-size:1.15rem}
.timeline p{color:var(--muted);margin:0}
.prog-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:3rem;align-items:start}
.zone-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:1.6rem;margin-bottom:1.2rem}
.zone-card .hrs{display:inline-block;font-family:var(--head);font-weight:700;font-size:.9rem;border-radius:999px;padding:.25rem .8rem;margin-bottom:.8rem}
.zone-card p{color:var(--muted);margin:0}
@media (max-width:860px){.prog-grid{grid-template-columns:1fr}}

/* Talks */
.talks{display:grid;gap:1.4rem}
.talk{display:grid;grid-template-columns:150px 1fr auto;gap:1.8rem;align-items:start;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:1.8rem;border-left:6px solid var(--real)}
.talk:nth-child(2n){border-left-color:var(--verde)}
.talk .when{font-family:var(--head)}
.talk .when b{display:block;font-size:1.6rem;font-weight:800;line-height:1}
.talk .when span{font-size:.9rem;color:var(--muted)}
.talk .where{display:inline-block;margin-top:.6rem;font-size:.8rem;font-weight:600;background:var(--tint);padding:.2rem .6rem;border-radius:6px}
.talk h3{font-size:1.3rem}
.talk p{color:var(--muted);margin-bottom:.7rem}
.tags{display:flex;flex-wrap:wrap;gap:.4rem;list-style:none;padding:0;margin:0}
.tags li{font-size:.82rem;border:1px solid var(--line);padding:.2rem .65rem;border-radius:999px}
.talk .who{font-size:.9rem;color:var(--muted);max-width:180px}
.talk .who strong{display:block;color:var(--text);font-family:var(--head);font-size:.9rem}
@media (max-width:820px){.talk{grid-template-columns:1fr;gap:.8rem}.talk .who{max-width:none}}

/* Forms */
.form-layout{display:grid;grid-template-columns:1.35fr 1fr;gap:3rem;align-items:start}
@media (max-width:900px){.form-layout{grid-template-columns:1fr}}
form.card{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2.2rem}
.row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
@media (max-width:560px){.row{grid-template-columns:1fr}form.card{padding:1.4rem}}
.field{margin-bottom:1.15rem}
label,.legend{display:block;font-weight:600;font-size:.95rem;margin-bottom:.4rem}
.opt{font-weight:400;color:var(--muted);font-size:.85rem}
input[type=text],input[type=email],input[type=tel],select,textarea{width:100%;font:inherit;font-size:1rem;color:var(--text);background:var(--bg);border:1.5px solid var(--line);border-radius:12px;padding:.8rem .95rem}
input:focus,select:focus,textarea:focus{border-color:var(--real);outline:3px solid rgba(29,99,184,.25);outline-offset:0}
textarea{min-height:140px;resize:vertical}
fieldset{border:0;padding:0;margin:0 0 1.15rem}
.checks{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
@media (max-width:560px){.checks{grid-template-columns:1fr}}
.check{display:flex;gap:.65rem;align-items:flex-start;border:1.5px solid var(--line);border-radius:12px;padding:.75rem .9rem;cursor:pointer;font-weight:500;font-size:.95rem;margin:0}
.check:has(input:checked){border-color:var(--verde);background:rgba(16,185,129,.08)}
.check input{accent-color:var(--verde);width:18px;height:18px;margin-top:2px;flex:none}
.consent{display:flex;gap:.6rem;font-size:.9rem;color:var(--muted);font-weight:400}
.consent input{accent-color:var(--real);width:18px;height:18px;flex:none;margin-top:3px}
.err{color:var(--coral);font-size:.85rem;margin-top:.3rem;display:none}
.invalid .err{display:block}
.invalid input,.invalid select{border-color:var(--coral)}
form .btn{width:100%;margin-top:.5rem;font-size:1.05rem;padding:1rem}
.side h3{margin-top:0}
.side .facts{list-style:none;padding:0;margin:0 0 1.8rem}
.side .facts li{display:flex;gap:.8rem;padding:.9rem 0;border-bottom:1px solid var(--line)}
.side .facts svg{flex:none;width:24px;height:24px;color:var(--real)}
@media (prefers-color-scheme: dark){.side .facts svg{color:#8DB8EC}}
.side .facts b{display:block}
.side .facts span{color:var(--muted);font-size:.95rem}

/* Success */
.success{display:none;background:var(--surface);border:2px solid var(--verde);border-radius:24px;padding:2.4rem;text-align:center}
.success.show{display:block}
.success .check-big{width:72px;height:72px;border-radius:50%;background:var(--verde);display:grid;place-items:center;margin:0 auto 1.2rem}
.success .check-big svg{width:38px;height:38px;color:#fff}
.ticket{margin:1.6rem auto;max-width:420px;border-radius:18px;background:var(--marino);color:var(--on-dark);padding:1.4rem;text-align:left;position:relative}
.ticket .code{font-family:var(--head);font-weight:800;font-size:1.5rem;color:var(--oro);letter-spacing:.06em}
.ticket small{color:var(--on-dark-muted);display:block}
.success .actions{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:center}
.btn-wa{background:#1FAF5A;color:#fff}

/* Contact */
.contact-ways{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:3rem}
.way{display:flex;gap:1rem;align-items:center;padding:1.3rem;border-radius:18px;background:var(--surface);border:1px solid var(--line);text-decoration:none}
.way:hover{border-color:var(--real)}
.way .ico{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;flex:none}
.way .ico svg{width:24px;height:24px}
.way b{display:block;font-family:var(--head)}
.way span{color:var(--muted);font-size:.92rem}
@media (max-width:820px){.contact-ways{grid-template-columns:1fr}}
.map{border-radius:20px;overflow:hidden;border:1px solid var(--line);aspect-ratio:4/3;background:var(--tint)}
.map iframe{width:100%;height:100%;border:0;display:block}
.faq details{border-bottom:1px solid var(--line);padding:1.1rem 0}
.faq summary{font-family:var(--head);font-weight:700;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:1rem}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:1.4rem;line-height:1;color:var(--real)}
.faq details[open] summary::after{content:"–"}
.faq details p{color:var(--muted);margin:.7rem 0 0}

/* Footer */
footer{background:#061829;color:var(--on-dark-muted);padding:3.5rem 0 2rem;margin-top:0}
.foot{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2rem}
footer h4{color:var(--on-dark);font-size:1rem}
footer ul{list-style:none;padding:0;margin:0}
footer li{margin-bottom:.4rem}
footer a{text-decoration:none}
footer a:hover{color:var(--on-dark);text-decoration:underline}
.foot-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:2.5rem;padding-top:1.5rem;font-size:.85rem}
@media (max-width:820px){.foot{grid-template-columns:1fr}}

/* Mobile sticky CTA */
.sticky-cta{display:none}
@media (max-width:920px){
  .sticky-cta{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:40;background:var(--marino);padding:.75rem 1rem calc(.75rem + env(safe-area-inset-bottom,0px));gap:.8rem;align-items:center;border-top:1px solid rgba(255,255,255,.1)}
  .sticky-cta .t{color:var(--on-dark);font-size:.85rem;line-height:1.3;flex:1}
  .sticky-cta .t b{color:var(--oro)}
  .sticky-cta .btn{padding:.7rem 1.1rem;font-size:.92rem}
  body.on-registro .sticky-cta{display:none}
  footer{padding-bottom:6rem}
}

/* Single orchestrated entrance on hero only */
@media (prefers-reduced-motion: no-preference){
  .hero-copy > *{animation:rise .7s cubic-bezier(.2,.7,.2,1) both}
  .hero-copy > *:nth-child(2){animation-delay:.08s}
  .hero-copy > *:nth-child(3){animation-delay:.16s}
  .hero-copy > *:nth-child(4){animation-delay:.24s}
  .hero-copy > *:nth-child(5){animation-delay:.32s}
  .hero-copy > *:nth-child(6){animation-delay:.4s}
  @keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* ==========================================================================
   FORMIDABLE FORMS CUSTOM STYLING (PERFECT LIGHT & DARK MODE COMPATIBILITY)
   ========================================================================== */

/* 1. Global Formidable CSS Variables Override */
:root,
body,
.with_frm_style,
.frm_forms,
form.frm-show-form {
  --label-color: var(--text) !important;
  --check-label-color: var(--text) !important;
  --text-color: var(--text) !important;
  --bg-color: var(--surface) !important;
  --border-color: var(--line) !important;
  --submit-bg-color: #F59E0B !important;
  --submit-hover-bg-color: #D97706 !important;
  --submit-text-color: #0A2540 !important;
  --submit-border-radius: 9999px !important;
  --description-color: var(--muted) !important;
  --field-font-size: 1rem !important;
}

/* 2. Form Cards Containers */
#regFormContainer,
#contactFormContainer {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  padding: 2.25rem 2rem !important;
}

@media (prefers-color-scheme: dark) {
  #regFormContainer,
  #contactFormContainer {
    background: #0C2338 !important;
    border: 1px solid #1E3A56 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  }
}

/* 3. Form Inner Resets */
.with_frm_style,
.frm_forms,
form.frm-show-form {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}

.with_frm_style fieldset {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 4. Grid Container (2 Columns) */
.with_frm_style .frm_fields_container,
.frm_forms .frm_fields_container {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.15rem 1rem !important;
  width: 100% !important;
}

.with_frm_style .frm_form_field,
.frm_forms .frm_form_field {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

/* 50% half width vs 100% full width */
.with_frm_style .frm_half,
.frm_forms .frm_half {
  grid-column: span 1 !important;
}

.with_frm_style .frm_full,
.frm_forms .frm_full,
.with_frm_style .frm_interests_box,
.with_frm_style .frm_auditorio_box,
.with_frm_style .frm_consent_box,
.with_frm_style div[id*="_container_16"],
.with_frm_style div[id*="_container_17"],
.with_frm_style div[id*="_container_18"],
.with_frm_style div[id*="_container_5"],
.frm_forms div[id*="_container_16"],
.frm_forms div[id*="_container_17"],
.frm_forms div[id*="_container_18"],
.frm_forms div[id*="_container_5"] {
  grid-column: span 2 !important;
}

@media (max-width: 600px) {
  .with_frm_style .frm_fields_container,
  .frm_forms .frm_fields_container {
    grid-template-columns: 1fr !important;
  }
  .with_frm_style .frm_half,
  .with_frm_style .frm_full,
  .frm_forms .frm_half,
  .frm_forms .frm_full,
  .with_frm_style .frm_form_field,
  .frm_forms .frm_form_field {
    grid-column: span 1 !important;
  }
}

/* 5. Field Labels (Crystal Clear Visibility in Dark/Light Mode) */
.with_frm_style .frm_primary_label,
.frm_forms .frm_primary_label,
label.frm_primary_label,
div.frm_primary_label {
  font-family: var(--body) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.4rem 0 !important;
  color: #0A2540 !important;
  display: block !important;
  line-height: 1.35 !important;
}

@media (prefers-color-scheme: dark) {
  .with_frm_style .frm_primary_label,
  .frm_forms .frm_primary_label,
  label.frm_primary_label,
  div.frm_primary_label {
    color: #F8FAFC !important;
  }
}

.with_frm_style .frm_required,
.frm_forms .frm_required {
  color: var(--coral) !important;
  font-weight: 800 !important;
  margin-left: 3px !important;
}

/* 6. Text Inputs, Email, Tel, Select, Textarea */
.with_frm_style input[type="text"],
.with_frm_style input[type="email"],
.with_frm_style input[type="tel"],
.with_frm_style select,
.with_frm_style textarea,
.frm_forms input[type="text"],
.frm_forms input[type="email"],
.frm_forms input[type="tel"],
.frm_forms select,
.frm_forms textarea {
  width: 100% !important;
  padding: 0.8rem 1rem !important;
  border: 1.5px solid #DCE3EC !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  color: #0A2540 !important;
  font-family: var(--body) !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
  height: auto !important;
  margin: 0 !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

@media (prefers-color-scheme: dark) {
  .with_frm_style input[type="text"],
  .with_frm_style input[type="email"],
  .with_frm_style input[type="tel"],
  .with_frm_style select,
  .with_frm_style textarea,
  .frm_forms input[type="text"],
  .frm_forms input[type="email"],
  .frm_forms input[type="tel"],
  .frm_forms select,
  .frm_forms textarea {
    background: #061829 !important;
    color: #F8FAFC !important;
    border-color: #1E3A56 !important;
  }
}

.with_frm_style input:focus,
.with_frm_style select:focus,
.with_frm_style textarea:focus,
.frm_forms input:focus,
.frm_forms select:focus,
.frm_forms textarea:focus {
  border-color: #1D63B8 !important;
  box-shadow: 0 0 0 4px rgba(29, 99, 184, 0.25) !important;
  outline: none !important;
}

/* 7. Checkboxes & Radios Box Containers */
.with_frm_style .frm_interests_box,
.with_frm_style .frm_auditorio_box,
.frm_forms .frm_interests_box,
.frm_forms .frm_auditorio_box,
.with_frm_style div[id*="_container_16"],
.with_frm_style div[id*="_container_17"],
.frm_forms div[id*="_container_16"],
.frm_forms div[id*="_container_17"] {
  background: #F8FAFC !important;
  border: 1.5px solid #DCE3EC !important;
  border-radius: 10px !important;
  padding: 1.15rem 1.25rem !important;
  box-sizing: border-box !important;
  margin-top: 0.35rem !important;
}

@media (prefers-color-scheme: dark) {
  .with_frm_style .frm_interests_box,
  .with_frm_style .frm_auditorio_box,
  .frm_forms .frm_interests_box,
  .frm_forms .frm_auditorio_box,
  .with_frm_style div[id*="_container_16"],
  .with_frm_style div[id*="_container_17"],
  .frm_forms div[id*="_container_16"],
  .frm_forms div[id*="_container_17"] {
    background: #061829 !important;
    border-color: #1E3A56 !important;
  }
}

.with_frm_style .frm_opt_container,
.frm_forms .frm_opt_container {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.65rem 0.85rem !important;
  margin: 0.5rem 0 0 0 !important;
}

@media (max-width: 540px) {
  .with_frm_style .frm_opt_container,
  .frm_forms .frm_opt_container {
    grid-template-columns: 1fr !important;
  }
}

.with_frm_style .frm_checkbox,
.with_frm_style .frm_radio,
.frm_forms .frm_checkbox,
.frm_forms .frm_radio {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.with_frm_style .frm_checkbox label,
.with_frm_style .frm_radio label,
.frm_forms .frm_checkbox label,
.frm_forms .frm_radio label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.6rem !important;
  font-size: 0.95rem !important;
  color: #0A2540 !important;
  cursor: pointer !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  font-weight: 500 !important;
}

@media (prefers-color-scheme: dark) {
  .with_frm_style .frm_checkbox label,
  .with_frm_style .frm_radio label,
  .frm_forms .frm_checkbox label,
  .frm_forms .frm_radio label {
    color: #F8FAFC !important;
  }
}

.with_frm_style .frm_checkbox input[type="checkbox"],
.with_frm_style .frm_radio input[type="radio"],
.frm_forms .frm_checkbox input[type="checkbox"],
.frm_forms .frm_radio input[type="radio"] {
  accent-color: #1D63B8 !important;
  width: 1.15rem !important;
  height: 1.15rem !important;
  margin-top: 0.15rem !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
}

/* 8. Consent Box */
.with_frm_style .frm_consent_box,
.frm_forms .frm_consent_box,
.with_frm_style div[id*="_container_18"],
.frm_forms div[id*="_container_18"] {
  margin-top: 0.5rem !important;
}

.with_frm_style .frm_consent_box label,
.frm_forms .frm_consent_box label,
.with_frm_style div[id*="_container_18"] label,
.frm_forms div[id*="_container_18"] label {
  font-size: 0.88rem !important;
  color: #475569 !important;
  line-height: 1.45 !important;
}

@media (prefers-color-scheme: dark) {
  .with_frm_style .frm_consent_box label,
  .frm_forms .frm_consent_box label,
  .with_frm_style div[id*="_container_18"] label,
  .frm_forms div[id*="_container_18"] label {
    color: #A9B9CB !important;
  }
}

/* 9. SUBMIT BUTTON (Golden pill button identical to the mockup) */
.with_frm_style .frm_submit,
.frm_forms .frm_submit {
  grid-column: span 2 !important;
  margin-top: 1rem !important;
  padding: 0 !important;
  width: 100% !important;
}

@media (max-width: 600px) {
  .with_frm_style .frm_submit,
  .frm_forms .frm_submit {
    grid-column: span 1 !important;
  }
}

.with_frm_style .frm_submit input[type="submit"],
.with_frm_style .frm_submit button[type="submit"],
.with_frm_style .frm_button_submit,
.frm_forms .frm_button_submit,
input.frm_button_submit,
button.frm_button_submit {
  background: linear-gradient(135deg, #F59E0B, #D97706) !important;
  color: #0A2540 !important;
  font-family: var(--head) !important;
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  padding: 1.05rem 2rem !important;
  border-radius: 9999px !important;
  border: none !important;
  cursor: pointer !important;
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  text-shadow: none !important;
  line-height: 1.3 !important;
}

.with_frm_style .frm_button_submit:hover,
.frm_forms .frm_button_submit:hover,
button.frm_button_submit:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.6) !important;
  color: #0A2540 !important;
}

/* 10. Formidable Validation Errors */
.with_frm_style .frm_error,
.frm_forms .frm_error {
  color: var(--coral) !important;
  font-size: 0.85rem !important;
  margin: 0.35rem 0 0 !important;
  font-weight: 600 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

/* ==========================================================================
   OFFICIAL BRAND LOGO CONSTRAINTS
   ========================================================================== */
.brand {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.brand-logo-img,
header.site .brand img,
.brand img {
  height: 44px !important;
  max-height: 44px !important;
  width: auto !important;
  max-width: 75px !important;
  object-fit: contain !important;
  display: block !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 640px) {
  .brand-logo-img,
  header.site .brand img,
  .brand img {
    height: 38px !important;
    max-height: 38px !important;
    max-width: 60px !important;
  }
}

.footer-logo-img,
footer .footer-logo-img {
  height: 54px !important;
  max-height: 54px !important;
  width: auto !important;
  max-width: 90px !important;
  object-fit: contain !important;
  display: block !important;
  margin-bottom: 1rem !important;
}
