/* ========================================
   BIVA V2 — REQUEST CONVERSION PAGE
======================================== */


/* ========================================
   BACK BUTTON
======================================== */

.talent-conversion-back-btn {
  width: fit-content;

  margin-bottom: 18px;
  padding: 0;

  display: inline-flex;
  align-items: center;

  gap: 8px;

  border: 0;

  color:
    var(--biva-muted);

  background:
    transparent;

  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;

  cursor: pointer;

  transition:
    color 160ms ease,
    transform 160ms ease;
}

.talent-conversion-back-btn:hover {
  color:
    var(--biva-blue-700);

  transform:
    translateX(-2px);
}

.talent-conversion-back-btn svg {
  width: 17px;
  height: 17px;

  fill: none;

  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ========================================
   CONTENT ROOT
======================================== */

.talent-conversion-content {
  width: 100%;
  min-width: 0;
}


/* ========================================
   CONVERSION HERO
======================================== */

.talent-conversion-hero {
  position: relative;

  width: 100%;
  min-height: 290px;

  padding:
    clamp(28px, 4vw, 52px);

  display: grid;

  grid-template-columns:
    minmax(0, 1.12fr)
    minmax(330px, 0.88fr);

  align-items: center;

  gap:
    clamp(32px, 5vw, 72px);

  border:
    1px solid
    rgba(255, 255, 255, 0.08);

  border-radius:
    var(--biva-radius-xl);

  color: #ffffff;

  background:
    radial-gradient(
      circle at 92% 7%,
      rgba(53, 112, 243, 0.42),
      transparent 35%
    ),
    radial-gradient(
      circle at 4% 100%,
      rgba(255, 200, 46, 0.09),
      transparent 31%
    ),
    linear-gradient(
      145deg,
      var(--biva-black),
      var(--biva-black-soft) 56%,
      #173675
    );

  box-shadow:
    0 28px 75px
    rgba(7, 11, 20, 0.19);

  overflow: hidden;
}

.talent-conversion-hero::before {
  content: "";

  position: absolute;
  inset: 0 0 auto 0;

  height: 4px;

  background:
    linear-gradient(
      90deg,
      var(--biva-blue-500),
      var(--biva-yellow-400),
      transparent 88%
    );
}

.talent-conversion-hero::after {
  content: "";

  position: absolute;

  width: 290px;
  height: 290px;

  right: -115px;
  bottom: -210px;

  border:
    1px solid
    rgba(255, 255, 255, 0.06);

  border-radius: 50%;

  box-shadow:
    0 0 0 54px
    rgba(255, 255, 255, 0.024),

    0 0 0 108px
    rgba(255, 255, 255, 0.012);

  pointer-events: none;
}

.talent-conversion-hero > * {
  position: relative;
  z-index: 1;
}

.talent-conversion-hero__kicker {
  display: block;

  margin-bottom: 11px;

  color:
    var(--biva-yellow-400);

  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.talent-conversion-hero__content h1 {
  max-width: 860px;

  margin: 0;

  color: #ffffff;

  font-size:
    clamp(2.5rem, 4.5vw, 4.9rem);

  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.talent-conversion-hero__content p {
  max-width: 720px;

  margin: 18px 0 0;

  color:
    rgba(255, 255, 255, 0.66);

  font-size:
    clamp(0.88rem, 1.2vw, 1rem);

  line-height: 1.7;
}


/* ========================================
   HERO SUMMARY PANEL
======================================== */

.talent-conversion-hero__summary {
  min-width: 0;

  padding:
    clamp(19px, 2.5vw, 28px);

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;

  border:
    1px solid
    rgba(255, 255, 255, 0.09);

  border-radius:
    var(--biva-radius-xl);

  background:
    rgba(255, 255, 255, 0.055);

  backdrop-filter:
    blur(10px);
}

.talent-conversion-hero__status {
  grid-column: 1 / -1;

  margin-bottom: 4px;

  display: inline-flex;
  align-items: center;

  gap: 8px;

  color:
    #dcfbed;

  font-size: 0.7rem;
  font-weight: 800;
}

.talent-conversion-hero__status > span {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background:
    #4bdd9d;

  box-shadow:
    0 0 0 5px
    rgba(75, 221, 157, 0.11);
}

.talent-conversion-hero__summary > div {
  min-width: 0;

  padding: 14px;

  border:
    1px solid
    rgba(255, 255, 255, 0.07);

  border-radius:
    var(--biva-radius-md);

  background:
    rgba(255, 255, 255, 0.045);
}

.talent-conversion-hero__summary > div > span {
  display: block;

  margin-bottom: 4px;

  color:
    rgba(255, 255, 255, 0.47);

  font-size: 0.64rem;
}

.talent-conversion-hero__summary strong {
  display: block;

  overflow-wrap: anywhere;

  color: #ffffff;

  font-size: 0.78rem;
  font-weight: 830;
  line-height: 1.45;
}


/* ========================================
   WORKSPACE
======================================== */

.talent-conversion-workspace {
  margin-top:
    clamp(40px, 5vw, 68px);
}

.talent-conversion-section-title {
  margin-bottom: 22px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(270px, 0.65fr);

  align-items: end;

  gap: 30px;
}

.talent-conversion-section-title > div > span {
  display: block;

  margin-bottom: 7px;

  color:
    var(--biva-blue-600);

  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.talent-conversion-section-title h2 {
  margin: 0;

  color:
    var(--biva-ink);

  font-size:
    clamp(1.8rem, 3vw, 2.8rem);

  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.talent-conversion-section-title > p {
  margin: 0;

  color:
    var(--biva-muted);

  font-size: 0.8rem;
  line-height: 1.55;
}


/* ========================================
   MAIN CONVERSION LAYOUT
======================================== */

.talent-conversion-layout {
  display: grid;

  grid-template-columns:
    minmax(310px, 0.82fr)
    minmax(0, 1.18fr);

  align-items: start;

  gap:
    clamp(18px, 2.5vw, 30px);
}


/* ========================================
   AGREEMENT PANELS
======================================== */

.talent-conversion-panel {
  min-width: 0;

  border:
    1px solid
    var(--biva-line);

  border-radius:
    var(--biva-radius-xl);

  background:
    rgba(255, 255, 255, 0.97);

  box-shadow:
    var(--biva-shadow-sm);

  overflow: hidden;
}

.talent-conversion-panel.is-client {
  position: sticky;
  top: 24px;
}

.talent-conversion-panel__header {
  padding:
    clamp(22px, 3vw, 30px);

  display: flex;
  align-items: flex-start;

  gap: 14px;

  border-bottom:
    1px solid
    var(--biva-line);

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(53, 112, 243, 0.08),
      transparent 37%
    ),
    var(--biva-surface-soft);
}

.talent-conversion-panel__icon {
  width: 46px;
  height: 46px;

  flex: 0 0 46px;

  display: grid;
  place-items: center;

  border-radius: 15px;

  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);
}

.talent-conversion-panel.is-associate
.talent-conversion-panel__icon {
  color: #805800;

  background:
    var(--biva-yellow-50);
}

.talent-conversion-panel__icon svg {
  width: 22px;
  height: 22px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.talent-conversion-panel__header > div {
  min-width: 0;
}

.talent-conversion-panel__header
> div
> span {
  display: block;

  margin-bottom: 5px;

  color:
    var(--biva-blue-600);

  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.talent-conversion-panel.is-associate
.talent-conversion-panel__header
> div
> span {
  color: #8f6500;
}

.talent-conversion-panel__header h2 {
  margin: 0;

  color:
    var(--biva-ink);

  font-size:
    clamp(1.28rem, 2vw, 1.75rem);

  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.talent-conversion-panel__header p {
  margin: 8px 0 0;

  color:
    var(--biva-muted);

  font-size: 0.73rem;
  line-height: 1.55;
}


/* ========================================
   CLIENT AGREEMENT GRID
======================================== */

.talent-conversion-agreement-grid {
  padding:
    clamp(18px, 2.5vw, 25px);

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;
}

.talent-conversion-agreement-item {
  min-width: 0;
  min-height: 92px;

  padding: 14px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  gap: 10px;

  border:
    1px solid
    var(--biva-line);

  border-radius:
    var(--biva-radius-md);

  background:
    var(--biva-surface-soft);
}

.talent-conversion-agreement-item.is-primary {
  border-color:
    rgba(53, 112, 243, 0.15);

  background:
    var(--biva-blue-50);
}

.talent-conversion-agreement-item.is-highlight {
  border-color:
    rgba(7, 148, 85, 0.15);

  background:
    var(--biva-success-soft);
}

.talent-conversion-agreement-item span {
  color:
    var(--biva-muted);

  font-size: 0.64rem;
  line-height: 1.4;
}

.talent-conversion-agreement-item strong {
  display: block;

  overflow-wrap: anywhere;

  color:
    var(--biva-ink);

  font-size: 0.79rem;
  font-weight: 880;
  line-height: 1.4;
}

.talent-conversion-agreement-item.is-highlight
strong {
  color:
    var(--biva-success);
}


/* ========================================
   CLIENT NOTE
======================================== */

.talent-conversion-client-note {
  margin:
    0 clamp(18px, 2.5vw, 25px)
    clamp(18px, 2.5vw, 25px);

  padding: 16px;

  display: flex;
  align-items: flex-start;

  gap: 12px;

  border:
    1px solid
    rgba(53, 112, 243, 0.14);

  border-radius:
    var(--biva-radius-lg);

  background:
    var(--biva-blue-50);
}

.talent-conversion-client-note > span {
  width: 39px;
  height: 39px;

  flex: 0 0 39px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  color:
    var(--biva-blue-700);

  background: #ffffff;
}

.talent-conversion-client-note svg {
  width: 19px;
  height: 19px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.talent-conversion-client-note strong {
  display: block;

  color:
    var(--biva-ink);

  font-size: 0.77rem;
  font-weight: 850;
}

.talent-conversion-client-note p {
  margin: 4px 0 0;

  color:
    var(--biva-muted);

  font-size: 0.67rem;
  line-height: 1.5;
}


/* ========================================
   ASSOCIATE FORM
======================================== */

.talent-conversion-form {
  width: 100%;
}

.talent-conversion-form__section {
  padding:
    clamp(22px, 3vw, 30px);

  border-bottom:
    1px solid
    var(--biva-line);
}

.talent-conversion-form__section > header {
  margin-bottom: 23px;

  display: flex;
  align-items: flex-start;

  gap: 13px;
}

.talent-conversion-form__section
> header
> span {
  width: 43px;
  height: 43px;

  flex: 0 0 43px;

  display: grid;
  place-items: center;

  border-radius: 14px;

  color: #805800;

  background:
    var(--biva-yellow-50);
}

.talent-conversion-form__section
> header
svg {
  width: 21px;
  height: 21px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.talent-conversion-form__section
> header
> div {
  min-width: 0;
}

.talent-conversion-form__section h3 {
  margin: 0;

  color:
    var(--biva-ink);

  font-size: 1rem;
  font-weight: 880;
}

.talent-conversion-form__section
header p {
  margin: 5px 0 0;

  color:
    var(--biva-muted);

  font-size: 0.71rem;
  line-height: 1.5;
}


/* ========================================
   FORM GRID AND FIELDS
======================================== */

.talent-conversion-fields {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;
}

.talent-conversion-field {
  min-width: 0;
}

.talent-conversion-field.is-full,
.talent-conversion-model-fields.is-full {
  grid-column: 1 / -1;
}

.talent-conversion-model-fields[hidden] {
  display: none;
}

.talent-conversion-field label {
  display: block;

  margin-bottom: 8px;

  color:
    var(--biva-ink);

  font-size: 0.7rem;
  font-weight: 800;
}

.talent-conversion-field input,
.talent-conversion-field select {
  width: 100%;
  min-height: 48px;

  padding:
    0 14px;

  border:
    1px solid
    var(--biva-line);

  border-radius: 14px;

  color:
    var(--biva-text);

  background: #ffffff;

  font:
    inherit;
  font-size: 0.76rem;

  outline: none;

  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.talent-conversion-field input:hover,
.talent-conversion-field select:hover {
  border-color:
    var(--biva-line-strong);
}

.talent-conversion-field input:focus,
.talent-conversion-field select:focus {
  border-color:
    var(--biva-blue-500);

  box-shadow:
    var(--biva-focus-ring);
}

.talent-conversion-field input::placeholder {
  color:
    var(--biva-subtle);
}

.talent-conversion-field select {
  cursor: pointer;
}


/* ========================================
   FORM ACTIONS
======================================== */

.talent-conversion-form__actions {
  padding:
    clamp(22px, 3vw, 30px);

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(53, 112, 243, 0.07),
      transparent 36%
    ),
    var(--biva-surface-soft);
}

.talent-conversion-form__actions
> div:first-child {
  min-width: 0;
}

.talent-conversion-form__actions
> div:first-child
strong {
  display: block;

  color:
    var(--biva-ink);

  font-size: 0.82rem;
  font-weight: 860;
}

.talent-conversion-form__actions
> div:first-child
p {
  margin: 5px 0 0;

  color:
    var(--biva-muted);

  font-size: 0.68rem;
  line-height: 1.5;
}

.talent-conversion-form__actions
> div:last-child {
  display: flex;
  align-items: center;

  gap: 10px;
}

.talent-conversion-form__actions .btn {
  width: auto;
  min-width: 145px;
}

.talent-conversion-form__actions
.btn svg {
  width: 18px;
  height: 18px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ========================================
   LOADING STATE
======================================== */

.talent-conversion-loading {
  width: 100%;
  min-height: 330px;

  padding:
    50px 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    var(--biva-line);

  border-radius:
    var(--biva-radius-xl);

  background: #ffffff;

  box-shadow:
    var(--biva-shadow-sm);

  text-align: center;
}

.talent-conversion-loading > span {
  width: 40px;
  height: 40px;

  margin-bottom: 16px;

  border:
    4px solid
    var(--biva-blue-100);

  border-top-color:
    var(--biva-blue-600);

  border-radius: 50%;

  animation:
    talentConversionSpin
    700ms linear infinite;
}

.talent-conversion-loading strong {
  color:
    var(--biva-ink);

  font-size: 0.87rem;
  font-weight: 860;
}

.talent-conversion-loading p {
  max-width: 420px;

  margin: 6px 0 0;

  color:
    var(--biva-muted);

  font-size: 0.72rem;
  line-height: 1.55;
}

@keyframes talentConversionSpin {
  to {
    transform:
      rotate(360deg);
  }
}


/* ========================================
   SUCCESS MODAL CONTENT
======================================== */

.talent-conversion-success {
  padding: 16px;

  display: flex;
  align-items: flex-start;

  gap: 13px;

  border:
    1px solid
    rgba(7, 148, 85, 0.14);

  border-radius:
    var(--biva-radius-lg);

  background:
    var(--biva-success-soft);
}

.talent-conversion-success > span {
  width: 46px;
  height: 46px;

  flex: 0 0 46px;

  display: grid;
  place-items: center;

  border-radius: 14px;

  color:
    var(--biva-success);

  background: #ffffff;
}

.talent-conversion-success svg {
  width: 23px;
  height: 23px;

  fill: none;

  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.talent-conversion-success strong {
  display: block;

  color:
    var(--biva-ink);

  font-size: 0.86rem;
  font-weight: 880;
}

.talent-conversion-success p {
  margin: 5px 0 0;

  color:
    var(--biva-muted);

  font-size: 0.7rem;
  line-height: 1.5;
}


/* ========================================
   LARGE TABLET
======================================== */

@media (max-width: 1180px) {

  .talent-conversion-layout {
    grid-template-columns: 1fr;
  }

  .talent-conversion-panel.is-client {
    position: static;
  }

  .talent-conversion-agreement-grid {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

}


/* ========================================
   TABLET
======================================== */

@media (max-width: 980px) {

  .talent-conversion-hero {
    grid-template-columns: 1fr;
  }

  .talent-conversion-section-title {
    grid-template-columns: 1fr;

    gap: 8px;
  }

  .talent-conversion-agreement-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 700px) {

  .talent-conversion-back-btn {
    margin-bottom: 14px;
  }

  .talent-conversion-hero {
    min-height: auto;

    padding:
      26px 18px;

    border-radius: 22px;
  }

  .talent-conversion-hero__content h1 {
    font-size:
      clamp(2.15rem, 11vw, 3.1rem);
  }

  .talent-conversion-hero__content p {
    margin-top: 14px;

    font-size: 0.82rem;
  }

  .talent-conversion-hero__summary {
    grid-template-columns: 1fr;

    padding: 16px;

    border-radius: 19px;
  }

  .talent-conversion-workspace {
    margin-top: 38px;
  }

  .talent-conversion-section-title {
    margin-bottom: 17px;
  }

  .talent-conversion-section-title h2 {
    font-size: 2rem;
  }

  .talent-conversion-panel {
    border-radius: 21px;
  }

  .talent-conversion-panel__header {
    padding:
      21px 16px;
  }

  .talent-conversion-agreement-grid {
    padding: 16px;

    gap: 9px;
  }

  .talent-conversion-client-note {
    margin:
      0 16px 16px;
  }

  .talent-conversion-form__section {
    padding:
      21px 16px;
  }

  .talent-conversion-fields {
    grid-template-columns: 1fr;

    gap: 16px;
  }

  .talent-conversion-field.is-full,
  .talent-conversion-model-fields.is-full {
    grid-column: auto;
  }

  .talent-conversion-form__actions {
    align-items: stretch;
    flex-direction: column;

    padding:
      20px 16px;
  }

  .talent-conversion-form__actions
  > div:last-child {
    width: 100%;

    align-items: stretch;
    flex-direction: column-reverse;
  }

  .talent-conversion-form__actions .btn {
    width: 100%;
  }

}


/* ========================================
   VERY SMALL PHONES
======================================== */

@media (max-width: 420px) {

  .talent-conversion-agreement-grid {
    grid-template-columns: 1fr;
  }

  .talent-conversion-agreement-item {
    min-height: 82px;
  }

  .talent-conversion-panel__header {
    align-items: center;
  }

  .talent-conversion-success {
    align-items: center;
  }

}


/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {

  .talent-conversion-back-btn,
  .talent-conversion-field input,
  .talent-conversion-field select {
    transition: none;
  }

  .talent-conversion-loading > span {
    animation: none;
  }

}