/* Online Payment Gateway page (event/views/payment-gateway.php): the MedAlliance payment page
   layout (payment/index.php) in the JSIC colours. */
.pay-page { margin: 0; min-height: 100vh; background: #F4F6FB; color: var(--ink); font-family: var(--f-body, Inter, system-ui, sans-serif); }
.pay-band { position: absolute; inset: 0 0 auto 0; height: 300px; background: linear-gradient(135deg, #0A1630 0%, #13275C 60%, #1E3A8A 100%); z-index: 0; }
.pay-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(226, 65, 42, .35), transparent 45%); }
.pay-wrap { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 48px 16px 32px; }
.pay-card { background: #fff; border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(10, 22, 48, .45); overflow: hidden; }

.pay-card__head { text-align: center; padding: 26px 24px 20px; background: linear-gradient(180deg, #fff 0%, #F6F8FC 100%); border-bottom: 1px solid #E6EAF2; }
.pay-logo img { display: inline-block; width: 150px; height: auto; }
.pay-card__head h1 { margin: 12px 0 8px; font: 800 1.55rem/1.2 var(--f-head); letter-spacing: -.01em; color: var(--ink); }
.pay-secure { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 12px; border-radius: 999px; background: #EEF2FA; color: #13275C; font: 600 .74rem/1.4 var(--f-head); }
.pay-secure .icon { width: 13px; height: 13px; color: var(--shu); }
.pay-conf { margin: 10px auto 0; max-width: 720px; font-size: .82rem; line-height: 1.5; color: #4B587A; }
.pay-conf b { color: var(--shu-dark); }

.pay-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); }
.pay-side { padding: 26px 22px; border-right: 1px solid #E6EAF2; background: #FBFCFE; }
.pay-main { padding: 26px 30px 30px; min-width: 0; }

.pay-modes { border: 0; margin: 0; padding: 0; display: grid; gap: 9px; }
.pay-modes legend { padding: 0; margin-bottom: 10px; font: 700 .9rem/1.3 var(--f-head); color: var(--ink); }
.pay-mode { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #DCE2EE; border-radius: 10px; background: #fff; font: 600 .86rem/1.2 var(--f-head); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.pay-mode input { position: absolute; opacity: 0; pointer-events: none; }
.pay-mode__dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #9AA6BF; flex: none; display: grid; place-items: center; background: #fff; }
.pay-mode:hover { border-color: #F3A08F; }
.pay-mode:has(input:checked) { border-color: var(--shu); background: #FFF4F1; box-shadow: 0 0 0 3px rgba(226, 65, 42, .12); }
.pay-mode input:checked + .pay-mode__dot { border-color: var(--shu); background: var(--shu); box-shadow: inset 0 0 0 3px #fff; }
.pay-mode input:focus-visible + .pay-mode__dot { outline: 2px solid var(--shu); outline-offset: 2px; }

.pay-support { margin-top: 20px; border-radius: 10px; overflow: hidden; border: 1px solid #DCE2EE; text-align: center; }
.pay-support h2 { margin: 0; padding: 10px; background: #13275C; color: #fff; font: 700 .8rem/1.3 var(--f-head); }
.pay-support p { margin: 0; padding: 6px 10px; font-size: .84rem; background: #fff; }
.pay-support p:first-of-type { padding-top: 12px; }
.pay-support p:last-of-type { padding-bottom: 12px; }
.pay-support a { color: var(--ink); }

.pay-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 18px; align-items: center; margin-bottom: 13px; }
.pay-row__label { font: 600 .84rem/1.35 var(--f-head); color: var(--ink); }
.pay-row__ctl { min-width: 0; }
.pay-row input[type="text"], .pay-row input[type="email"], .pay-row input[type="tel"], .pay-row select { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #D5DCE8; border-radius: 9px; background: #fff; font-size: .9rem; color: var(--ink); }
.pay-row input:focus, .pay-row select:focus { outline: none; border-color: var(--shu); box-shadow: 0 0 0 3px rgba(226, 65, 42, .14); }
.pay-row .select { position: relative; }
.pay-row .select select { appearance: none; padding-right: 36px; }
.pay-row .select__icon { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; color: #4B587A; }
.pay-row--error input, .pay-row--error select { border-color: var(--danger, #C62828); }
.pay-row .field-error, .pay-terms .field-error, .pay-modes .field-error { margin: 5px 0 0; font-size: .78rem; color: var(--danger, #C62828); }

.pay-currency { display: flex; gap: 10px; }
.pay-cur { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; border: 1px solid #D5DCE8; border-radius: 999px; font: 600 .82rem var(--f-head); cursor: pointer; }
.pay-cur:has(input:checked) { border-color: var(--shu); background: #FFF4F1; color: var(--shu-dark); }
.pay-cur--off { opacity: .45; cursor: not-allowed; }
.pay-cur input { accent-color: var(--shu); margin: 0; }

.pay-amount { display: block; padding: 10px 14px; border-radius: 9px; background: #F1F4FA; border: 1px solid #E1E7F1; font: 800 1.12rem/1.2 var(--f-head); color: var(--ink); }
.pay-charges { margin-top: 6px; font-size: .78rem; }
.pay-charges summary { cursor: pointer; color: #2E7D32; font-weight: 600; list-style: none; }
.pay-charges summary::-webkit-details-marker { display: none; }
.pay-charges summary:hover { text-decoration: underline; }
.pay-charges p { margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: #F3FAF4; color: #1F5F24; line-height: 1.5; }

.pay-coupon { display: flex; align-items: stretch; border: 1px solid #D5DCE8; border-radius: 9px; overflow: hidden; background: #FFFDF7; }
.pay-coupon input[type="text"] { border: 0; border-radius: 0; background: transparent; min-height: 40px; text-transform: uppercase; }
.pay-coupon input[type="text"]:focus { box-shadow: none; }
.pay-coupon:focus-within { border-color: var(--shu); box-shadow: 0 0 0 3px rgba(226, 65, 42, .14); }
.pay-coupon__btn { flex: none; margin: 4px; padding: 0 14px; border: 0; border-radius: 7px; background: #13275C; color: #fff; font: 700 .78rem var(--f-head); cursor: pointer; }
.pay-coupon__btn:hover { background: var(--shu); }
.pay-coupon__msg { margin: 5px 0 0; font-size: .78rem; min-height: 0; }
.pay-coupon__msg:empty { display: none; }
.pay-coupon__msg.is-ok { color: #2E7D32; }
.pay-coupon__msg.is-err { color: var(--danger, #C62828); }

.pay-policy { max-height: 150px; overflow-y: auto; margin: 18px 0 14px; padding: 12px 16px; border: 1px solid #E1E7F1; border-radius: 10px; background: #F6F8FC; font-size: .76rem; line-height: 1.55; color: #3D4A68; }
.pay-policy h3 { margin: 10px 0 4px; font: 700 .8rem/1.3 var(--f-head); color: #13275C; }
.pay-policy h3:first-child { margin-top: 0; }
.pay-policy p { margin: 0 0 6px; }
.pay-policy ul { margin: 0 0 6px; padding-left: 1.1rem; }
.pay-policy li { margin: 0 0 3px; }

.pay-terms label { display: flex; align-items: flex-start; gap: 10px; font-size: .84rem; line-height: 1.45; cursor: pointer; }
.pay-terms input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--shu); flex: none; }
.pay-terms a { color: var(--ink); }
.pay-submit { text-align: center; margin-top: 16px; }
.pay-confirm { min-width: 210px; padding: 13px 28px; border: 0; border-radius: 999px; background: var(--g-shu); color: #fff; font: 700 1rem var(--f-head); cursor: pointer; box-shadow: 0 14px 28px -12px rgba(226, 65, 42, .7); transition: transform .2s, box-shadow .2s; }
.pay-confirm:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(226, 65, 42, .8); }
.pay-submit p { margin: 10px 0 0; font-size: .76rem; color: #6A7593; }
.pay-copy { text-align: center; margin: 14px 0 0; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: #7A86A3; }
.pay-main .alert { margin-bottom: 14px; }
.pay-main .cf-turnstile { margin-top: 12px; }

@media (max-width: 820px) {
  .pay-grid { grid-template-columns: 1fr; }
  .pay-side { border-right: 0; border-bottom: 1px solid #E6EAF2; }
  .pay-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay-modes legend { grid-column: 1 / -1; }
  .pay-main { padding: 22px 18px 26px; }
}
@media (max-width: 560px) {
  .pay-wrap { padding: 24px 12px; }
  .pay-row { grid-template-columns: 1fr; gap: 6px; }
  .pay-modes { grid-template-columns: 1fr; }
  .pay-card__head h1 { font-size: 1.3rem; }
}
.pay-coupon input[type="text"]::placeholder { text-transform: none; }

/* Listener registration page (event/views/listener.php): the MedAlliance listener payment page
   (payment/list_index.php) in the JSIC colours. */
.lis-page { background: linear-gradient(180deg, #EEF2FA 0%, #F4F6FB 420px); }
.lis-wrap { max-width: 1120px; margin: 0 auto; padding: 22px 16px 32px; }
.lis-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lis-top__logo img { display: block; width: 130px; height: auto; }
.lis-top__secure { display: inline-flex; align-items: center; gap: 6px; font: 700 .8rem/1.3 var(--f-head); color: #13275C; }
.lis-top__secure .icon { width: 14px; height: 14px; color: var(--shu); }
.lis-top__secure span { font-weight: 500; color: #4B587A; }

.lis-hero { position: relative; overflow: hidden; padding: 24px 28px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #0A1630 0%, #13275C 60%, #1E3A8A 100%); box-shadow: 0 18px 40px -22px rgba(10, 22, 48, .6); }
.lis-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(226, 65, 42, .55), rgba(226, 65, 42, 0) 70%); }
.lis-hero__meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 10px; font: 600 .82rem/1.3 var(--f-head); }
.lis-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.lis-hero__meta .icon { width: 15px; height: 15px; color: #F1D79A; }
.lis-hero h1 { position: relative; z-index: 1; margin: 0; font: 800 clamp(1.3rem, 2.6vw, 1.9rem)/1.2 var(--f-head); letter-spacing: -.01em; color: #fff; }
.lis-hero__sub { position: relative; z-index: 1; margin: 8px 0 0; font-size: .84rem; color: #D7DEEE; }
.lis-hero__sub b { color: #F1D79A; }

.lis-box { margin-top: 16px; padding: 20px 24px; border-radius: 14px; background: #fff; border: 1px solid #E6EAF2; box-shadow: 0 10px 28px -20px rgba(10, 22, 48, .35); }
.lis-invite { display: flex; align-items: center; gap: 16px; }
.lis-invite__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #FFF4F1; color: var(--shu); }
.lis-invite__icon .icon { width: 22px; height: 22px; }
.lis-invite h2 { margin: 0 0 3px; font: 700 1rem/1.3 var(--f-head); color: #13275C; }
.lis-invite p { margin: 0; font-size: .82rem; line-height: 1.55; color: #4B587A; }
.lis-invite p span { display: block; }

.lis-benefits h2, .lis-tracks > h2 { margin: 0 0 16px; text-align: center; font: 700 1.1rem/1.3 var(--f-head); color: #13275C; }
.lis-benefits h2 span, .lis-tracks > h2 span, .lis-step legend span[lang], .lis-terms h2 span[lang], .lis-summary h2 span { font: 600 .74rem/1.3 var(--f-mincho, serif); color: var(--kin-dark, #9A7B2E); margin-left: 6px; letter-spacing: .04em; }
.lis-benefits ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; text-align: center; }
.lis-benefits li { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .74rem; line-height: 1.4; color: #6A7593; }
.lis-benefits__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border-radius: 11px; background: #EEF2FA; color: #13275C; }
.lis-benefits__icon .icon { width: 20px; height: 20px; }
.lis-benefits b { font: 700 .78rem/1.3 var(--f-head); color: var(--ink); }
.lis-benefits small { font-size: .68rem; color: var(--kin-dark, #9A7B2E); }

.lis-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.lis-main { padding: 22px 26px 24px; }
.lis-step { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.lis-step:last-child { margin-bottom: 0; }
.lis-step legend, .lis-terms h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 14px; padding: 0; font: 700 1.02rem/1.3 var(--f-head); color: var(--ink); }
.lis-step__no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #13275C; color: #fff; font: 700 .85rem var(--f-head); flex: none; }

.lis-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lis-mode { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 14px; border: 1.5px solid #DCE2EE; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.lis-mode input { position: absolute; opacity: 0; pointer-events: none; }
.lis-mode__dot { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid #9AA6BF; background: #fff; }
.lis-mode__body { display: flex; flex-direction: column; gap: 2px; font-size: .76rem; line-height: 1.45; color: #6A7593; }
.lis-mode__body b { font: 700 .88rem/1.3 var(--f-head); color: var(--ink); }
.lis-mode__body small { font-size: .7rem; color: var(--kin-dark, #9A7B2E); margin-bottom: 4px; }
.lis-mode__price { text-align: right; font: 800 1.3rem/1 var(--f-head); color: #13275C; }
.lis-mode__price small { display: block; font: 600 .62rem/1.4 var(--f-head); color: #6A7593; }
.lis-mode:hover { border-color: #F3A08F; }
.lis-mode:has(input:checked) { border-color: var(--shu); background: #FFF8F6; box-shadow: 0 0 0 3px rgba(226, 65, 42, .12); }
.lis-mode input:checked + .lis-mode__dot { border-color: var(--shu); background: var(--shu); box-shadow: inset 0 0 0 3px #fff; }
.lis-mode input:focus-visible + .lis-mode__dot { outline: 2px solid var(--shu); outline-offset: 2px; }
.lis-note { margin: 8px 0 0; font-size: .74rem; color: #6A7593; }

.lis-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.lis-field { min-width: 0; }
.lis-field label { display: block; margin-bottom: 5px; font: 600 .8rem/1.3 var(--f-head); color: var(--ink); }
.lis-field input[type="text"], .lis-field input[type="email"], .lis-field input[type="tel"], .lis-field select { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #D5DCE8; border-radius: 9px; background: #fff; font-size: .88rem; color: var(--ink); }
.lis-field input:focus, .lis-field select:focus { outline: none; border-color: var(--shu); box-shadow: 0 0 0 3px rgba(226, 65, 42, .14); }
.lis-field .select { position: relative; }
.lis-field .select select { appearance: none; padding-right: 36px; }
.lis-field .select__icon { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; color: #4B587A; }
.lis-field .pay-coupon input[type="text"] { border: 0; min-height: 40px; background: transparent; }
.lis-field .pay-coupon input[type="text"]:focus { box-shadow: none; }
.lis-field.pay-row--error input, .lis-field.pay-row--error select { border-color: var(--danger, #C62828); }
.lis-field .field-error, .lis-step .field-error { margin: 5px 0 0; font-size: .78rem; color: var(--danger, #C62828); }

.lis-side { position: sticky; top: 16px; display: grid; gap: 14px; }
.lis-summary { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid #E6EAF2; box-shadow: 0 10px 28px -20px rgba(10, 22, 48, .35); }
.lis-summary h2 { margin: 0; padding: 14px 18px; background: #13275C; color: #fff; font: 700 .95rem/1.3 var(--f-head); }
.lis-summary h2 span { color: #F1D79A; }
.lis-summary dl { margin: 0; padding: 12px 18px; display: grid; gap: 9px; }
.lis-summary dl + dl { border-top: 1px solid #E6EAF2; }
.lis-summary dl div { display: flex; justify-content: space-between; gap: 14px; font-size: .78rem; }
.lis-summary dl div[hidden] { display: none; }
.lis-summary dt { color: #6A7593; }
.lis-summary dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); }
.lis-summary .lis-summary__charge { color: #2E7D32; }
.lis-summary__total { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 14px 18px; border-top: 1px solid #E6EAF2; background: #F6F8FC; font: 700 .9rem var(--f-head); }
.lis-summary__total b { font-size: 1.25rem; color: var(--shu-dark, #B22F1C); }
.lis-safe { display: flex; gap: 10px; margin: 0; padding: 0 4px; font-size: .74rem; line-height: 1.5; color: #6A7593; }
.lis-safe .icon { width: 20px; height: 20px; flex: none; color: #2E7D32; }
.lis-safe b { display: block; color: #13275C; font-size: .8rem; }
.lis-side .pay-support { margin-top: 0; }

.lis-terms .pay-policy { margin-top: 0; }
.lis-proceed { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; padding: 13px 20px; border: 0; border-radius: 10px; background: var(--g-shu); color: #fff; font: 700 1rem var(--f-head); cursor: pointer; box-shadow: 0 14px 28px -14px rgba(226, 65, 42, .75); transition: transform .2s, box-shadow .2s; }
.lis-proceed .icon { width: 16px; height: 16px; }
.lis-proceed span { font-weight: 500; font-size: .82rem; opacity: .9; }
.lis-proceed:hover { transform: translateY(-1px); box-shadow: 0 18px 32px -14px rgba(226, 65, 42, .85); }
.lis-terms__note { margin: 8px 0 0; text-align: center; font-size: .74rem; color: #6A7593; }
.lis-terms .cf-turnstile { margin-top: 12px; }
.lis-main .alert { margin-bottom: 14px; }

.lis-tracks { margin-top: 26px; }
.lis-tracks > h2 { margin-bottom: 0; }
.lis-sdg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-bottom: 14px; }
.lis-sdg > img { width: 44px; height: 44px; }
.lis-sdg + .lis-track-list { border-top: 1px solid #E6EAF2; padding-top: 14px; }
.lis-sdg b { display: block; font: 700 .9rem/1.3 var(--f-head); color: #13275C; }
.lis-sdg span { font-size: .76rem; color: #6A7593; }
.lis-sdg ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lis-sdg li img { display: block; width: 50px; height: 50px; border-radius: 4px; }
.lis-track-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.lis-track-list li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #E1E7F1; font: 600 .84rem/1.45 var(--f-head); color: var(--ink); }
.lis-track-list li span { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #FFF4F1; color: var(--shu); font-size: .72rem; }

@media (max-width: 960px) {
  .lis-benefits ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lis-grid { grid-template-columns: 1fr; }
  .lis-side { position: static; }
}
@media (max-width: 600px) {
  .lis-wrap { padding: 14px 12px 24px; }
  .lis-hero { padding: 20px 18px; }
  .lis-box, .lis-main { padding: 16px; }
  .lis-benefits ul { grid-template-columns: 1fr 1fr; }
  .lis-modes, .lis-fields, .lis-track-list { grid-template-columns: 1fr; }
  .lis-sdg { grid-template-columns: auto minmax(0, 1fr); }
  .lis-sdg ul { grid-column: 1 / -1; }
  .lis-top__secure span { display: none; }
}
