/* =========================================================
   Registration page — UI presentation only
   ========================================================= */

.form-container {
  width: min(100% - 32px, 1000px);
  margin: 0 auto;
  border: 1px solid rgba(223, 230, 241, .95);
  border-radius: var(--radius-lg) !important;
  background: var(--surface);
  box-shadow: var(--box-shadow) !important;
}

.form-container > img {
  display: block;
  width: 100%;
  height: clamp(150px, 23vw, 260px) !important;
  object-fit: cover;
  object-position: center;
}

#registration-form {
  padding: clamp(22px, 4vw, 44px) !important;
}

#registration-form > .row { --bs-gutter-x: 1.25rem; --bs-gutter-y: 1.5rem; }

#registration-form label:not(.conference-card) {
  display: inline-block;
  margin-bottom: 8px;
  color: #263651;
  font-size: .91rem;
  font-weight: 650 !important;
}

#registration-form .text-danger { margin-left: 2px; }

.form-control, .form-select, .select2-container--bootstrap-5 .select2-selection {
  min-height: 48px;
  border: 1px solid #d8e0ed;
  border-radius: 10px;
  background-color: #fff;
  color: var(--text-color);
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.form-control, .form-select { padding: .72rem .9rem; }
.form-control::placeholder { color: #9aa6b8; }

.form-control:focus, .form-select:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.form-control[readonly] {
  color: #465571;
  background: #f6f8fc;
  font-weight: 700;
}

.form-container .login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #17233d;
  color: #fff;
  font-weight: 600;
}

button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 50px;
  padding: 12px 28px;
  border: 1px solid var(--primary);
  border-radius: 11px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(51, 97, 255, .2);
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  background: #244fe6;
  box-shadow: 0 11px 24px rgba(51, 97, 255, .26);
}
button[type="submit"]:active { transform: translateY(0); }
button[type="submit"]:disabled { opacity: .65; cursor: not-allowed; box-shadow: none; }

#form-response-wrapper { display: none; }
#form-response { border-radius: 10px; margin-bottom: 0; }

fieldset {
  min-width: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
}

.conference-section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4px 0;
}

.conference-label {
  margin: 0 0 8px;
  color: var(--text-color);
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -.02em;
}

.conference-description {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--muted-color);
  font-size: .94rem;
  line-height: 1.65;
}

.conference-option { position: relative; height: 100%; }

.conference-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.conference-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(18px, 2.4vw, 26px);
  margin: 0;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(27, 47, 83, .035);
  transition: border-color .2s ease, background-color .2s ease,
              box-shadow .2s ease, transform .2s ease;
}

.conference-card:hover {
  border-color: rgba(51, 97, 255, .55);
  box-shadow: 0 12px 28px rgba(35, 62, 120, .09);
  transform: translateY(-2px);
}

.conference-radio:checked + .conference-card {
  border-color: var(--primary);
  background: linear-gradient(145deg, #f4f7ff 0%, #fff 82%);
  box-shadow: 0 0 0 2px rgba(51, 97, 255, .09), 0 12px 28px rgba(35, 62, 120, .08);
}

.conference-radio:focus-visible + .conference-card {
  outline: 3px solid rgba(51, 97, 255, .35);
  outline-offset: 3px;
}

.conference-card-header {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 17px;
}

.conference-radio-indicator {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border: 1.8px solid #aab6c8;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px #fff;
}

.conference-radio:checked + .conference-card .conference-radio-indicator {
  border: 6px solid var(--primary);
}

.conference-title {
  margin: 0;
  color: #1b2b49;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .005em;
}

.conference-date {
  margin: 7px 0 0;
  color: var(--primary);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.6;
}

.conference-content {
  flex-grow: 1;
  color: #657189;
  font-size: .91rem;
  line-height: 1.75;
}

.conference-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #edf1f7;
}

.learn-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(51, 97, 255, .35);
  border-radius: 9px;
  color: var(--primary);
  background: #fff;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.learn-more-btn:hover {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.selected-label {
  color: var(--primary);
  font-size: .78rem;
  font-weight: 800;
  visibility: hidden;
}
.conference-radio:checked + .conference-card .selected-label { visibility: visible; }

.conference-submit {
  border-color: var(--primary);
  background: var(--primary);
  padding: 11px 28px;
  font-weight: 700;
}
.conference-submit:hover { border-color: #244fe6; background: #244fe6; }

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  line-height: 46px;
  padding-left: 2px;
  color: var(--text-color);
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
  height: 46px;
}
.select2-container { max-width: 100%; }

@media (min-width: 992px) {
  .form-container { width: min(100% - 48px, 1000px); }
}

@media (max-width: 767.98px) {
  body { padding-top: 24px !important; padding-bottom: 24px !important; }
  .form-container { width: calc(100% - 24px); border-radius: 16px !important; }
  .form-container > img { height: 160px !important; }
  #registration-form { padding: 22px 18px !important; }
  #registration-form > .row { --bs-gutter-x: 1rem; --bs-gutter-y: 1.15rem; }
  button[type="submit"] { width: 100%; }
}

@media (max-width: 575.98px) {
  .conference-card { padding: 18px; }
  .conference-title { font-size: 1rem; }
  .conference-actions { align-items: flex-start; }
  .learn-more-btn { padding-inline: 11px; }
}
