/* "Submit Your Resume" modal, opened from any .js-apply-now button. */

.cyma-resume-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}

.cyma-resume-modal[hidden] {
  display: none;
}

.cyma-resume-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 35, 0.6);
}

.cyma-resume-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(10, 16, 35, 0.35);
  padding: 40px;
  box-sizing: border-box;
}

.cyma-resume-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f3f8;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: #333;
  cursor: pointer;
}

.cyma-resume-modal__close:hover {
  background: #e4e8f2;
}

.cyma-resume-modal__header {
  margin-bottom: 24px;
}

.cyma-resume-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1b2c66;
  text-transform: uppercase;
}

.cyma-resume-modal__title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  color: #0b1f3a;
}

.cyma-resume-modal__subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #5a6579;
}

.cyma-resume-modal__alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.cyma-resume-modal__alert--error {
  background: #fdeceb;
  color: #b3261e;
  border: 1px solid #f5c2bf;
}

.cyma-resume-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.cyma-resume-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cyma-resume-form__field--full {
  grid-column: 1 / -1;
}

.cyma-resume-form__field label {
  font-size: 13px;
  font-weight: 600;
  color: #0b1f3a;
}

.cyma-resume-form__field .req {
  color: #d33;
}

.cyma-resume-form__field input[type="text"],
.cyma-resume-form__field input[type="email"],
.cyma-resume-form__field input[type="tel"],
.cyma-resume-form__field input[type="url"],
.cyma-resume-form__field select,
.cyma-resume-form__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d6dae4;
  border-radius: 8px;
  font-size: 14px;
  color: #0b1f3a;
  background: #fff;
  font-family: inherit;
}

.cyma-resume-form__field input:focus,
.cyma-resume-form__field select:focus,
.cyma-resume-form__field textarea:focus {
  outline: none;
  border-color: #1b2c66;
  box-shadow: 0 0 0 3px rgba(27, 44, 102, 0.12);
}

.cyma-resume-form__field input[type="file"] {
  font-size: 13px;
}

.cyma-resume-form__hint {
  margin: 0;
  font-size: 12px;
  color: #8a92a3;
}

.cyma-resume-form__agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #444;
}

.cyma-resume-form__agree input {
  margin-top: 3px;
  flex-shrink: 0;
}

.cyma-resume-form__agree a {
  color: #1b2c66;
  text-decoration: underline;
}

.cyma-resume-form__submit {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  background: #0b1f3a;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.cyma-resume-form__submit:hover {
  background: #142a52;
}

.cyma-resume-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cyma-resume-modal__success {
  text-align: center;
  padding: 24px 0;
}

.cyma-resume-modal__success-icon {
  width: 56px;
  height: 56px;
  line-height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e6f4ea;
  color: #1e7e34;
  font-size: 26px;
}

.cyma-resume-modal__success .cyma-resume-form__submit {
  max-width: 200px;
  margin: 20px auto 0;
}

@media (max-width: 640px) {
  .cyma-resume-modal {
    padding: 0;
  }

  .cyma-resume-modal__dialog {
    max-width: 100%;
    min-height: 100%;
    border-radius: 0;
    padding: 28px 20px;
  }

  .cyma-resume-form__grid {
    grid-template-columns: 1fr;
  }
}
