* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-main: #060b14;
    --bg-card: rgba(14, 26, 46, 0.80);
    --bg-input: rgba(5, 13, 25, 0.68);

    --primary: #4d8dff;
    --secondary: #7b5cff;

    --text-main: #eef4ff;
    --text-soft: #9aabc5;
    --text-muted: #71839f;

    --border: rgba(255, 255, 255, 0.09);
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    min-height: 100vh;
    color: var(--text-main);
    background: radial-gradient(circle at top left, #1b3761 0%, #0c1728 30%, #060b14 72%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    top: 15%;
    left: -200px;
    background: rgba(74, 130, 255, 0.13);
    filter: blur(100px);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -150px;
    background: rgba(120, 77, 255, 0.12);
    filter: blur(110px);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}


/* =========================================================
   HEADER
========================================================= */

.topbar {
    width: 100%;
    padding: 22px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(5, 12, 24, 0.58);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-home-link {
    color: inherit;
    text-decoration: none;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.back-home-button {
    min-height: 42px;
    padding: 9px 14px 9px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #dbe8fb;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.back-home-button:hover,
.back-home-button:focus-visible {
    color: #ffffff;
    border-color: rgba(123, 164, 255, 0.34);
    background: rgba(77, 141, 255, 0.12);
    transform: translateY(-1px);
}

.back-home-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand h2 {
    font-size: 18px;
    margin-bottom: 3px;
}

.brand p {
    color: #8c9db8;
    font-size: 12px;
}

.open-badge {
    padding: 9px 15px;
    border-radius: 999px;
    color: #afd0ff;
    border: 1px solid rgba(102, 157, 255, 0.27);
    background: rgba(65, 119, 255, 0.10);
    font-size: 12px;
}


/* =========================================================
   LOCATION DROPDOWN FALLBACK
========================================================= */

.location-manual-input[hidden] {
    display: none;
}

.location-manual-input:not([hidden]) {
    display: block;
    margin-top: 8px;
}

.location-select-loading {
    opacity: 0.72;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    width: min(1200px, 94%);
    margin: 0 auto;
    text-align: center;
    padding: 50px 0 32px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 20px;
    border-radius: 100px;
    color: #9bc0ff;
    font-size: 12px;
    background: rgba(69, 122, 255, 0.10);
    border: 1px solid rgba(99, 149, 255, 0.20);
}

.hero-tag .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #53db98;
    box-shadow: 0 0 10px rgba(83, 219, 152, 0.8);
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 18px;
    line-height: 1.04;
    letter-spacing: -2px;
    font-size: clamp(38px, 6vw, 66px);
}

.hero h1 span {
    color: transparent;
    background: linear-gradient(90deg, #62a1ff, #a377ff, #70e1ff);
    background-clip: text;
    -webkit-background-clip: text;
}

.hero p {
    max-width: 700px;
    margin: 0 auto;
    color: #9aacc5;
    line-height: 1.75;
    font-size: 16px;
}


/* =========================================================
   MAIN FORM CARD
========================================================= */

.page {
    width: min(1350px, 94%);
    margin: 15px auto 90px;
}

.form-card {
    overflow: hidden;
    border-radius: 26px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(22px);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.38);
}

.form-title {
    padding: 31px 38px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, rgba(67, 119, 255, 0.09), rgba(122, 82, 255, 0.04));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.form-title h2 {
    font-size: 23px;
    margin-bottom: 6px;
}

.form-title p {
    font-size: 13px;
    color: #8fa1bd;
}

.form-indicator {
    font-size: 12px;
    padding: 9px 14px;
    border-radius: 10px;
    color: #a7c5ff;
    border: 1px solid rgba(82, 137, 255, 0.22);
    background: rgba(68, 120, 255, 0.08);
}

form {
    padding: 38px;
}


/* =========================================================
   FORM SECTIONS
========================================================= */

.form-section {
    margin-bottom: 45px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 26px;
}

.section-number {
    flex-shrink: 0;
    width: 37px;
    height: 37px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, #4387ff, #7058ff);
    box-shadow: 0 8px 20px rgba(69, 121, 255, 0.18);
}

.section-heading h3 {
    font-size: 18px;
}

.section-heading p {
    color: #788ba9;
    font-size: 12px;
    margin-top: 3px;
}


/* =========================================================
   GRID
========================================================= */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.full {
    grid-column: 1 / -1;
}


/* =========================================================
   FORM INPUTS
========================================================= */

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

label {
    color: #ced9ea;
    font-size: 13px;
    font-weight: 600;
}

.required {
    color: #ff8585;
}

input,
select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    outline: none;
    border-radius: 12px;
    padding: 14px 15px;
    color: var(--text-main);
    background: var(--bg-input);
    font-size: 14px;
    transition: all 0.18s ease;
}

input::placeholder {
    color: #54647c;
}

input:focus,
select:focus {
    border-color: rgba(83, 142, 255, 0.85);
    box-shadow: 0 0 0 4px rgba(70, 129, 255, 0.10);
    background: rgba(6, 16, 30, 0.88);
}

select {
    cursor: pointer;
}

select option {
    color: white;
    background: #101c30;
}

.field-info {
    font-size: 11px;
    color: #687d9c;
    line-height: 1.5;
}


/* =========================================================
   HOW DID YOU HEAR ABOUT US
========================================================= */

#heardFrom {
    width: 100%;
    min-height: 48px;
    cursor: pointer;
    color: var(--text-main);
    background: var(--bg-input);
}

#heardFrom:invalid {
    color: #71839f;
}

#heardFrom option {
    color: #eef4ff;
    background: #101c30;
}


/* =========================================================
   WHATSAPP
========================================================= */

.same-number {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.same-number input {
    width: 15px;
    height: 15px;
    min-height: auto;
    accent-color: #4a8cff;
}

.same-number label {
    font-weight: 400;
    font-size: 11px;
    color: #8194b2;
}


/* =========================================================
   COMPETITIONS
========================================================= */

.competition-intro {
    margin-bottom: 20px;
    padding: 15px 17px;
    border-radius: 12px;
    background: rgba(65, 118, 255, 0.06);
    border: 1px solid rgba(79, 135, 255, 0.14);
    color: #8fa8ce;
    font-size: 12px;
    line-height: 1.6;
}

.competition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.competition-card {
    position: relative;
    cursor: pointer;
    display: block;
    min-height: 135px;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(7, 16, 30, 0.62);
    transition: all 0.20s ease;
    overflow: hidden;
}

.competition-card:hover {
    transform: translateY(-2px);
    border-color: rgba(93, 148, 255, 0.38);
    background: rgba(21, 39, 70, 0.65);
}

.competition-card.selected {
    border-color: rgba(84, 144, 255, 0.80);
    background: linear-gradient(135deg, rgba(65, 122, 255, 0.17), rgba(112, 83, 255, 0.08));
    box-shadow: 0 10px 30px rgba(47, 102, 227, 0.12);
}

.competition-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.competition-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(72, 128, 255, 0.12);
    border: 1px solid rgba(82, 143, 255, 0.16);
}

.competition-card h4 {
    margin-bottom: 7px;
    font-size: 15px;
}

.competition-card p {
    color: #798ba8;
    font-size: 11px;
    line-height: 1.5;
}

.check-indicator {
    position: absolute;
    width: 23px;
    height: 23px;
    right: 15px;
    top: 15px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 12px;
}

.competition-card.selected .check-indicator {
    color: white;
    border-color: transparent;
    background: linear-gradient(135deg, #4088ff, #7358ff);
}


/* =========================================================
   AGE FILTER PLACEHOLDER
========================================================= */

.age-rule-info {
    display: none;
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 186, 86, 0.16);
    background: rgba(255, 171, 64, 0.06);
    color: #c5a779;
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   SELECTED COMPETITIONS
========================================================= */

.selected-summary {
    margin-top: 20px;
    display: none;
    padding: 17px;
    border-radius: 13px;
    background: rgba(68, 123, 255, 0.06);
    border: 1px solid rgba(79, 135, 255, 0.14);
}

.selected-summary strong {
    display: block;
    margin-bottom: 11px;
    font-size: 12px;
    color: #b7c8df;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.competition-tag {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 11px;
    color: #a9c7ff;
    background: rgba(65, 122, 255, 0.12);
    border: 1px solid rgba(87, 145, 255, 0.17);
}


/* =========================================================
   AGREEMENT
========================================================= */

.agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 17px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.agreement input {
    width: 16px;
    height: 16px;
    min-height: auto;
    margin-top: 2px;
    accent-color: #4b8eff;
}

.agreement label {
    color: #899bb7;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.6;
}


/* =========================================================
   SUBMIT
========================================================= */

.submit-area {
    margin-top: 29px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.secure-message {
    color: #7488a7;
    font-size: 11px;
}

.submit-button {
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 13px;
    padding: 15px 29px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #397eff, #6e59ff);
    box-shadow: 0 14px 35px rgba(71, 115, 255, 0.28);
    transition: all 0.18s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(71, 115, 255, 0.38);
}

.submit-button:active {
    transform: translateY(0);
}


/* =========================================================
   STATUS
========================================================= */

#status {
    display: none;
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 12px;
    color: #9ec1ff;
    border: 1px solid rgba(82, 140, 255, 0.16);
    background: rgba(64, 118, 255, 0.07);
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .competition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .topbar {
        padding: 17px 5%;
    }

    .open-badge {
        display: none;
    }

    .hero {
        width: 92%;
        padding: 35px 0 25px;
    }

    .hero h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 14px;
    }

    .page {
        width: 94%;
        margin-bottom: 50px;
    }

    .brand-logo {
        height: 42px;
    }

    .form-title {
        padding: 22px 20px;
        align-items: flex-start;
        flex-direction: column;
    }

    form {
        padding: 20px;
    }

    .grid,
    .competition-grid {
        grid-template-columns: 1fr;
    }

    .full {
        grid-column: auto;
    }

    .competition-card {
        min-height: auto;
    }

    .submit-area {
        flex-direction: column;
        align-items: stretch;
    }

    .submit-button {
        width: 100%;
    }
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

input, select, textarea, button {
  max-width: 100%;
}

.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
}

#status {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 9999;

  width: min(520px, calc(100vw - 32px));
  padding: 16px 20px;

  background: #17213d;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;

  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  animation: statusPopup 0.35s ease;
  pointer-events: none;
}

#status:empty {
  display: none;
}

@keyframes statusPopup {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 700px) {

  .topbar {
    padding: 14px 16px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    max-width: 80px;
    height: auto;
  }

  .brand h2 {
    font-size: 18px;
    line-height: 1.15;
  }

  .brand p {
    font-size: 11px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .back-home-link {
    font-size: 13px;
    white-space: nowrap;
  }

  .open-badge {
    display: none;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 54px);
    line-height: 1.02;
  }

  .hero > p {
    font-size: 15px;
    line-height: 1.6;
  }

  .page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .form-card {
    width: 100%;
    padding: 22px 18px;
    border-radius: 20px;
  }

  .form-title {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-indicator {
    width: fit-content;
  }

  .grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .competition-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .competition-card {
    width: 100%;
  }

  .agreement {
    align-items: flex-start;
  }

  .submit-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .secure-message {
    text-align: center;
  }

  .submit-button {
    width: 100%;
    min-height: 54px;
  }

  #status {
    width: calc(100vw - 24px);
    bottom: max(12px, env(safe-area-inset-bottom));
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 13px;
  }
}

/* =========================================================
   AGE-FILTERED COMPETITION OPTIONS
========================================================= */

.competition-card.is-age-hidden {
    display: none;
}

.competition-grid[data-visible-count="0"] {
    display: none;
}

.competition-grid[data-visible-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.competition-grid[data-visible-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.competition-grid[data-visible-count="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.age-rule-info.is-ready {
    border-color: rgba(83, 219, 152, 0.24);
    background: rgba(83, 219, 152, 0.08);
    color: #a9e9ca;
}

.age-rule-info.is-warning {
    border-color: rgba(255, 133, 133, 0.24);
    background: rgba(255, 101, 101, 0.08);
    color: #ffb4b4;
}


/* =========================================================
   REGISTRATION RESULT MODAL
========================================================= */

body.modal-open {
    overflow: hidden;
}

.registration-modal[hidden] {
    display: none;
}

.registration-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.registration-modal.is-visible {
    opacity: 1;
}

.registration-modal-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(77, 141, 255, 0.18), transparent 34%), rgba(2, 7, 16, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.registration-modal-card {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    padding: 42px 38px 36px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: radial-gradient(circle at 50% 0%, rgba(77, 141, 255, 0.18), transparent 36%),
        linear-gradient(145deg, rgba(20, 36, 62, 0.98), rgba(7, 15, 29, 0.98));
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    text-align: center;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s ease;
}

.registration-modal.is-visible .registration-modal-card {
    transform: translateY(0) scale(1);
}

.registration-modal-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    left: 50%;
    top: -155px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: rgba(88, 147, 255, 0.22);
    filter: blur(32px);
    pointer-events: none;
}

.registration-modal-close {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    color: #b9c7dc;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: transform 0.18s ease, background 0.18s ease;
}

.registration-modal-close:hover {
    transform: rotate(6deg) scale(1.05);
    background: rgba(255, 255, 255, 0.10);
}

.registration-modal-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    border-radius: 50%;
    color: white;
    font-size: 34px;
    font-weight: 800;
}

.registration-modal.is-success .registration-modal-icon {
    background: linear-gradient(135deg, #3bd18e, #2989ff);
    box-shadow: 0 18px 42px rgba(49, 186, 144, 0.28), 0 0 0 10px rgba(72, 212, 158, 0.06);
}

.registration-modal.is-error .registration-modal-icon {
    background: linear-gradient(135deg, #ff6b7c, #ff8a55);
    box-shadow: 0 18px 42px rgba(255, 107, 124, 0.24), 0 0 0 10px rgba(255, 107, 124, 0.06);
}

.registration-modal-kicker {
    margin-bottom: 10px;
    color: #8ab8ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.registration-modal-card h2 {
    margin: 0;
    color: #f4f8ff;
    font-size: clamp(28px, 5vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.registration-modal-message {
    max-width: 440px;
    margin: 17px auto 0;
    color: #9fb0c9;
    font-size: 15px;
    line-height: 1.7;
}

.registration-modal-name {
    margin: 13px 0 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.registration-modal-name::before {
    content: "Welcome, ";
    color: #82b2ff;
    font-weight: 600;
}

.registration-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.registration-modal-actions[hidden] {
    display: none;
}

.registration-modal-actions#registrationFailureActions {
    grid-template-columns: 1fr;
}

.registration-modal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.registration-modal-button:hover {
    transform: translateY(-2px);
}

.registration-modal-button-primary {
    color: white;
    background: linear-gradient(135deg, #397eff, #6e59ff);
    box-shadow: 0 12px 28px rgba(71, 115, 255, 0.26);
}

.registration-modal-button-secondary {
    color: #c7d8f1;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 1000px) {

    .competition-grid[data-visible-count="3"],
    .competition-grid[data-visible-count="4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {

    .competition-grid[data-visible-count="2"],
    .competition-grid[data-visible-count="3"],
    .competition-grid[data-visible-count="4"] {
        grid-template-columns: 1fr;
    }

    .registration-modal {
        padding: 14px;
    }

    .registration-modal-card {
        padding: 38px 20px 24px;
        border-radius: 22px;
    }

    .registration-modal-actions {
        grid-template-columns: 1fr;
    }

    .registration-modal-name {
        font-size: 19px;
    }
}


@media (max-width: 640px) {
    .topbar {
        padding-left: 4%;
        padding-right: 4%;
    }

    .topbar-actions {
        gap: 8px;
    }

    .back-home-button {
        width: 42px;
        min-width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 12px;
    }

    .back-home-button-text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .open-badge {
        display: none;
    }
}

/* =========================================================
   WHATSAPP - SAME AS PHONE CHECKBOX FIX

   Keep the checkbox at its natural size. This rule is placed
   after the generic .field input rule so it is not stretched
   to the full width of the form field.
========================================================= */

.field .same-number input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    margin: 0;
    padding: 0;
    accent-color: #4a8cff;
}

.field .same-number label {
    margin: 0;
    line-height: 1.35;
    cursor: pointer;
}


/* =========================================================
   PHONE / WHATSAPP COUNTRY CODE SELECTORS
========================================================= */

.phone-number-group {
    display: grid;
    grid-template-columns: minmax(118px, 0.42fr) minmax(0, 1fr);
    gap: 9px;
    align-items: stretch;
}

.phone-number-group .country-code-select,
.phone-number-group input {
    min-width: 0;
}

.phone-number-group .country-code-select {
    padding-left: 11px;
    padding-right: 10px;
    font-size: 13px;
}

.phone-number-group .country-code-select:disabled {
    opacity: .72;
    cursor: not-allowed;
}

@media (max-width: 420px) {
    .phone-number-group {
        grid-template-columns: minmax(105px, 0.44fr) minmax(0, 1fr);
        gap: 7px;
    }

    .phone-number-group .country-code-select {
        padding-left: 9px;
        padding-right: 7px;
        font-size: 12px;
    }
}
/* Keep guide links outside checkbox labels to preserve card selection behavior. */
.competition-guide-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 18px 0 24px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(77, 141, 255, .06);
}
.competition-guide-links strong, .competition-guide-links small { flex-basis: 100%; }
.competition-guide-links a { color: #a8c8ff; text-decoration: underline; text-underline-offset: 3px; }
.competition-guide-links small { color: var(--text-soft); }
.competition-guide-links a:focus-visible { outline: 3px solid #6957aa; outline-offset: 4px; }
