/* Event registration page: payment methods, deadline cards, fee table. */

.ro-regtitle { font-family: var(--ro-serif); font-size: clamp(1.4rem, 1.15rem + .7vw, 1.75rem); font-weight: 500; margin: 0 0 1.1rem; }

/* Accepted payment methods: three chips in a row */
.ro-paymethods { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.ro-paymethods li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; text-align: center; padding: 1rem .6rem; border-radius: 16px; background: var(--ro-bg); border: 1px solid var(--ro-line); font-size: .86rem; font-weight: 600; color: var(--ro-ink); line-height: 1.35; transition: transform .3s var(--ro-ease), border-color .3s; }
.ro-paymethods li:hover { transform: translateY(-3px); border-color: var(--ro-teal); }
.ro-paymethods i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ro-mint-50); color: var(--ro-teal); font-size: 1.15rem; }
.ro-regcontact { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding-top: 1rem; border-top: 1px solid var(--ro-line-soft); font-size: .92rem; }
.ro-regcontact strong { color: var(--ro-ink); }

/* Deadline cards: stacked, equal, with status tag */
.ro-deadlines { display: grid; gap: 1rem; align-content: stretch; }
.ro-deadline { display: flex; align-items: center; gap: 1.1rem; padding: 1.3rem 1.4rem; border-radius: 22px; background: #fff; border: 1px solid var(--ro-line); }
.ro-deadline > i { flex: 0 0 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--ro-mint-50); color: var(--ro-teal); font-size: 1.25rem; }
.ro-deadline h3 { font-family: var(--ro-font); font-size: .95rem; font-weight: 700; color: var(--ro-ink); margin: 0 0 .15rem; line-height: 1.35; }
.ro-deadline p { margin: 0 0 .45rem; font-family: var(--ro-serif); font-size: 1.35rem; font-weight: 600; color: var(--ro-teal); line-height: 1.2; }
.ro-deadline__tag { display: inline-block; padding: .22rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--ro-bg); color: var(--ro-muted); }
.ro-deadline.is-current { background: linear-gradient(135deg, var(--ro-navy-900), var(--ro-teal)); border-color: transparent; box-shadow: 0 20px 40px -24px rgba(10,22,64, .7); }
.ro-deadline.is-current > i { background: var(--ro-amber); color: #fff; }
.ro-deadline.is-current h3 { color: #fff; }
.ro-deadline.is-current p { color: var(--ro-pink-light, #5fd0d8); }
.ro-deadline.is-current .ro-deadline__tag { background: rgba(255,255,255,.14); color: #fff; }
.ro-deadline.is-past { opacity: .7; }
.ro-deadline.is-past p { color: var(--ro-muted); text-decoration: line-through; text-decoration-thickness: 1px; }

/* Fee table */
.ro-feetable { background: #fff; border: 1px solid var(--ro-line); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px -40px rgba(10,22,64, .5); }
.ro-feetable table { width: 100%; border-collapse: collapse; }
.ro-feetable thead th { padding: 1rem 1.1rem; background: var(--ro-navy-900); color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .03em; text-align: left; vertical-align: middle; white-space: nowrap; }
.ro-feetable thead th:nth-child(2), .ro-feetable thead th:nth-child(3), .ro-feetable td { text-align: center; }
.ro-feetable thead th small { display: block; width: max-content; margin: .3rem auto 0; padding: .12rem .55rem; border-radius: 999px; background: var(--ro-amber); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ro-feetable thead th.is-current { background: var(--ro-teal); }
.ro-feetable tbody th, .ro-feetable tbody td { padding: .85rem 1.1rem; border-top: 1px solid var(--ro-line-soft); vertical-align: middle; }
.ro-feetable tbody th { font-weight: 600; font-size: .92rem; color: var(--ro-ink); text-align: left; line-height: 1.4; }
.ro-feetable tbody tr:nth-child(even) { background: #fafbfd; }
.ro-feetable tbody tr:hover { background: var(--ro-mint-50); }
.ro-feetable td { font-weight: 700; font-size: .95rem; color: var(--ro-text); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.ro-feetable td.is-current { color: var(--ro-teal); background: rgba(13,27,76, .05); }
.ro-feetable td.is-other { color: var(--ro-muted); font-weight: 500; }
.ro-feetable__mode { display: inline-block; margin-left: .45rem; padding: .1rem .5rem; border-radius: 999px; font-size: .68rem; font-weight: 700; vertical-align: middle; }
.ro-feetable__mode--physical { background: var(--ro-mint-50); color: var(--ro-teal); }
.ro-feetable__mode--virtual { background: #e2f4f5; color: #0a5c66; }
.ro-feetable tr.is-closed th, .ro-feetable tr.is-closed td { opacity: .55; }
.ro-btn.is-disabled { pointer-events: none; }

/* Phones: each fee row becomes a card */
@media (max-width: 767.98px) {
  .ro-paymethods { grid-template-columns: 1fr; }
  .ro-paymethods li { flex-direction: row; justify-content: flex-start; text-align: left; }
  .ro-feetable thead { display: none; }
  .ro-feetable tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .8rem; padding: 1rem 1.1rem; border-top: 1px solid var(--ro-line-soft); }
  .ro-feetable tbody th, .ro-feetable tbody td { border: 0; padding: 0; }
  .ro-feetable tbody th { grid-column: 1 / -1; margin-bottom: .4rem; }
  .ro-feetable td[data-label] { text-align: left; }
  .ro-feetable td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 600; color: var(--ro-muted); }
}

/* Selectable amounts (fee table form -> ../payment/index.php?cat=KEY|rate) */
.ro-feetable--pick td { padding: .55rem .8rem !important; }
.ro-feeopt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 48px; margin: 0; padding: .55rem .8rem; border: 1.5px solid var(--ro-line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s, color .2s; }
.ro-feeopt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ro-feeopt__amount { font-weight: 800; font-size: .98rem; color: var(--ro-ink); }
.ro-feeopt__state { font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ro-muted); }
.ro-feeopt__state:empty { display: none; }
.ro-feeopt:hover { border-color: var(--ro-teal); background: var(--ro-mint-50); }
.ro-feetable td.is-current .ro-feeopt:not(.is-off) { border-color: rgba(13,27,76, .35); }
.ro-feeopt:has(input:checked) { border-color: var(--ro-teal); background: var(--ro-teal); box-shadow: 0 12px 24px -14px rgba(13,27,76, .9), 0 0 0 3px rgba(14,124,134, .25); }
.ro-feeopt:has(input:checked) .ro-feeopt__amount { color: #fff; }
.ro-feeopt:has(input:checked)::after { content: '\2713'; position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ro-amber); color: #fff; font-size: .7rem; font-weight: 800; }
.ro-feeopt:has(input:focus-visible) { outline: 2px solid var(--ro-amber); outline-offset: 2px; }
.ro-feeopt.is-off { cursor: not-allowed; background: var(--ro-bg); border-style: dashed; }
.ro-feeopt.is-off:hover { border-color: var(--ro-line); background: var(--ro-bg); }
.ro-feeopt.is-off .ro-feeopt__amount { color: var(--ro-muted); font-weight: 600; text-decoration: line-through; }

.ro-feehint { display: flex; gap: .7rem; align-items: flex-start; margin: 1.1rem 0 0; padding: .9rem 1.1rem; border-radius: 16px; background: var(--ro-blue); color: var(--ro-ink); font-size: .9rem; line-height: 1.55; }
.ro-feehint i { color: var(--ro-teal); margin-top: .25rem; }

.ro-paycta { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; margin-top: 1rem; padding: 1.1rem 1.4rem; border-radius: 20px; background: linear-gradient(135deg, var(--ro-navy-900), var(--ro-teal)); color: var(--ro-on-dark); box-shadow: 0 24px 40px -26px rgba(10,22,64, .9); }
.ro-paycta h3 { color: #fff; font-size: 1.3rem; margin: 0 0 .2rem; }
.ro-paycta p { font-size: .88rem; }
.ro-paycta .ro-btn { flex: 0 0 auto; }
.ro-paycta .ro-btn[disabled] { opacity: .5; cursor: not-allowed; }

@media (max-width: 767.98px) {
  .ro-feetable--pick td { padding: 0 !important; }
  .ro-feetable--pick td[data-label]::before { margin-bottom: .25rem; }
  .ro-paycta { flex-direction: column; align-items: stretch; text-align: center; }
  .ro-paycta .ro-btn { justify-content: center; }
}
