/* Company profile gate popup — always English LTR */
.ags-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8, 18, 36, 0.72);
  direction: ltr;
  text-align: left;
}

.ags-profile-modal[hidden] {
  display: none !important;
}

.ags-profile-modal__dialog {
  position: relative;
  width: min(100%, 34rem);
  max-height: calc(100vh - 3rem);
  overflow: auto;
  padding: 2rem 1.75rem 1.5rem;
  border-radius: 0.5rem;
  background: #fff;
  color: #2a3547;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  text-align: center;
  direction: ltr;
}

.ags-profile-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  left: auto;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7d8798;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.ags-profile-modal__close:hover,
.ags-profile-modal__close:focus-visible {
  background: #edf1f3;
  color: #2a3547;
}

.ags-profile-modal__logo {
  display: block;
  width: min(280px, 78vw);
  height: auto;
  margin: 0 auto 1.5rem;
}

.ags-profile-modal__title {
  margin: 0 0 0.5rem;
  font-family: Rubik, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 300;
  color: #2a3547;
}

.ags-profile-modal__lede {
  margin: 0 auto 1.25rem;
  max-width: 28rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #4d4d4d;
}

.ags-profile-modal .ags-standalone-form {
  width: 100%;
  margin: 0;
  text-align: left;
  direction: ltr;
}

.ags-profile-modal .ags-contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.ags-profile-modal .ags-contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left !important;
}

.ags-profile-modal .ags-contact-form__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2a3547;
}

.ags-profile-modal input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d7dbe3;
  font: inherit;
  color: #2a3547;
  background: #fff;
  direction: ltr;
  text-align: left;
}

.ags-profile-modal .form-status {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  text-align: left;
}

.ags-profile-modal .form-status.is-error {
  color: #c0392b;
}

.ags-profile-modal .ags-contact-form__submit {
  width: auto;
  margin-top: 0.5rem;
  min-width: 0;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  font-weight: 600 !important;
}

.ags-profile-modal .ags-btn {
  width: auto !important;
}

@media (max-width: 640px) {
  .ags-profile-modal__dialog {
    padding: 1.5rem 1.15rem 1.25rem;
  }

  .ags-profile-modal .ags-contact-form__grid {
    grid-template-columns: 1fr;
  }
}
