/* Apply popup / modal — styling tuned to match the design mock. */
.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  overflow-y: auto;
  padding: 24px 16px;
  background: rgba(17, 17, 17, 0.55);
}
.apply-modal.is-open {
  display: flex;
}
.apply-modal__overlay {
  position: fixed;
  inset: 0;
  cursor: pointer;
}
.apply-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 32px 32px 30px;
  box-sizing: border-box;
  font-family: 'CircularXXTT', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.apply-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
}
.apply-modal__close:hover {
  color: #111;
}
.apply-modal__title {
  margin: 0 0 6px;
  padding-right: 28px;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 700;
  color: #1a1423;
  letter-spacing: -0.3px;
}
.apply-modal__subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: #6b7280;
}
.apply-modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.apply-modal__input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #d8dadf;
  border-radius: 8px;
  font-size: 15px;
  color: #1a1423;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.apply-modal__input::placeholder {
  color: #9aa0a6;
}
.apply-modal__input:focus {
  border-color: #e4151f;
  box-shadow: 0 0 0 3px rgba(228, 21, 31, 0.12);
}
.apply-modal__select {
  appearance: none;
  -webkit-appearance: none;
  color: #9aa0a6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.apply-modal__select:valid {
  color: #1a1423;
}
.apply-modal__submit {
  margin-top: 6px;
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 8px;
  background: #e4151f;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.apply-modal__submit:hover {
  background: #c5121b;
}
body.apply-modal-open {
  overflow: hidden;
}
@media (max-width: 480px) {
  .apply-modal__card {
    padding: 28px 20px 24px;
  }
  .apply-modal__title {
    font-size: 21px;
  }
}
