/* Participant accounts: sign in, sign up, My Page. Uses the site tokens from style.css. */

.acc-page {
  padding: 3rem 0 4.5rem;
  background: var(--bg-alt, #f4f8fd);
}

.acc-shell {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1020px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(7, 27, 62, .12);
  overflow: hidden;
}

.acc-shell--narrow { max-width: 560px; }

@media (min-width: 992px) {
  .acc-shell:not(.acc-shell--narrow) { grid-template-columns: 340px 1fr; }
}

.acc-side {
  display: none;
  position: relative;
  padding: 2.5rem 2rem;
  color: #fff;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, .16), transparent 45%),
    linear-gradient(160deg, var(--deep, #071b3e) 0%, var(--primary, #1565c0) 70%, var(--accent, #00b4d8) 130%);
}

@media (min-width: 992px) { .acc-side { display: flex; flex-direction: column; justify-content: center; } }

.acc-side h2 { color: #fff; font-size: 1.35rem; line-height: 1.35; margin-bottom: 1.5rem; }

.acc-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }

.acc-side li { display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; line-height: 1.5; color: rgba(255, 255, 255, .92); }

.acc-side li i {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .18);
  border-radius: 50%;
  font-size: .95rem;
}

.acc-main { padding: 2.25rem 1.5rem; }

@media (min-width: 576px) { .acc-main { padding: 2.75rem 2.75rem; } }

.acc-head { margin-bottom: 1.6rem; }
.acc-head h1 { font-size: 1.55rem; color: var(--ink, #0d1b2a); margin: 0 0 .35rem; }
.acc-head p { color: var(--muted, #6b7c93); margin: 0; font-size: .93rem; }

.acc-label { font-weight: 600; font-size: .85rem; color: var(--ink, #0d1b2a); margin-bottom: .35rem; }

.acc-input { position: relative; }

.acc-input > i.bi {
  position: absolute;
  left: .95rem; top: 50%;
  transform: translateY(-50%);
  color: var(--muted, #6b7c93);
  font-size: 1rem;
  pointer-events: none;
}

.acc-input .form-control,
.acc-input .form-select {
  border: 1.5px solid #d6e0ef;
  border-radius: 12px;
  padding: .72rem .95rem;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}

.acc-input.has-icon .form-control,
.acc-input.has-icon .form-select { padding-left: 2.6rem; }

.acc-input .form-control:focus,
.acc-input .form-select:focus {
  border-color: var(--primary, #1565c0);
  box-shadow: 0 0 0 4px rgba(21, 101, 192, .12);
}

.acc-input .form-control.is-invalid { border-color: #dc3545; background-image: none; }
.acc-input.has-toggle .form-control { padding-right: 2.9rem; }

.acc-toggle {
  position: absolute;
  right: .4rem; top: 50%;
  transform: translateY(-50%);
  border: 0; background: transparent;
  width: 38px; height: 38px;
  border-radius: 10px;
  color: var(--muted, #6b7c93);
  cursor: pointer;
}
.acc-toggle:hover { color: var(--primary, #1565c0); background: rgba(21, 101, 192, .08); }

.acc-hint { font-size: .78rem; color: var(--muted, #6b7c93); margin-top: .3rem; }
.acc-error { font-size: .8rem; color: #dc3545; margin-top: .3rem; }

.acc-btn {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: .85rem 1rem;
  font-weight: 700; font-size: 1rem;
  color: #fff;
  background: var(--grad, linear-gradient(135deg, #1565c0, #00b4d8));
  cursor: pointer;
  transition: opacity .2s, transform .2s, box-shadow .2s;
}
.acc-btn:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(21, 101, 192, .28); }
.acc-btn:disabled { opacity: .65; cursor: progress; transform: none; box-shadow: none; }

.acc-btn--ghost {
  background: transparent;
  color: var(--primary, #1565c0);
  border: 1.5px solid #cfdcf0;
}
.acc-btn--ghost:hover { background: rgba(21, 101, 192, .06); box-shadow: none; }

.acc-link { color: var(--primary, #1565c0); font-weight: 600; text-decoration: none; }
.acc-link:hover { text-decoration: underline; }

.acc-foot { text-align: center; margin-top: 1.4rem; font-size: .9rem; color: var(--muted, #6b7c93); }

.acc-alert {
  border-radius: 12px;
  padding: .85rem 1rem;
  font-size: .9rem;
  margin-bottom: 1.2rem;
  display: flex; gap: .6rem; align-items: flex-start;
}
.acc-alert--ok { background: #e8f6ee; color: #1d6b3d; border: 1px solid #bfe3cd; }
.acc-alert--err { background: #fdecee; color: #a02634; border: 1px solid #f3c2c8; }

.acc-honeypot { position: absolute; left: -5000px; height: 0; overflow: hidden; }

.acc-icon-circle {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--grad, linear-gradient(135deg, #1565c0, #00b4d8));
  color: #fff; font-size: 2rem;
}

/* My Page */
.mp-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(7, 27, 62, .08);
  padding: 1.6rem;
}
.mp-card.h-100 { height: 100%; }
.mp-card h2 { font-size: 1.05rem; color: var(--deep, #071b3e); margin-bottom: 1rem; }

.mp-badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .78rem; font-weight: 700;
}
.mp-badge--paid { background: #e8f6ee; color: #1d6b3d; }
.mp-badge--pending { background: #fff4de; color: #9a6400; }
.mp-badge--refunded { background: #fdecee; color: #a02634; }
.mp-badge--waived { background: #e5f1fb; color: #1565c0; }

.mp-dl { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.2rem; margin: 0; font-size: .92rem; }
.mp-dl dt { color: var(--muted, #6b7c93); font-weight: 500; }
.mp-dl dd { margin: 0; font-weight: 600; color: var(--ink, #0d1b2a); }

/* Links used as buttons keep the button look */
a.acc-btn, a.acc-btn:hover { color: #fff; text-decoration: none; }
a.acc-btn--ghost, a.acc-btn--ghost:hover { color: var(--primary, #1565c0); }

.acc-btn--inline { display: inline-flex; width: auto; padding-inline: 1.6rem; }

.acc-btn--danger { background: #c0392b; }
.acc-btn--danger:hover { box-shadow: 0 8px 22px rgba(192, 57, 43, .28); }

/* My Page navigation */
.mp-nav {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(7, 27, 62, .08);
  padding: .6rem;
  display: flex; flex-direction: column; gap: .15rem;
}
.mp-nav form { margin: 0; }
.mp-nav__link {
  display: flex; align-items: center; gap: .7rem;
  width: 100%;
  padding: .75rem .9rem;
  border: 0; background: transparent;
  border-radius: 10px;
  color: var(--ink, #0d1b2a);
  font-weight: 600; font-size: .92rem;
  text-decoration: none; text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.mp-nav__link i { color: var(--muted, #6b7c93); font-size: 1.05rem; }
.mp-nav__link:hover { background: rgba(21, 101, 192, .07); color: var(--primary, #1565c0); }
.mp-nav__link.is-active { background: var(--grad, linear-gradient(135deg, #1565c0, #00b4d8)); color: #fff; }
.mp-nav__link.is-active i { color: #fff; }
.mp-nav__link--logout { margin-top: .4rem; border-top: 1px solid #edf1f7; border-radius: 0 0 10px 10px; padding-top: .9rem; }

@media (max-width: 991.98px) {
  .mp-nav { flex-direction: row; overflow-x: auto; gap: .3rem; }
  .mp-nav form { flex-shrink: 0; }
  .mp-nav__link { white-space: nowrap; width: auto; }
  .mp-nav__link--logout { margin-top: 0; border-top: 0; padding-top: .75rem; border-radius: 10px; }
}

/* Progress steps */
.mp-steps { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: .5rem; }
.mp-steps__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; position: relative; }
.mp-steps__item:not(:last-child)::after {
  content: ''; position: absolute; top: 18px; left: calc(50% + 24px); right: calc(-50% + 24px);
  height: 3px; border-radius: 3px; background: #e1e9f4;
}
.mp-steps__item.is-done:not(:last-child)::after { background: var(--accent, #00b4d8); }
.mp-steps__dot {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e8eef7; color: var(--muted, #6b7c93);
  font-weight: 700; font-size: .95rem;
}
.mp-steps__item.is-done .mp-steps__dot { background: var(--accent, #00b4d8); color: #fff; }
.mp-steps__item.is-current .mp-steps__dot { background: var(--primary, #1565c0); color: #fff; box-shadow: 0 0 0 5px rgba(21, 101, 192, .15); }
.mp-steps__label { font-size: .8rem; font-weight: 600; color: var(--muted, #6b7c93); }
.mp-steps__item.is-done .mp-steps__label, .mp-steps__item.is-current .mp-steps__label { color: var(--ink, #0d1b2a); }

.mp-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6b7c93); font-weight: 600; border-bottom-width: 1px; }
.mp-table td { font-size: .92rem; vertical-align: middle; }

/* ---- Registration wizard ---- */
.wz-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; background: #fff; border-radius: 16px; padding: 1rem 1.25rem; box-shadow: 0 6px 24px rgba(7, 27, 62, .08); }
.wz-steps__item { flex: 1; position: relative; }
.wz-steps__item:not(:last-child)::after {
  content: ''; position: absolute; top: 18px; left: calc(50% + 26px); right: calc(-50% + 26px);
  height: 3px; border-radius: 3px; background: #e1e9f4;
}
.wz-steps__item.is-done:not(:last-child)::after { background: var(--accent, #00b4d8); }
.wz-steps__link { display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; color: inherit; text-decoration: none; }
a.wz-steps__link:hover .wz-steps__label { color: var(--primary, #1565c0); }
.wz-steps__dot {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e8eef7; color: var(--muted, #6b7c93); font-weight: 700; font-size: .95rem;
  position: relative; z-index: 1;
}
.wz-steps__item.is-done .wz-steps__dot { background: var(--accent, #00b4d8); color: #fff; }
.wz-steps__item.is-current .wz-steps__dot { background: var(--primary, #1565c0); color: #fff; box-shadow: 0 0 0 5px rgba(21, 101, 192, .15); }
.wz-steps__label { font-size: .8rem; font-weight: 600; color: var(--muted, #6b7c93); }
.wz-steps__item.is-done .wz-steps__label, .wz-steps__item.is-current .wz-steps__label { color: var(--ink, #0d1b2a); }
@media (max-width: 575.98px) {
  .wz-steps { padding: .8rem .5rem; }
  .wz-steps__label { font-size: .68rem; }
  .wz-steps__dot { width: 32px; height: 32px; }
  .wz-steps__item:not(:last-child)::after { top: 15px; left: calc(50% + 20px); right: calc(-50% + 20px); }
}

.wz-card { background: #fff; border-radius: 16px; box-shadow: 0 6px 24px rgba(7, 27, 62, .08); padding: 2rem 1.6rem; }
@media (min-width: 576px) { .wz-card { padding: 2.25rem 2.5rem; } }
.wz-head { margin-bottom: 1.5rem; }
.wz-head h2 { font-size: 1.4rem; color: var(--ink, #0d1b2a); margin: 0 0 .3rem; }
.wz-head p { color: var(--muted, #6b7c93); margin: 0; font-size: .93rem; }

.wz-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid #edf1f7; }

/* Choice cards (fees, sessions) */
.choice-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .choice-grid:not(.choice-grid--stack) { grid-template-columns: 1fr 1fr; } }
.choice-card { display: block; cursor: pointer; margin: 0; position: relative; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card__body {
  display: flex; flex-direction: column; gap: .5rem; height: 100%;
  padding: 1.1rem 1.2rem 1.1rem 3rem;
  border: 2px solid #d6e0ef; border-radius: 14px; background: #fff;
  transition: border-color .15s, box-shadow .15s, background .15s;
  position: relative;
}
.choice-card__body::before {
  content: ''; position: absolute; left: 1.05rem; top: 1.2rem;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #b7c6dd; background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice-card:hover .choice-card__body { border-color: #9db8e0; }
.choice-card input:focus-visible + .choice-card__body { box-shadow: 0 0 0 4px rgba(21, 101, 192, .22); }
.choice-card input:checked + .choice-card__body { border-color: var(--primary, #1565c0); background: #f3f8ff; box-shadow: 0 6px 18px rgba(21, 101, 192, .12); }
.choice-card input:checked + .choice-card__body::before { border-color: var(--primary, #1565c0); background: var(--primary, #1565c0); box-shadow: inset 0 0 0 4px #fff; }
.choice-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.choice-card__title { font-weight: 700; color: var(--ink, #0d1b2a); font-size: .98rem; line-height: 1.3; }
.choice-card__price { font-weight: 800; font-size: 1.35rem; color: var(--primary, #1565c0); white-space: nowrap; }
.choice-card__meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .8rem; color: var(--muted, #6b7c93); }
.choice-card__desc { font-size: .83rem; color: var(--muted, #6b7c93); line-height: 1.5; }
.choice-card--compact .choice-card__body { padding-top: .95rem; padding-bottom: .95rem; }
.choice-card--compact .choice-card__body::before { top: 50%; transform: translateY(-50%); }

.wz-badge { display: inline-block; padding: .18rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.wz-badge--early { background: #fff4de; color: #9a6400; }
.wz-badge--regular { background: #e5f1fb; color: #1565c0; }

.wz-student { margin-top: 1.6rem; padding: 1.3rem 1.4rem; background: #f6f9fe; border: 1px solid #e0e9f6; border-radius: 14px; }
.wz-student h3 { font-size: 1.02rem; margin: 0 0 .25rem; color: var(--ink, #0d1b2a); }

/* Review */
.wz-review { border: 1px solid #e3eaf5; border-radius: 14px; padding: 1.1rem 1.3rem; margin-bottom: 1rem; }
.wz-review header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.wz-review h3 { font-size: .95rem; margin: 0; color: var(--deep, #071b3e); text-transform: uppercase; letter-spacing: .04em; }
.wz-total { display: flex; justify-content: space-between; align-items: center; background: #eef5ff; border-radius: 14px; padding: 1.1rem 1.3rem; margin: 1.4rem 0; font-size: 1.05rem; font-weight: 600; }
.wz-total strong { font-size: 1.6rem; color: var(--primary, #1565c0); }

/* Sidebar summary */
.wz-summary { background: #fff; border-radius: 16px; box-shadow: 0 6px 24px rgba(7, 27, 62, .08); padding: 1.5rem; position: sticky; top: 100px; }
.wz-summary h2 { font-size: 1.02rem; color: var(--deep, #071b3e); margin-bottom: 1rem; }
.wz-summary__row { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.wz-summary__name { font-weight: 700; font-size: .93rem; margin-bottom: .35rem; line-height: 1.35; }
.wz-summary__price { font-weight: 700; white-space: nowrap; }
.wz-summary__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed #cfdcf0; margin-top: 1rem; padding-top: 1rem; font-weight: 600; }
.wz-summary__total strong { font-size: 1.45rem; color: var(--primary, #1565c0); }
.wz-summary__notes { list-style: none; margin: 1.2rem 0 0; padding: 1rem 0 0; border-top: 1px solid #edf1f7; display: grid; gap: .55rem; font-size: .83rem; color: var(--muted, #6b7c93); }
.wz-summary__notes i { color: var(--accent, #00b4d8); margin-right: .5rem; }
@media (max-width: 991.98px) { .wz-summary { position: static; } }

/* Searchable country list (Tom Select) in the site style */
.acc-input .ts-wrapper.form-select {
  border: 1.5px solid #d6e0ef; border-radius: 12px; background-image: none;
  padding: 0 !important; box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.acc-input .ts-wrapper .ts-control {
  min-height: 45px; padding: .55rem 2.2rem .55rem .95rem;
  border: 0; box-shadow: none; background: transparent;
  font-size: .95rem; align-items: center; border-radius: 12px;
}
.acc-input .ts-wrapper .ts-control input { font-size: .95rem; }
.acc-input .ts-wrapper.single .ts-control::after {
  content: ''; position: absolute; right: 1rem; top: 50%; margin-top: -3px;
  border: 5px solid transparent; border-top-color: #6b7c93; border-bottom-width: 0;
}
.acc-input .ts-wrapper.focus.form-select { border-color: var(--primary, #1565c0); box-shadow: 0 0 0 4px rgba(21, 101, 192, .12); }
.acc-input .is-invalid + .ts-wrapper.form-select { border-color: #dc3545; }
.ts-dropdown { border-radius: 12px; border: 1px solid #d6e0ef; box-shadow: 0 12px 30px rgba(7, 27, 62, .15); overflow: hidden; font-size: .93rem; z-index: 1080; }
.ts-dropdown .active { background: rgba(21, 101, 192, .09); color: var(--ink, #0d1b2a); }
