/* ==========================================================================
   pages/entry.css — application / casual-interview form
   ========================================================================== */

.p-entry {
  background-color: var(--color-black);
  color: var(--color-text-inverse);
}

.p-entry-main {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  background-color: var(--color-black);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.88)),
    url("../../img/common/cta-band-bg.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.p-entry-inner {
  width: min(76rem, calc(100% - 4rem));
  margin-inline: auto;
}

.p-entry__label {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-display);
  line-height: 1.5;
  color: var(--zino-orange);
}

.p-entry__title {
  margin-top: 0.8rem;
  font-size: var(--fs-3xl);
  font-weight: var(--fw-semibold);
  line-height: 1.45;
}

.p-entry__lead {
  margin-top: 1.2rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.875;
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */

.p-entry-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 4rem;
}

.p-entry-tabs__button {
  min-height: 5.6rem;
  padding-inline: 1.4rem;
  border: 2px solid var(--zino-pale-orange);
  color: var(--zino-pale-orange);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  transition:
    background-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.p-entry-tabs__button[aria-selected="true"] {
  background-color: var(--zino-orange);
  border-color: var(--zino-orange);
  color: var(--color-text-inverse);
  pointer-events: none;
}

.p-entry-tabs__button[aria-selected="false"]:hover {
  background-color: var(--zino-green);
  transform: translateY(-2px);
}
/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.p-entry-form {
  margin-top: 3.6rem;
  padding: 2.4rem 1.6rem 3.2rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.p-entry-field {
  margin-bottom: 2.6rem;
}

.p-entry-field[hidden] {
  display: none;
}

.p-entry-field__label {
  display: block;
  margin-bottom: 0.8rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.p-entry-field__req {
  display: inline-block;
  margin-left: 0.8rem;
  padding: 0.1rem 0.8rem;
  border-radius: 0.3rem;
  background-color: var(--zino-orange);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  line-height: 1.6;
  vertical-align: 0.1em;
}

.p-entry-field__control {
  width: 100%;
  padding: 1.2rem 1.4rem;
  border: 0;
  border-radius: 0.4rem;
  background-color: var(--color-white);
  color: var(--color-black);
  font-family: inherit;
  font-size: var(--fs-sm);
}

.p-entry-field__control--textarea {
  min-height: 14rem;
  resize: vertical;
}

.p-entry-field__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  font-size: var(--fs-sm);
}

.p-entry-field__radio {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: var(--fw-regular);
}

.p-entry-field__other {
  margin-top: 1.2rem;
}

.js .p-entry-field__other {
  display: none;
}

.js .p-entry-field__other.is-open {
  display: block;
}

.p-entry-agree {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin: 0.8rem 0 4.0rem;
  font-size: var(--fs-xs);
  line-height: 1.6;
}

.p-entry-agree input {
  margin-top: 0.3rem;
}

.p-entry-agree__text a {
  text-decoration: underline;
  color: inherit;
}

.p-entry-form__submit {
  display: grid;
  width: 100%;
  margin-inline: auto;
  cursor: pointer;
}

.button-send .cta__button-swoosh {
  left: unset;
  right: -12%;
  top: 8%;
}
.button-send:hover .cta__button-swoosh {
  transform: rotate(345deg);
}

.button-back .cta__button-swoosh {
  top: 24%;
  right: unset;
  left: -10%;
  transform: rotate(0deg) scaleY(-1);
}
.button-back:hover .cta__button-swoosh {
  transform: rotate(-540deg) scaleY(-1);
}

.p-entry-form__errors,
.p-entry-form__message {
  margin-bottom: 2.4rem;
}

.p-entry-form__errors p,
.p-entry-confirm__errors p {
  color: #ffb4b4;
  font-weight: var(--fw-semibold);
}

.p-entry-form__note {
  margin-top: 2.6rem;
  font-size: var(--fs-2xs);
  text-align: center;
  opacity: 0.7;
}

.p-entry__back {
  display: inline-block;
  margin-top: 4rem;
  font-size: var(--fs-xs);
  border-bottom: 1px solid currentcolor;
}

/* --------------------------------------------------------------------------
   Confirm / complete (mail.php)
   -------------------------------------------------------------------------- */

.p-entry-confirm__lead {
  margin: 1.2rem 0 2.4rem;
  font-size: var(--fs-sm);
  line-height: 1.875;
}

.p-entry-confirm table {
  width: 100%;
  border-collapse: collapse;
}

.p-entry-confirm th,
.p-entry-confirm td {
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  text-align: left;
  vertical-align: top;
}

.p-entry-confirm th {
  width: 32%;
  padding-right: 1.6rem;
  font-weight: var(--fw-semibold);
  color: var(--zino-orange);
}

.p-entry-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  justify-content: center;
  margin-top: 3.2rem;
}

.p-entry-confirm__actions .cta__button,
.p-entry-form__actions .cta__button {
  width: 100%;
  max-width: 35rem;
  cursor: pointer;
}

@media (width >= 768px) {
  .p-entry.mailer .l-header__inner {
    justify-content: flex-start;
  }

  .p-entry .l-header__nav {
    padding-right: 4rem;
  }

  .p-entry-main {
    padding-top: calc(var(--header-height) + 7rem);
    padding-bottom: 10rem;
  }

  .p-entry-tabs__button {
    padding-inline: 2.8rem;
    font-size: var(--fs-md);
  }

  .p-entry-form {
    padding: 4rem;
  }

  .p-entry-form__submit {
    width: 34rem;
  }
}
