/* ========================================
   BIVA V2 — NEW TALENT OFFER PAGE
======================================== */


/* ========================================
   BACK BUTTON
======================================== */

.talent-new-offer-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-new-offer-back-btn:hover {
  color:
    var(--biva-blue-700);

  transform:
    translateX(-2px);
}

.talent-new-offer-back-btn svg {
  width: 17px;
  height: 17px;

  fill: none;

  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ========================================
   HERO
======================================== */

.talent-new-offer-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-new-offer-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-new-offer-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-new-offer-hero > * {
  position: relative;
  z-index: 1;
}

.talent-new-offer-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-new-offer-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-new-offer-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
======================================== */

.talent-new-offer-hero__summary {
  min-width: 0;

  padding:
    clamp(19px, 2.5vw, 28px);

  display: grid;

  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-new-offer-hero__status {
  margin-bottom: 4px;

  display: inline-flex;
  align-items: center;

  gap: 8px;

  color:
    #dcfbed;

  font-size: 0.7rem;
  font-weight: 800;
}

.talent-new-offer-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-new-offer-hero__summary > div {
  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-new-offer-hero__summary
> div
> span {
  display: block;

  margin-bottom: 4px;

  color:
    rgba(255, 255, 255, 0.47);

  font-size: 0.64rem;
}

.talent-new-offer-hero__summary
strong {
  display: block;

  overflow-wrap: anywhere;

  color: #ffffff;

  font-size: 0.79rem;
  font-weight: 830;
  line-height: 1.45;
}


/* ========================================
   WORKSPACE
======================================== */

.talent-new-offer-workspace {
  margin-top:
    clamp(40px, 5vw, 68px);
}

.talent-new-offer-section-title {
  margin-bottom: 22px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(270px, 0.65fr);

  align-items: end;

  gap: 30px;
}

.talent-new-offer-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-new-offer-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-new-offer-section-title > p {
  margin: 0;

  color:
    var(--biva-muted);

  font-size: 0.8rem;
  line-height: 1.55;
}


/* ========================================
   FORM CARD
======================================== */

.talent-new-offer-form {
  width: 100%;

  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;
}


/* ========================================
   FORM SECTIONS
======================================== */

.talent-new-offer-form__section {
  padding:
    clamp(22px, 3vw, 32px);

  border-bottom:
    1px solid
    var(--biva-line);
}

.talent-new-offer-form__section > header {
  margin-bottom: 24px;

  display: flex;
  align-items: flex-start;

  gap: 14px;
}

.talent-new-offer-form__section
> header
> span {
  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-new-offer-form__section:nth-of-type(2)
> header
> span {
  color: #805800;

  background:
    var(--biva-yellow-50);
}

.talent-new-offer-form__section:nth-of-type(3)
> header
> span {
  color: #6549d6;

  background:
    #f3efff;
}

.talent-new-offer-form__section:nth-of-type(4)
> header
> span {
  color:
    var(--biva-success);

  background:
    var(--biva-success-soft);
}

.talent-new-offer-form__section:nth-of-type(5)
> header
> span {
  color:
    var(--biva-danger);

  background:
    var(--biva-danger-soft);
}

.talent-new-offer-form__section
> header
svg {
  width: 22px;
  height: 22px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.talent-new-offer-form__section
> header
> div {
  min-width: 0;
}

.talent-new-offer-form__section
> header
> div
> span {
  display: block;

  margin-bottom: 4px;

  color:
    var(--biva-blue-600);

  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.talent-new-offer-form__section h3 {
  margin: 0;

  color:
    var(--biva-ink);

  font-size: 1.05rem;
  font-weight: 880;
}

.talent-new-offer-form__section
header p {
  margin: 5px 0 0;

  color:
    var(--biva-muted);

  font-size: 0.72rem;
  line-height: 1.5;
}


/* ========================================
   FIELD GRID
======================================== */

.talent-new-offer-fields {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;
}

.talent-new-offer-field {
  min-width: 0;
}

.talent-new-offer-field.is-full,
.talent-new-offer-client-note.is-full {
  grid-column: 1 / -1;
}

.talent-new-offer-field label {
  display: block;

  margin-bottom: 8px;

  color:
    var(--biva-ink);

  font-size: 0.71rem;
  font-weight: 800;
}

.talent-new-offer-field > small {
  display: block;

  margin-top: 7px;

  color:
    var(--biva-muted);

  font-size: 0.64rem;
  line-height: 1.45;
}


/* ========================================
   FORM CONTROLS
======================================== */

.talent-new-offer-field input,
.talent-new-offer-field select,
.talent-new-offer-field textarea {
  width: 100%;

  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-new-offer-field input,
.talent-new-offer-field select {
  min-height: 48px;

  padding:
    0 14px;
}

.talent-new-offer-field textarea {
  min-height: 130px;

  padding:
    13px 14px;

  line-height: 1.58;

  resize: vertical;
}

.talent-new-offer-field input:hover,
.talent-new-offer-field select:hover,
.talent-new-offer-field textarea:hover {
  border-color:
    var(--biva-line-strong);
}

.talent-new-offer-field input:focus,
.talent-new-offer-field select:focus,
.talent-new-offer-field textarea:focus {
  border-color:
    var(--biva-blue-500);

  box-shadow:
    var(--biva-focus-ring);
}

.talent-new-offer-field
input::placeholder,
.talent-new-offer-field
textarea::placeholder {
  color:
    var(--biva-subtle);
}

.talent-new-offer-field select {
  cursor: pointer;
}


/* ========================================
   CLIENT NOTE
======================================== */

.talent-new-offer-client-note {
  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-new-offer-client-note > span {
  width: 41px;
  height: 41px;

  flex: 0 0 41px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  color:
    var(--biva-blue-700);

  background:
    #ffffff;
}

.talent-new-offer-client-note svg {
  width: 20px;
  height: 20px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.talent-new-offer-client-note strong {
  display: block;

  color:
    var(--biva-ink);

  font-size: 0.78rem;
  font-weight: 850;
}

.talent-new-offer-client-note
strong
span {
  color:
    var(--biva-blue-700);
}

.talent-new-offer-client-note p {
  margin: 4px 0 0;

  color:
    var(--biva-muted);

  font-size: 0.68rem;
  line-height: 1.5;
}


/* ========================================
   WORKING DAYS
======================================== */

.talent-new-offer-days {
  display: grid;

  grid-template-columns:
    repeat(7, minmax(0, 1fr));

  gap: 9px;
}

.talent-new-offer-day {
  position: relative;

  min-width: 0;
}

.talent-new-offer-day input {
  position: absolute;

  opacity: 0;
  pointer-events: none;
}

.talent-new-offer-day span {
  min-height: 48px;

  padding: 8px;

  display: grid;
  place-items: center;

  border:
    1px solid
    var(--biva-line);

  border-radius: 13px;

  color:
    var(--biva-muted);

  background:
    #ffffff;

  font-size: 0.67rem;
  font-weight: 800;

  text-align: center;

  cursor: pointer;

  transition:
    border-color 160ms ease,
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.talent-new-offer-day span:hover {
  border-color:
    var(--biva-blue-400);

  color:
    var(--biva-blue-700);

  transform:
    translateY(-1px);
}

.talent-new-offer-day
input:checked
+ span {
  border-color:
    var(--biva-blue-600);

  color:
    #ffffff;

  background:
    linear-gradient(
      145deg,
      var(--biva-black),
      var(--biva-blue-700)
    );

  box-shadow:
    0 8px 20px
    rgba(36, 87, 230, 0.18);
}

.talent-new-offer-day
input:focus-visible
+ span {
  box-shadow:
    var(--biva-focus-ring);
}


/* ========================================
   FORM ACTIONS
======================================== */

.talent-new-offer-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-new-offer-form__actions
> div:first-child {
  min-width: 0;
}

.talent-new-offer-form__actions
> div:first-child
strong {
  display: block;

  color:
    var(--biva-ink);

  font-size: 0.84rem;
  font-weight: 860;
}

.talent-new-offer-form__actions
> div:first-child
p {
  margin: 5px 0 0;

  color:
    var(--biva-muted);

  font-size: 0.68rem;
  line-height: 1.5;
}

.talent-new-offer-form__actions
> div:last-child {
  display: flex;
  align-items: center;

  gap: 10px;
}

.talent-new-offer-form__actions
.btn {
  width: auto;
  min-width: 145px;
}

.talent-new-offer-form__actions
.btn svg {
  width: 18px;
  height: 18px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ========================================
   SUCCESS MODAL
======================================== */

.talent-new-offer-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-new-offer-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-new-offer-success svg {
  width: 23px;
  height: 23px;

  fill: none;

  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.talent-new-offer-success strong {
  display: block;

  color:
    var(--biva-ink);

  font-size: 0.86rem;
  font-weight: 880;
}

.talent-new-offer-success p {
  margin: 5px 0 0;

  color:
    var(--biva-muted);

  font-size: 0.7rem;
  line-height: 1.5;
}


/* ========================================
   MEDIUM DESKTOP
======================================== */

@media (max-width: 1150px) {

  .talent-new-offer-days {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

}


/* ========================================
   TABLET
======================================== */

@media (max-width: 980px) {

  .talent-new-offer-hero {
    grid-template-columns: 1fr;
  }

  .talent-new-offer-section-title {
    grid-template-columns: 1fr;

    gap: 8px;
  }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 700px) {

  .talent-new-offer-back-btn {
    margin-bottom: 14px;
  }

  .talent-new-offer-hero {
    min-height: auto;

    padding:
      26px 18px;

    border-radius: 22px;
  }

  .talent-new-offer-hero__content h1 {
    font-size:
      clamp(2.15rem, 11vw, 3.1rem);
  }

  .talent-new-offer-hero__content p {
    margin-top: 14px;

    font-size: 0.82rem;
  }

  .talent-new-offer-hero__summary {
    padding: 16px;

    border-radius: 19px;
  }

  .talent-new-offer-workspace {
    margin-top: 38px;
  }

  .talent-new-offer-section-title {
    margin-bottom: 17px;
  }

  .talent-new-offer-section-title h2 {
    font-size: 2rem;
  }

  .talent-new-offer-form {
    border-radius: 21px;
  }

  .talent-new-offer-form__section {
    padding:
      21px 16px;
  }

  .talent-new-offer-fields {
    grid-template-columns: 1fr;

    gap: 16px;
  }

  .talent-new-offer-field.is-full,
  .talent-new-offer-client-note.is-full {
    grid-column: auto;
  }

  .talent-new-offer-days {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .talent-new-offer-form__actions {
    align-items: stretch;
    flex-direction: column;

    padding:
      20px 16px;
  }

  .talent-new-offer-form__actions
  > div:last-child {
    width: 100%;

    align-items: stretch;
    flex-direction: column-reverse;
  }

  .talent-new-offer-form__actions
  .btn {
    width: 100%;
  }

}


/* ========================================
   VERY SMALL PHONES
======================================== */

@media (max-width: 420px) {

  .talent-new-offer-form__section
  > header {
    align-items: center;
  }

  .talent-new-offer-days {
    grid-template-columns: 1fr;
  }

  .talent-new-offer-day span {
    min-height: 44px;
  }

  .talent-new-offer-client-note,
  .talent-new-offer-success {
    align-items: center;
  }

}


/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {

  .talent-new-offer-back-btn,
  .talent-new-offer-field input,
  .talent-new-offer-field select,
  .talent-new-offer-field textarea,
  .talent-new-offer-day span {
    transition: none;
  }

}