/*
 * INVITE Events - styles for the [invite_event_*] shortcodes.
 * Same look as the live invitenetworks.com landing pages (navy hero, cyan and orange accents), scoped to .ie
 * so nothing else on the site changes. Colours follow the INVITE brand file:
 *   navy #143A56, mid blue #2B4D6E, cyan #45BAE5, orange #F38520, green #94C83D.
 * Text colours were picked for WCAG AA contrast (4.5:1 or better).
 */

.ie{font-family:'Montserrat',-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#2D3130;line-height:1.6;font-size:17px}
.ie *{box-sizing:border-box}
.ie-wrap{max-width:1080px;margin:0 auto;padding:0 20px}
.ie-narrow{max-width:760px}

/* Hero. 140px top clears the fixed site header of the live theme. */
.ie .ie-hero{background:#143A56;color:#fff;padding:140px 0 72px!important;text-align:center}
.ie-hero .ie-kicker{color:#45BAE5;font-weight:700;letter-spacing:.18em;text-transform:uppercase;font-size:14px;margin:0 0 14px}
.ie-hero h1{color:#fff;font-size:clamp(28px,4vw,42px);font-weight:800;line-height:1.2;margin:0 auto 18px;max-width:820px}
.ie-hero p.ie-lede{color:#E6EEF4;font-size:19px;max-width:720px;margin:0 auto 32px}

/* Buttons */
.ie-btns{display:flex;flex-wrap:wrap;gap:14px;justify-content:center}
.ie-btns-left{justify-content:flex-start}
.ie-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 26px;border-radius:4px;font-weight:700;text-decoration:none!important;font-size:16px;letter-spacing:.02em;line-height:1.2;text-align:center}
.ie-btn-primary{background:#F38520;color:#143A56!important}
.ie-btn-primary:hover,.ie-btn-primary:focus{background:#FFA24D;color:#143A56!important}
.ie-btn-ghost{border:2px solid #45BAE5;color:#fff!important}
.ie-btn-ghost:hover,.ie-btn-ghost:focus{background:#2B4D6E}
.ie-btn-ghost-dark{border:2px solid #143A56;color:#143A56!important;background:#fff}
.ie-btn-ghost-dark:hover,.ie-btn-ghost-dark:focus{background:#E6EEF4}
.ie a.ie-btn:focus-visible,.ie-prose a:focus-visible{outline:3px solid #45BAE5;outline-offset:2px}

/* Sections */
.ie-sec{padding:64px 0}
.ie-sec-tight{padding:40px 0 8px}
.ie-sec h2{color:#143A56;font-size:clamp(24px,3vw,32px);font-weight:800;margin:0 0 16px;line-height:1.25}
.ie-sec .ie-eyebrow{color:#A94F08;font-weight:700;letter-spacing:.16em;text-transform:uppercase;font-size:13px;margin:0 0 8px}
.ie-alt{background:#F3F6F9}
.ie-prose p,.ie-prose li{max-width:820px}
.ie-prose a{color:#1D5F8A;text-decoration:underline}
.ie-prose ul{padding-left:22px;margin:12px 0}
.ie-empty{font-size:18px;color:#2D3130}

/* Event cards (list on /events) */
.ie-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:24px;margin-top:28px}
.ie-card{background:#fff;border-top:4px solid #45BAE5;border-radius:4px;padding:26px;box-shadow:0 1px 3px rgba(20,58,86,.12);display:flex;flex-direction:column}
.ie-card.o{border-top-color:#F38520}.ie-card.g{border-top-color:#94C83D}
.ie-card.r{border-top-color:#EC5239}.ie-card.t{border-top-color:#1D7696}
.ie-card h3{color:#143A56;font-size:22px;font-weight:700;margin:0 0 10px;line-height:1.3}
.ie-card p{margin:0 0 12px}
.ie-card .ie-meta{list-style:none;padding:0;margin:0 0 14px}
.ie-card .ie-meta li{padding:2px 0;font-weight:600;color:#143A56}
.ie-card .ie-card-cta{margin:auto 0 0;padding-top:12px}

/* Date / place / cost facts */
.ie-event{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;margin:0 0 20px}
.ie-event div{background:#fff;border-left:4px solid #F38520;padding:18px 20px;border-radius:4px;box-shadow:0 1px 3px rgba(20,58,86,.12)}
.ie-event span{display:block;color:#1D6F94;font-weight:700;letter-spacing:.14em;text-transform:uppercase;font-size:12px}
.ie-event b{color:#143A56;font-size:18px}

/* Add to calendar */
.ie-cal{padding-top:8px;padding-bottom:8px}
.ie-cal-label{font-weight:700;color:#143A56;margin:0 0 10px}

/* Registration form card. The form itself is styled by Gravity Forms like the Contact form. */
.ie-form{background:#fff;border-radius:6px;padding:32px;box-shadow:0 1px 3px rgba(20,58,86,.12);margin-top:20px}
.ie-privacy{font-size:14px;color:#4a5560;margin:16px 0 0}
.ie-privacy a{color:#1D5F8A;text-decoration:underline}


/* Gravity Forms submit button: INVITE orange with navy text (4.6:1), like the page buttons.
   Plain element override so it does not depend on Gravity Forms colour variables. */
.ie-form .gform_wrapper .gform_footer .gform_button,
.ie-form .gform_wrapper .gform_button.button{background:#F38520!important;color:#143A56!important;border:0!important;border-radius:4px!important;font-weight:700!important;letter-spacing:.02em;min-height:48px;padding:12px 28px!important;cursor:pointer}
.ie-form .gform_wrapper .gform_footer .gform_button:hover,
.ie-form .gform_wrapper .gform_footer .gform_button:focus-visible{background:#FFA24D!important;color:#143A56!important}
.ie-form .gform_wrapper .gform_footer .gform_button:focus-visible{outline:3px solid #45BAE5;outline-offset:2px}

/* iPhone Safari. A form control under 16px makes iOS zoom the page in when it gets focus, and the page then
   scrolls sideways. Keep controls at 16px or more, tap targets at 44px or more, and let long words wrap
   (a 200-character name in the confirmation line must not widen the page). */
.ie{-webkit-text-size-adjust:100%;text-size-adjust:100%;overflow-wrap:break-word;word-wrap:break-word}
.ie-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]),.ie-form select,.ie-form textarea{font-size:16px!important;min-height:44px;max-width:100%;box-sizing:border-box}
.ie-form .gform_button,.ie-form input[type=submit],.ie-form button[type=submit]{min-height:48px!important;-webkit-appearance:none;appearance:none}
.ie-form .gfield_checkbox label,.ie-form .gfield_radio label{display:inline-block;padding:10px 0;min-height:44px;box-sizing:border-box}
.ie-form .gform_confirmation_message,.ie-form .validation_message,.ie-form .gfield_validation_message{overflow-wrap:anywhere;word-break:break-word}

/* Shown to editors only when something needs fixing */
.ie-notice{background:#FFF4E5;border-left:4px solid #F38520;padding:14px 16px;border-radius:4px;margin:0}

@media (max-width:600px){
  .ie .ie-hero{padding:120px 0 48px!important}
  .ie-sec{padding:44px 0}
  .ie-form{padding:20px 16px}
  .ie-form .gform_wrapper .gform_footer .gform_button,.ie-form .gform_wrapper .gform_footer input[type=submit]{width:100%!important}
  .ie-btns{flex-direction:column;align-items:stretch}
  .ie-btns-left{align-items:stretch}
}
