/* =====================================================
   BIVA TALENT — ASSOCIATE PAYMENT METHOD
   FULL REPLACEMENT
===================================================== */


/* =====================================================
   PAGE
===================================================== */

.associate-payment-page {
  min-height: 100vh;

  padding: 24px;

  background:
    linear-gradient(
      180deg,
      #f5f7fb,
      #eef3f8
    );
}

.associate-payment-container {
  width: min(1180px, 100%);

  margin: 0 auto;
}


/* =====================================================
   BACK BUTTON
===================================================== */

.associate-payment-back-button {
  width: fit-content;
  min-height: 41px;

  margin-bottom: 16px;
  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  border:
    1px solid #dbe4ee;

  border-radius: 11px;

  color:
    #334155;

  background:
    #ffffff;

  box-shadow:
    0 5px 15px
    rgba(15, 23, 42, 0.045);

  font: inherit;

  font-size: 11px;
  font-weight: 830;

  cursor: pointer;

  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.associate-payment-back-button:hover {
  border-color:
    #bfdbfe;

  color:
    #1d4ed8;

  background:
    #eff6ff;

  transform:
    translateX(-2px);

  box-shadow:
    0 7px 18px
    rgba(37, 99, 235, 0.08);
}

.associate-payment-back-button svg {
  width: 17px;
  height: 17px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =====================================================
   HEADER / HERO
===================================================== */

.associate-payment-header {
  position: relative;

  min-height: 190px;

  padding: 29px 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 28px;

  border:
    1px solid
    rgba(255, 255, 255, 0.08);

  border-radius: 22px;

  color:
    #ffffff;

  background:
    radial-gradient(
      circle at 94% 4%,
      rgba(37, 99, 235, 0.35),
      transparent 36%
    ),
    radial-gradient(
      circle at 4% 100%,
      rgba(251, 191, 36, 0.08),
      transparent 31%
    ),
    linear-gradient(
      145deg,
      #071324,
      #10233f 58%,
      #173675
    );

  box-shadow:
    0 22px 58px
    rgba(7, 19, 36, 0.17);

  overflow: hidden;
}

.associate-payment-header::before {
  content: "";

  position: absolute;

  inset:
    0 0 auto 0;

  height: 4px;

  background:
    linear-gradient(
      90deg,
      #2563eb,
      #fbbf24,
      transparent 84%
    );
}

.associate-payment-header::after {
  content: "";

  position: absolute;

  width: 220px;
  height: 220px;

  right: -95px;
  bottom: -165px;

  border:
    1px solid
    rgba(255, 255, 255, 0.05);

  border-radius: 50%;

  box-shadow:
    0 0 0 40px
    rgba(255, 255, 255, 0.018),

    0 0 0 80px
    rgba(255, 255, 255, 0.009);

  pointer-events: none;
}

.associate-payment-header > * {
  position: relative;

  z-index: 1;
}

.associate-payment-header > div {
  min-width: 0;
}

.associate-payment-eyebrow {
  margin:
    0 0 8px;

  color:
    #fbbf24;

  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.associate-payment-header h1 {
  margin: 0;

  color:
    #ffffff;

  font-size:
    clamp(2.3rem, 4.3vw, 4rem);

  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.associate-payment-description {
  max-width: 720px;

  margin:
    13px 0 0;

  color:
    rgba(255, 255, 255, 0.66);

  font-size: 13px;
  line-height: 1.62;
}


/* =====================================================
   REFRESH BUTTON
===================================================== */

.associate-payment-refresh-button {
  min-height: 43px;

  padding:
    0 15px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  border:
    1px solid
    rgba(255, 255, 255, 0.16);

  border-radius: 11px;

  color:
    #ffffff;

  background:
    rgba(255, 255, 255, 0.08);

  font: inherit;

  font-size: 11px;
  font-weight: 840;

  white-space: nowrap;

  cursor: pointer;

  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    opacity 0.18s ease;
}

.associate-payment-refresh-button:hover {
  border-color:
    rgba(255, 255, 255, 0.28);

  background:
    rgba(255, 255, 255, 0.14);
}

.associate-payment-refresh-button:disabled {
  opacity: 0.55;

  cursor: wait;
}

.associate-payment-refresh-button svg {
  width: 16px;
  height: 16px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =====================================================
   CONTENT
===================================================== */

.associate-payment-content {
  margin-top: 18px;
}


/* =====================================================
   PAGE MESSAGE
===================================================== */

.associate-payment-page-message {
  margin-bottom: 14px;
  padding: 12px 14px;

  border:
    1px solid #dbe4ee;

  border-radius: 11px;

  color:
    #334155;

  background:
    #ffffff;

  box-shadow:
    0 6px 18px
    rgba(15, 23, 42, 0.05);

  font-size: 11px;
  font-weight: 740;
  line-height: 1.5;
}

.associate-payment-page-message[data-type="success"] {
  border-color:
    #bbf7d0;

  color:
    #047857;

  background:
    #ecfdf5;
}

.associate-payment-page-message[data-type="error"] {
  border-color:
    #fecaca;

  color:
    #b91c1c;

  background:
    #fff1f2;
}


/* =====================================================
   MAIN LAYOUT
===================================================== */

.associate-payment-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1.42fr)
    minmax(290px, 0.58fr);

  align-items: start;

  gap: 18px;
}


/* =====================================================
   SHARED CARDS
===================================================== */

.associate-payment-card,
.associate-payment-summary-card {
  min-width: 0;

  border:
    1px solid #dce5ef;

  border-radius: 19px;

  background:
    #ffffff;

  box-shadow:
    0 10px 30px
    rgba(15, 23, 42, 0.065);
}

.associate-payment-card {
  padding: 23px;
}

.associate-payment-summary-card {
  position: sticky;

  top: 18px;

  padding: 20px;
}


/* =====================================================
   CARD HEADER
===================================================== */

.associate-payment-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 18px;
}

.associate-payment-card-header > div {
  min-width: 0;
}

.associate-payment-card-kicker {
  display: block;

  margin-bottom: 6px;

  color:
    #2563eb;

  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.associate-payment-card-header h2 {
  margin: 0;

  color:
    #0f172a;

  font-size:
    clamp(1.45rem, 2.4vw, 2rem);

  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.associate-payment-card-header p {
  max-width: 620px;

  margin:
    8px 0 0;

  color:
    #64748b;

  font-size: 11px;
  line-height: 1.58;
}


/* =====================================================
   STATUS BADGE
===================================================== */

.associate-payment-status {
  width: fit-content;
  min-height: 29px;

  padding:
    5px 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid #dbeafe;

  border-radius: 999px;

  color:
    #1d4ed8;

  background:
    #eff6ff;

  font-size: 9px;
  font-weight: 850;
  line-height: 1;

  white-space: nowrap;
}

.associate-payment-status[data-status="active"],
.associate-payment-status[data-status="verified"] {
  border-color:
    #bbf7d0;

  color:
    #047857;

  background:
    #ecfdf5;
}

.associate-payment-status[data-status="pending"] {
  border-color:
    #fde68a;

  color:
    #92400e;

  background:
    #fffbeb;
}

.associate-payment-status[data-status="rejected"] {
  border-color:
    #fecaca;

  color:
    #b91c1c;

  background:
    #fff1f2;
}

.associate-payment-status[data-status="disabled"] {
  border-color:
    #e2e8f0;

  color:
    #64748b;

  background:
    #f1f5f9;
}


/* =====================================================
   NOTICE
===================================================== */

.associate-payment-notice {
  margin-top: 18px;
  padding: 14px 15px;

  display: grid;

  grid-template-columns:
    40px
    minmax(0, 1fr);

  align-items: center;

  gap: 12px;

  border:
    1px solid #bfdbfe;

  border-radius: 14px;

  background:
    #eff6ff;
}

.associate-payment-notice > span {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  color:
    #1d4ed8;

  background:
    #dbeafe;
}

.associate-payment-notice svg {
  width: 19px;
  height: 19px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.associate-payment-notice strong {
  display: block;

  color:
    #1e3a8a;

  font-size: 11px;
  font-weight: 860;
}

.associate-payment-notice p {
  margin:
    4px 0 0;

  color:
    #1d4ed8;

  font-size: 9px;
  line-height: 1.5;
}


/* =====================================================
   FORM
===================================================== */

.associate-payment-form {
  margin-top: 20px;
}

.associate-payment-form-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 16px;
}

.associate-payment-form-group {
  min-width: 0;

  display: grid;

  gap: 8px;
}

.associate-payment-form-group label {
  color:
    #334155;

  font-size: 10px;
  font-weight: 820;
  line-height: 1.4;
}

.associate-payment-form-group input,
.associate-payment-form-group select {
  width: 100%;
  min-height: 45px;

  padding:
    0 13px;

  border:
    1px solid #dbe4ee;

  border-radius: 11px;

  color:
    #0f172a;

  background:
    #ffffff;

  font:
    inherit;

  font-size: 12px;

  outline: none;

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.associate-payment-form-group select {
  padding-right: 34px;

  cursor: pointer;
}

.associate-payment-form-group input::placeholder {
  color:
    #94a3b8;
}

.associate-payment-form-group input:hover,
.associate-payment-form-group select:hover {
  border-color:
    #cbd5e1;
}

.associate-payment-form-group input:focus,
.associate-payment-form-group select:focus {
  border-color:
    #2563eb;

  box-shadow:
    0 0 0 3px
    rgba(37, 99, 235, 0.13);
}

.associate-payment-form-group input:disabled,
.associate-payment-form-group select:disabled {
  color:
    #94a3b8;

  background:
    #f1f5f9;

  cursor: not-allowed;
}

.associate-payment-form-group small {
  color:
    #64748b;

  font-size: 9px;
  line-height: 1.5;
}


/* =====================================================
   FORM MESSAGE
===================================================== */

.associate-payment-form-message {
  margin-top: 17px;
  padding: 12px 14px;

  border:
    1px solid #fecaca;

  border-radius: 11px;

  color:
    #b91c1c;

  background:
    #fff1f2;

  font-size: 11px;
  font-weight: 730;
  line-height: 1.5;
}

.associate-payment-form-message[hidden] {
  display: none;
}

.associate-payment-form-message[data-type="success"] {
  border-color:
    #bbf7d0;

  color:
    #047857;

  background:
    #ecfdf5;
}

.associate-payment-form-message[data-type="info"] {
  border-color:
    #bfdbfe;

  color:
    #1d4ed8;

  background:
    #eff6ff;
}


/* =====================================================
   FORM ACTIONS
===================================================== */

.associate-payment-form-actions {
  margin-top: 18px;

  display: flex;
  align-items: center;
  justify-content: flex-end;
}


/* =====================================================
   BUTTONS
===================================================== */

.associate-payment-primary-button,
.associate-payment-secondary-button {
  min-height: 43px;

  padding:
    0 15px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  border-radius: 11px;

  font: inherit;

  font-size: 11px;
  font-weight: 840;

  white-space: nowrap;

  cursor: pointer;

  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.associate-payment-primary-button {
  border:
    1px solid #2563eb;

  color:
    #ffffff;

  background:
    #2563eb;

  box-shadow:
    0 7px 18px
    rgba(37, 99, 235, 0.2);
}

.associate-payment-primary-button:hover {
  background:
    #1d4ed8;

  transform:
    translateY(-1px);
}

.associate-payment-secondary-button {
  border:
    1px solid #cbd5e1;

  color:
    #334155;

  background:
    #ffffff;
}

.associate-payment-secondary-button:hover {
  border-color:
    #94a3b8;

  background:
    #f8fafc;
}

.associate-payment-primary-button:disabled,
.associate-payment-secondary-button:disabled {
  opacity: 0.55;

  cursor: wait;

  transform: none;
}

.associate-payment-primary-button svg,
.associate-payment-secondary-button svg {
  width: 16px;
  height: 16px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =====================================================
   PROVIDER
===================================================== */

.associate-payment-provider {
  padding-bottom: 17px;

  display: grid;

  grid-template-columns:
    48px
    minmax(0, 1fr);

  align-items: center;

  gap: 12px;

  border-bottom:
    1px solid #e2e8f0;
}

.associate-payment-provider-icon {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border-radius: 14px;

  color:
    #ffffff;

  background:
    linear-gradient(
      145deg,
      #111827,
      #334155
    );

  box-shadow:
    0 7px 18px
    rgba(15, 23, 42, 0.16);
}

.associate-payment-provider-icon svg {
  width: 22px;
  height: 22px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.associate-payment-provider > div:last-child {
  min-width: 0;
}

.associate-payment-provider span {
  display: block;

  color:
    #64748b;

  font-size: 9px;
  font-weight: 760;
}

.associate-payment-provider h3 {
  margin:
    4px 0 0;

  color:
    #0f172a;

  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.025em;
}


/* =====================================================
   SUMMARY LIST
===================================================== */

.associate-payment-summary-list {
  margin-top: 16px;

  display: grid;

  gap: 9px;
}

.associate-payment-summary-item {
  min-width: 0;

  padding: 12px 13px;

  display: grid;

  gap: 5px;

  border:
    1px solid #e2e8f0;

  border-radius: 12px;

  background:
    #f8fafc;
}

.associate-payment-summary-item span {
  color:
    #64748b;

  font-size: 8px;
  font-weight: 790;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.associate-payment-summary-item strong {
  overflow-wrap: anywhere;

  color:
    #0f172a;

  font-size: 11px;
  font-weight: 850;
  line-height: 1.45;
}


/* =====================================================
   SECURITY NOTE
===================================================== */

.associate-payment-security-note {
  margin-top: 16px;
  padding: 14px;

  display: grid;

  grid-template-columns:
    38px
    minmax(0, 1fr);

  align-items: start;

  gap: 11px;

  border:
    1px solid #bbf7d0;

  border-radius: 13px;

  background:
    #ecfdf5;
}

.associate-payment-security-note > span {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  color:
    #047857;

  background:
    #d1fae5;
}

.associate-payment-security-note svg {
  width: 18px;
  height: 18px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.associate-payment-security-note strong {
  display: block;

  color:
    #065f46;

  font-size: 10px;
  font-weight: 850;
}

.associate-payment-security-note p {
  margin:
    4px 0 0;

  color:
    #047857;

  font-size: 9px;
  line-height: 1.55;
}


/* =====================================================
   LOADING AND ERROR STATES
===================================================== */

.associate-payment-state {
  min-height: 430px;

  padding:
    42px 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border:
    1px solid #dce5ef;

  border-radius: 19px;

  background:
    #ffffff;

  box-shadow:
    0 10px 30px
    rgba(15, 23, 42, 0.06);

  text-align: center;
}

.associate-payment-spinner {
  width: 38px;
  height: 38px;

  margin-bottom: 15px;

  border:
    3px solid
    rgba(37, 99, 235, 0.14);

  border-top-color:
    #2563eb;

  border-radius: 50%;

  animation:
    associate-payment-spin
    760ms linear infinite;
}

@keyframes associate-payment-spin {

  to {
    transform:
      rotate(360deg);
  }

}

.associate-payment-state > strong {
  color:
    #0f172a;

  font-size: 14px;
  font-weight: 880;
}

.associate-payment-state > p {
  max-width: 500px;

  margin:
    7px auto 0;

  color:
    #64748b;

  font-size: 11px;
  line-height: 1.6;
}

.associate-payment-error-icon {
  width: 62px;
  height: 62px;

  margin-bottom: 16px;

  display: grid;
  place-items: center;

  border-radius: 19px;

  color:
    #b91c1c;

  background:
    #fff1f2;

  font-size: 24px;
  font-weight: 900;
}

.associate-payment-error-state h3 {
  margin: 0;

  color:
    #0f172a;

  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.associate-payment-error-state
.associate-payment-secondary-button {
  margin-top: 18px;
}


/* =====================================================
   FOCUS
===================================================== */

.associate-payment-page
button:focus-visible,
.associate-payment-page
input:focus-visible,
.associate-payment-page
select:focus-visible {
  outline: 0;

  box-shadow:
    0 0 0 3px
    rgba(37, 99, 235, 0.18);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

  .associate-payment-page {
    padding: 16px;
  }

  .associate-payment-header {
    min-height: auto;

    padding:
      26px 22px;

    align-items: stretch;
    flex-direction: column;

    gap: 19px;
  }

  .associate-payment-refresh-button {
    width: 100%;
  }

  .associate-payment-layout {
    grid-template-columns: 1fr;
  }

  .associate-payment-summary-card {
    position: static;
  }

}


/* =====================================================
   SMALL TABLET
===================================================== */

@media (max-width: 700px) {

  .associate-payment-form-grid {
    grid-template-columns: 1fr;
  }

  .associate-payment-card-header {
    flex-direction: column;
  }

  .associate-payment-status {
    align-self: flex-start;
  }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 560px) {

  .associate-payment-page {
    padding: 11px;
  }

  .associate-payment-back-button {
    width: 100%;

    margin-bottom: 11px;
  }

  .associate-payment-header {
    padding:
      23px 17px;

    border-radius: 18px;
  }

  .associate-payment-header h1 {
    font-size:
      clamp(2rem, 11vw, 3.1rem);
  }

  .associate-payment-description {
    font-size: 12px;
  }

  .associate-payment-content {
    margin-top: 12px;
  }

  .associate-payment-layout {
    gap: 12px;
  }

  .associate-payment-card,
  .associate-payment-summary-card {
    padding: 17px;

    border-radius: 16px;
  }

  .associate-payment-notice {
    grid-template-columns:
      36px
      minmax(0, 1fr);

    padding: 12px;
  }

  .associate-payment-notice > span {
    width: 36px;
    height: 36px;
  }

  .associate-payment-form-actions {
    justify-content: stretch;
  }

  .associate-payment-primary-button {
    width: 100%;
  }

  .associate-payment-state {
    min-height: 360px;

    border-radius: 16px;
  }

}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 380px) {

  .associate-payment-provider {
    grid-template-columns:
      43px
      minmax(0, 1fr);
  }

  .associate-payment-provider-icon {
    width: 43px;
    height: 43px;
  }

  .associate-payment-security-note {
    grid-template-columns: 1fr;
  }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

  .associate-payment-back-button,
  .associate-payment-refresh-button,
  .associate-payment-primary-button,
  .associate-payment-secondary-button,
  .associate-payment-form-group input,
  .associate-payment-form-group select {
    transition: none;
  }

  .associate-payment-spinner {
    animation: none;
  }

}