.gst-open-modal,
.gst-submit,
.gst-next-step,
.gst-prev-step {
  background: #d62828;
  color: #fff;
  border: 0;
  padding: 14px 24px;
  cursor: pointer;
  font-weight: 700;
  border-radius: 4px;
}

.gst-prev-step {
  background: #666;
}

.gst-open-modal:hover,
.gst-submit:hover,
.gst-next-step:hover,
.gst-prev-step:hover {
  opacity: .9;
}

.gst-app-message {
  padding: 14px 16px;
  margin: 0 0 20px;
  border-radius: 4px;
}
.gst-app-message.success { background: #e8f7e8; border: 1px solid #86c286; }
.gst-app-message.error { background: #fdeeee; border: 1px solid #d88; }
.gst-app-message.info { background: #eef4fb; border: 1px solid #8cb2d9; }

.gst-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483647;
}
.gst-modal.is-open { display: block; }
.gst-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
}
.gst-modal__content {
  isolation: isolate;
  position: relative;
  max-width: 860px;
  margin: 40px auto;
  background: #fff;
  padding: 28px;
  border-radius: 10px;
  z-index: 2;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.gst-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 30px;
  cursor: pointer;
}
.gst-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.gst-application-form input[type="text"],
.gst-application-form input[type="email"],
.gst-application-form textarea,
.gst-application-form input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
}
.gst-application-form label { display: inline-block; margin: 6px 0; }
.gst-step { display: none; }
.gst-step.active { display: block; }
.gst-step-nav {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 24px;
}
.gst-intro { color: #444; }
@media (max-width: 700px) {
  .gst-grid { grid-template-columns: 1fr; }
  .gst-modal__content {
  isolation: isolate; margin: 20px; padding: 20px; max-height: calc(100vh - 40px); }
}

.gst-applications-wrap { position: relative; z-index: 1; }
body.gst-modal-open { overflow: hidden; }
.gst-modal__overlay { z-index: 2147483646; }
.gst-modal__content { z-index: 2147483647; box-shadow: 0 20px 60px rgba(0,0,0,.35); }

.gst-field-error { color: #b42318; font-size: 13px; margin-top: 6px; }
.gst-application-form input[type="file"] { padding-bottom: 2px; }


/* v1.5 mobile/modal fixes */
.gst-modal { align-items: center; justify-content: center; }
.gst-modal.is-open { display: flex; }
.gst-modal__content { width: min(860px, calc(100vw - 40px)); overscroll-behavior: contain; }
html.gst-modal-open, body.gst-modal-open { overflow: hidden; }
@media (max-width: 700px) {
  .gst-modal { padding: 0 !important; align-items: stretch; justify-content: stretch; }
  .gst-modal__overlay { position: fixed; inset: 0; }
  .gst-modal__content {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    padding: 56px 18px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .gst-modal__close {
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    right: 14px;
    z-index: 2147483647;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
    line-height: 1;
  }
  .gst-step-nav {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 14px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(0,0,0,.08);
  }
}
