/* Keep the application form centered without exceeding the navigation rail. */
.apply-page .upload-box,
.apply-page .upload-file-item,
.apply-page .figma-apply-confirm > section {
  border-radius: 10px !important;
}

.apply-page .upload-box span:last-child {
  display: block;
  max-width: calc(100% - 40px);
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.apply-page .agree-line {
  align-items: flex-start;
}

.apply-page .agree-line .agree-checkbox {
  margin-top: 2px;
}

@media (max-width: 639px) {
  .apply-page .field-stack input:focus,
  .apply-page .field-stack input:focus-visible {
    border: 1px solid #1873F3;
    outline: none;
    box-shadow: none;
  }
}

@media (min-width: 640px) {
  .figma-apply-confirm[hidden] {
    display: none;
  }

  .figma-apply-confirm {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    padding: 24px;
  }

  .figma-apply-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
  }

  .figma-apply-confirm > section {
    position: relative;
    box-sizing: border-box;
    width: min(100%, 560px);
    padding: 32px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  }

  .figma-confirm-copy {
    display: flex;
    gap: 16px;
  }

  .figma-confirm-icon {
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    margin-top: 3px;
    flex: 0 0 24px;
    border: 2px solid #faad14;
    border-radius: 50%;
    color: #faad14;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
  }

  .figma-confirm-copy h2 {
    margin: 0 0 12px;
    color: #151515;
    font-size: 22px;
    line-height: 30px;
  }

  .figma-confirm-copy p {
    margin: 0;
    color: #5d5d5d;
    font-size: 16px;
    line-height: 24px;
  }

  .figma-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
  }

  .figma-confirm-actions button {
    height: 40px;
    padding: 0 20px;
    border: 0;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
  }

  .figma-confirm-actions button:first-child {
    background: #f7f7f7;
    color: #151515;
  }

  .figma-confirm-actions button:last-child {
    background: #1873f3;
    color: #fff;
  }

  .apply-page .apply-shell {
    --apply-nav-edge: clamp(24px, 9.72vw, 140px);
    box-sizing: border-box;
    width: min(calc(100% - var(--apply-nav-edge) * 2), 888px);
    margin-top: 80px;
    margin-left: auto;
    margin-right: auto;
  }
}
