/* AskMed Career Apply — modal + bannière */

/* --- Bannière de confirmation --- */
.amca-notice {
  margin: 24px auto;
  max-width: 1200px;
  padding: 16px 20px;
  border-radius: 10px;
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
.amca-notice-success {
  background: #f0fbf4;
  color: #1e7a44;
  border: 1px solid #bfe8cf;
}
.amca-notice-error {
  background: #fef2f2;
  color: #b3261e;
  border: 1px solid #f3c2c2;
}

/* --- Modal --- */
.amca-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.amca-modal.amca-open {
  visibility: visible;
  opacity: 1;
}
.amca-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(2px);
}
.amca-modal-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.25);
  padding: 34px 36px 30px;
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
.amca-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f2f4f7;
  color: #333;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.amca-modal-close:hover {
  background: #e12454;
  color: #fff;
}
.amca-modal-head {
  margin-bottom: 24px;
}
.amca-modal-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #e12454;
  margin-bottom: 8px;
}
.amca-modal-head h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  color: #17161a;
}
.amca-modal-position {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #666;
}

/* --- Champs --- */
.amca-form .amca-field {
  margin-bottom: 16px;
}
.amca-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.amca-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.amca-form input[type="text"],
.amca-form input[type="email"],
.amca-form input[type="tel"],
.amca-form input[type="url"],
.amca-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d7dbe2;
  border-radius: 9px;
  font-size: 15px;
  font-family: inherit;
  color: #17161a;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.amca-form input[type="file"] {
  display: block;
  width: 100%;
  padding: 9px;
  border: 1px dashed #c4c9d1;
  border-radius: 9px;
  font-size: 13.5px;
  color: #5f6b76;
  background: #fafbfc;
  box-sizing: border-box;
}
.amca-form input:focus,
.amca-form textarea:focus {
  outline: none;
  border-color: #e12454;
  box-shadow: 0 0 0 3px rgba(225, 36, 84, 0.12);
}
.amca-hint {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #8a94a0;
}
.amca-note {
  margin: 4px 0 18px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #8a94a0;
}

/* --- Retour + bouton --- */
.amca-form-msg {
  min-height: 20px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
}
.amca-form-msg.amca-error { color: #b3261e; }
.amca-form-msg.amca-ok { color: #1e7a44; }
.amca-submit {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: #e12454;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.amca-submit:hover {
  background: #c41746;
}
.amca-submit:active {
  transform: translateY(1px);
}
.amca-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 640px) {
  .amca-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .amca-modal-card {
    padding: 26px 20px 22px;
  }
  .amca-modal-head h2 {
    font-size: 22px;
  }
}
