/* Careers — 07 Submit resume */

@keyframes cw-careers-apply-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cw-careers-apply {
  background: #f3efe7;
  color: #141210;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

.cw-careers-apply__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.cw-careers-apply__intro {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cw-careers-apply__eyebrow {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #c23a14;
}

.cw-careers-apply__title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(46px, 6vw, 92px);
  line-height: 0.86;
  letter-spacing: -0.05em;
}

.cw-careers-apply__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #c23a14;
}

.cw-careers-apply__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  max-width: 420px;
}

.cw-careers-apply__progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
}

.cw-careers-apply__progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.cw-careers-apply__progress-track {
  height: 6px;
  border-radius: 6px;
  background: #d8d2c6;
  overflow: hidden;
}

.cw-careers-apply__progress-fill {
  display: block;
  height: 100%;
  background: #ff5527;
  transition: width 0.35s ease;
}

.cw-careers-apply__email {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #3a3530;
  max-width: 420px;
}

.cw-careers-apply__email a {
  font-weight: 700;
  color: inherit;
  border-bottom: 1px solid #141210;
  text-decoration: none;
}

.cw-careers-apply__form-shell {
  grid-column: 1 / -1;
  background: #141210;
  color: #f3efe7;
  border-radius: 30px;
  padding: clamp(22px, 3.4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

@media (min-width: 960px) {
  .cw-careers-apply__form-shell {
    grid-column: 2 / -1;
  }

  .cw-careers-apply__intro {
    grid-row: 1;
  }
}

.cw-careers-apply__success {
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: cw-careers-apply-in 0.4s ease;
}

.cw-careers-apply__success-title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.cw-careers-apply__success-accent {
  color: #ff5527;
}

.cw-careers-apply__success-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #cfc9be;
}

.cw-careers-apply__form.is-sent {
  display: none;
}

.cw-careers-apply__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}

.cw-careers-apply__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #a39c90;
}

.cw-careers-apply__field--full {
  grid-column: 1 / -1;
}

.cw-careers-apply__label {
  display: block;
}

.cw-careers-apply__input,
.cw-careers-apply__select,
.cw-careers-apply__textarea {
  background: transparent;
  border: 1px solid rgba(243, 239, 231, 0.2);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 15px;
  color: #f3efe7;
  font-family: inherit;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.cw-careers-apply__select {
  padding: 13px 14px;
}

.cw-careers-apply__input:focus-visible,
.cw-careers-apply__select:focus-visible,
.cw-careers-apply__textarea:focus-visible {
  outline: 2px solid #ff5527;
  outline-offset: 2px;
}

.cw-careers-apply__textarea {
  resize: vertical;
  min-height: 120px;
}

.cw-careers-apply__file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed rgba(243, 239, 231, 0.25);
  border-radius: 14px;
  padding: 9px 10px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.cw-careers-apply__file.has-file {
  border-color: #ff5527;
}

.cw-careers-apply__file-btn {
  background: #f3efe7;
  color: #141210;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.cw-careers-apply__file-name {
  font-size: 14px;
  color: #8e877c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-careers-apply__file.has-file .cw-careers-apply__file-name {
  color: #f3efe7;
}

.cw-careers-apply__file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.cw-careers-apply__notices {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cw-careers-apply__notice {
  border: 1px solid rgba(243, 239, 231, 0.22);
  background: transparent;
  color: #f3efe7;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cw-careers-apply__notice.is-active {
  border-color: #ff5527;
  background: #ff5527;
  color: #141210;
}

.cw-careers-apply__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cw-careers-apply__note {
  margin: 0;
  font-size: 12.5px;
  color: #8e877c;
  max-width: 420px;
}

.cw-careers-apply__submit {
  border: 0;
  background: #ff5527;
  color: #141210;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.cw-careers-apply__submit:hover,
.cw-careers-apply__submit:focus-visible {
  background: #fff;
}

.cw-careers-apply__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 959px) {
  .cw-careers-apply__intro {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cw-careers-apply__progress-fill {
    transition: none;
  }

  .cw-careers-apply__success {
    animation: none;
  }
}
