.tv3-position-apply {
  padding-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tv3-position-apply__title {
  font-size: 24px;
  margin: 0 0 24px;
}

.tv3-position-apply__success {
  display: none;
  text-align: center;
}

.tv3-position-single .tv3-position-apply__success-title {
  font-size: clamp(24px, 3.3vw, 32px);
  margin: 0 0 12px;
}

.tv3-position-single .tv3-position-apply__success-text {
  opacity: 0.7;
  max-width: 540px;
  white-space: normal;
  text-align: left;
  margin: auto;
  padding-bottom: 32px;
}

.tv3-position-apply__success-cta .wp-block-button__link {
  justify-content: center;
}

.tv3-position-apply.is-success .tv3-position-apply__title,
.tv3-position-apply.is-success .tv3-position-apply__form {
  display: none;
}

.tv3-position-apply.is-success .tv3-position-apply__success {
  display: block;
}

.tv3-position-apply__form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tv3-position-apply__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 32px;
}

.tv3-position-apply__field {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tv3-position-apply__label {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 26px;
}

.tv3-position-apply__required {
  color: var(--wp--preset--color--accent);
  margin-left: 4px;
}

.tv3-position-apply__hint {
  font-size: 16px;
  opacity: 0.7;
}

.tv3-position-apply__field input {
  margin-top: 8px;
}

.tv3-position-apply__field input,
.tv3-position-apply__field textarea {
  width: 100%;
  background: rgba(46, 46, 48, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--wp--preset--color--white);
  padding: 11px 16px;
  border-radius: 2px;
  font-size: 16px;
}

.tv3-position-apply__field input:focus,
.tv3-position-apply__field textarea:focus {
  outline: none;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.tv3-position-apply__field input::placeholder,
.tv3-position-apply__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.tv3-position-apply__field textarea {
  height: 170px;
  margin-top: 16px;
  resize: none;
}

.tv3-position-apply__upload {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tv3-position-apply__extras {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tv3-position-apply__drop {
  position: relative;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  padding: 11px 16px;
  border-radius: 2px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
  margin-top: 16px;
}

.tv3-position-apply__drop input[type="file"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tv3-position-apply__drop-text {
  cursor: default;
  pointer-events: none;
  text-decoration: underline;
  font-size: 16px;
  letter-spacing: -0.5px;
  line-height: 26px;
  display: block;
}

.tv3-position-apply__drop.is-dragover {
  border-color: var(--wp--preset--color--accent);
  background: rgba(255, 255, 255, 0.04);
}

.tv3-position-apply__file-error {
  color: var(--wp--preset--color--accent);
  font-size: 12px;
  min-height: 16px;
}

.tv3-position-apply__error {
  color: var(--wp--preset--color--accent);
  font-size: 12px;
}

.tv3-position-apply__consent-text {
  display: block;
}

.tv3-position-apply__consent-message {
  display: block;
}

.tv3-position-apply__consent-error {
  display: block;
  margin-top: 8px;
}

.tv3-position-apply__file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tv3-position-apply__file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(242, 242, 242, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 11px 16px;
  border-radius: 2px;
  color: rgba(0, 0, 0, 1);
  font-size: 16px;
  line-height: 26px;
  letter-spacing: -0.5px;
}

.tv3-position-apply__file-remove {
  background: none;
  border: none;
  color: var(--wp--preset--color--black);
  font-size: 18px;
  cursor: pointer;
}

.tv3-position-apply__consent {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  letter-spacing: -0.5px;
}

.tv3-position-single .tv3-position-apply__required-note,
.tv3-position-single .tv3-position-apply__privacy {
  font-size: 16px;
  margin: 0;
  white-space: normal;
}

.tv3-position-apply__asterisk {
  color: var(--wp--preset--color--accent);
}

.tv3-position-apply__notes {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tv3-position-apply__privacy a {
  color: var(--wp--preset--color--white);
  text-decoration: underline;
}

.tv3-position-single .tv3-position-apply__submit .wp-block-button.cta_button,
.tv3-position-single .tv3-position-apply__submit .wp-block-button__link {
  width: 100%;
}

.tv3-position-single
  .tv3-position-apply__success-cta
  .wp-block-button.cta_button,
.tv3-position-single .tv3-position-apply__success-cta .wp-block-button__link {
  width: 100%;
}

.tv3-position-apply__submit .wp-block-button__link {
  justify-content: center;
}

.tv3-position-apply__submit-error {
  color: var(--wp--preset--color--accent);
  font-size: 12px;
  min-height: 16px;
  margin-top: 8px;
}

@media (max-width: 1023px) {
  .tv3-position-apply__grid {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .tv3-position-apply__extras {
    gap: 32px;
  }
}
