:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0d2740;
  background: #edf6ff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: #edf6ff;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #edf6ff;
  overflow-x: hidden;
  overflow-y: auto;
}

button, input { font: inherit; }

.page-shell {
  width: calc(100% / 0.85);
  min-height: calc(100vh / 0.85);
  background: #edf6ff;
  transform: scale(0.85);
  transform-origin: top left;
}

.main-content {
  width: 100%;
  min-height: calc(100vh / 0.85);
  display: grid;
  /* Keep the portrait event artwork fully visible at exactly the device height.
     1081 / 1350 is the poster aspect ratio. */
  grid-template-columns: minmax(0, calc((100vh / 0.85) * 0.80074)) minmax(520px, 1fr);
  align-items: start;
  background: #edf6ff;
}

.event-banner {
  min-width: 0;
  width: 100%;
  height: calc(100vh / 0.85);
  background: #efe3cd;
  overflow: hidden;
  line-height: 0;
  position: sticky;
  top: 0;
}

.event-banner-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}



.event-banner-mobile {
  display: none;
}

.registration-card {
  width: calc(100% - 48px);
  min-height: calc((100vh / 0.85) - 48px);
  margin: 24px;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #cbd8e2;
  border-radius: 18px;
  padding: 46px 56px;
  box-shadow: 0 12px 32px rgba(18, 55, 82, 0.12);
}

.card-header {
  text-align: center;
  margin-bottom: 38px;
}

.card-header h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #102b46;
}

.title-divider {
  width: 134px;
  height: 18px;
  position: relative;
  margin: 14px auto 0;
}

.title-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #dbe5ee;
  transform: translateY(-50%);
}

.title-divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1d9cd6;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px #ffffff;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-group label,
.participant-fieldset legend {
  font-size: 1.05rem;
  font-weight: 650;
  color: #0c2740;
}

.field-group > input,
.phone-field {
  width: 100%;
  height: 68px;
  border: 1px solid #c8d5df;
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group > input {
  padding: 0 20px;
  color: #102b46;
  outline: none;
}

.field-group > input::placeholder,
.phone-field input::placeholder { color: #a9b8c8; }

.field-group > input:focus,
.phone-field:focus-within {
  border-color: #1c92ce;
  box-shadow: 0 0 0 4px rgba(28, 146, 206, 0.12);
}

.phone-field {
  display: flex;
  overflow: hidden;
}

.country-code {
  width: 104px;
  flex: 0 0 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #c8d5df;
  background: #f4f8fb;
  font-size: 1.08rem;
  font-weight: 700;
  color: #102b46;
  user-select: none;
}

.phone-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 20px;
  background: transparent;
  color: #102b46;
}

.participant-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.participant-fieldset legend { margin-bottom: 17px; }

.radio-row {
  display: flex;
  align-items: center;
  gap: 72px;
}

.radio-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 1.06rem;
  color: #102b46;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-radio {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 2px solid #aebdca;
  background: #ffffff;
  position: relative;
  transition: 0.2s ease;
}

.radio-option input:checked + .custom-radio { border-color: #1b96d2; }

.radio-option input:checked + .custom-radio::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #1b96d2;
}

.radio-option input:focus-visible + .custom-radio {
  box-shadow: 0 0 0 4px rgba(28, 146, 206, 0.14);
}

.form-message {
  margin: -6px 0 0;
  font-size: 0.95rem;
  color: #47667e;
  text-align: center;
}

.register-button {
  width: 100%;
  height: 64px;
  margin-top: 4px;
  border: 0;
  border-radius: 9px;
  background: #128ed0;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(18, 142, 208, 0.2);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.register-button:hover {
  background: #0e83c2;
  box-shadow: 0 10px 22px rgba(18, 142, 208, 0.26);
}

.register-button:active { transform: translateY(1px); }

.register-button:focus-visible {
  outline: 4px solid rgba(28, 146, 206, 0.2);
  outline-offset: 3px;
}

.form-message.success { color: #14723f; }
.form-message.error { color: #b42318; }
.form-message.warning { color: #9a6700; }

.register-button:disabled {
  cursor: wait;
  opacity: 0.72;
  box-shadow: none;
}

/* Mobile keeps the original stacked layout: image first, form below. */
@media (max-width: 760px) {
  .main-content {
    display: block;
    min-height: 0;
  }

  .event-banner {
    width: 100%;
    height: auto;
    position: static;
  }

  .event-banner-desktop {
    display: none;
  }

  .event-banner-mobile {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .registration-card {
    width: calc(100% - 24px);
    min-height: 0;
    margin: 12px;
    padding: 30px 22px 34px;
    border: 1px solid #cbd8e2;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(18, 55, 82, 0.10);
  }

  .card-header { margin-bottom: 30px; }
  .registration-form { gap: 22px; }

  .field-group > input,
  .phone-field { height: 60px; }

  .country-code {
    width: 82px;
    flex-basis: 82px;
  }

  .radio-row { gap: 44px; }
  .register-button { height: 60px; }
}

@media (max-width: 430px) {
  .registration-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .radio-row { gap: 34px; }
}
