:root {
  --bg: #03111d;
  --bg2: #062232;
  --teal: #00cbd1;
  --mint: #10e2d2;
  --text: #f4fcff;
  --muted: #9ab3c0;
  --line: rgba(0, 203, 209, 0.18);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, Arial, sans-serif;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(980px, 92%);
  margin: auto;
}
.site-header {
  background: #03111d;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand span {
  color: var(--teal);
}
.back {
  color: var(--teal);
}
main {
  padding: 56px 0 90px;
}
.eyebrow {
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin: 12px 0;
}
h2 {
  font-size: 1.3rem;
  margin: 0 0 18px;
}
.intro {
  max-width: 720px;
  color: var(--muted);
  margin-bottom: 35px;
}
.panel {
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #082a3a, #051c29);
  margin: 20px 0;
}
form {
  display: block;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
legend {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.full {
  grid-column: 1/-1;
}
label {
  font-weight: 650;
  font-size: 0.95rem;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 13px;
  background: #041a27;
  border: 1px solid #ffffff40;
  border-radius: 10px;
  color: white;
  font: inherit;
}
select option {
  background: #041a27;
}
textarea {
  min-height: 115px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.hint {
  color: var(--muted);
  font-size: 0.85rem;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.consent input {
  width: auto;
  margin-top: 7px;
}
.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--mint));
  color: #02202a;
  font-weight: 800;
  padding: 15px 28px;
  cursor: pointer;
  font: inherit;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.notice {
  padding: 15px;
  border: 1px solid #ffd27a;
  border-radius: 12px;
  color: #ffe4ae;
  background: #8b5a001c;
  margin: 20px 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.status {
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 28px 0;
}
@media (max-width: 640px) {
  .fields {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  main {
    padding: 36px 0 65px;
  }
}
.search-select {
    position: relative;
}

.search-select input {
    width: 100%;
    padding-right: 45px;
}

.search-select-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #9ab3c0;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
}

.search-select-options {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 5px);
    z-index: 50;

    display: none;

    max-height: 220px;
    overflow-y: auto;

    padding: 6px;

    background: #062232;
    border: 1px solid rgba(0, 203, 209, 0.25);
    border-radius: 12px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.search-select.open .search-select-options {
    display: grid;
}

.search-select-options button {
    width: 100%;
    padding: 11px 12px;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: #f4fcff;

    text-align: left;
    font: inherit;

    cursor: pointer;
}

.search-select-options button:hover,
.search-select-options button.highlighted {
    background: rgba(0, 203, 209, 0.12);
    color: #00cbd1;
}

.search-select-options button.hidden {
    display: none;
}

.search-select-options .no-results {
    padding: 11px 12px;
    color: #9ab3c0;
    font-size: 14px;
}

.role-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.role-row .search-select {
    flex: 1;
}

.remove-role {
    width: 42px;
    height: 46px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 100, 100, 0.25);
    border-radius: 10px;
    background: rgba(255, 80, 80, 0.08);
    color: #ff8c8c;
    font-size: 22px;
    cursor: pointer;
}

.remove-role:hover {
    background: rgba(255, 80, 80, 0.15);
}

.add-role-btn {
    margin-top: 4px;
    padding: 10px 16px;
    border: 1px solid rgba(0, 203, 209, 0.25);
    border-radius: 10px;
    background: rgba(0, 203, 209, 0.08);
    color: #00cbd1;
    font: inherit;
    cursor: pointer;
}

.add-role-btn:hover {
    background: rgba(0, 203, 209, 0.14);
}

@media (max-width: 600px) {
    .role-row {
        gap: 8px;
    }

    .remove-role {
        width: 40px;
    }
}

.selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(0, 203, 209, 0.12);
    border: 1px solid rgba(0, 203, 209, 0.25);
    border-radius: 20px;
    color: #f4fcff;
    font-size: 14px;
}

.selected-tag button {
    border: 0;
    background: transparent;
    color: #9ab3c0;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.selected-tag button:hover {
    color: #00cbd1;
}

.form-help {
    display: block;
    margin-top: 7px;
    color: #9ab3c0;
    font-size: 13px;
}

/* =========================================================
   ROLE ROW
   ========================================================= */

.role-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 42px;
    align-items: start;
    gap: 10px;
    margin-bottom: 12px;
}

.role-select {
    min-width: 0;
}


/* =========================================================
   NUMBER OF TALENTS
   ========================================================= */

.role-quantity input {
    width: 100%;
    min-height: 46px;
    padding: 0 10px;
    border: 1px solid rgba(0, 203, 209, 0.18);
    border-radius: 10px;
    background: #062232;
    color: #f4fcff;
    font: inherit;
    text-align: center;
}

.role-quantity input:focus {
    outline: none;
    border-color: #00cbd1;
    box-shadow: 0 0 0 3px rgba(0, 203, 209, 0.08);
}


/* =========================================================
   REMOVE ROLE
   ========================================================= */

.remove-role {
    width: 42px;
    height: 46px;
    border: 1px solid rgba(255, 100, 100, 0.25);
    border-radius: 10px;
    background: rgba(255, 80, 80, 0.08);
    color: #ff8c8c;
    font-size: 22px;
    cursor: pointer;
}

.remove-role:hover {
    background: rgba(255, 80, 80, 0.15);
}


/* =========================================================
   ADD ROLE BUTTON
   ========================================================= */

.add-role-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 10px 16px;
    border: 1px solid rgba(0, 203, 209, 0.25);
    border-radius: 10px;
    background: rgba(0, 203, 209, 0.08);
    color: #00cbd1;
    font: inherit;
    cursor: pointer;
    transition: 0.2s ease;
}

.add-role-btn:hover {
    background: rgba(0, 203, 209, 0.14);
    border-color: rgba(0, 203, 209, 0.4);
}


/* =========================================================
   SCREEN READER ONLY
   ========================================================= */

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


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

@media (max-width: 600px) {

    .role-row {
        grid-template-columns: minmax(0, 1fr) 70px 40px;
        gap: 7px;
    }

    .role-quantity input {
        padding: 0 5px;
    }

    .remove-role {
        width: 40px;
    }
}