.mhr-scholarship-shortcode .wp-block-buttons {
  display: flex;
}

.mhr-scholarship-shortcode .wp-block-buttons.is-content-justification-left {
  justify-content: flex-start;
}

.mhr-scholarship-shortcode .wp-block-buttons.is-content-justification-center {
  justify-content: center;
}

.mhr-scholarship-shortcode .wp-block-buttons.is-content-justification-right {
  justify-content: flex-end;
}

.mhr-scholarship-shortcode .wp-block-button__link {
  cursor: pointer;
}

.mhr-scholarship-shortcode .wp-block-button.is-style-outline > .wp-block-button__link {
  color: currentColor;
  background: transparent;
  border: 2px solid currentColor;
}

.mhr-scholarship-modal {
  width: min(760px, calc(100% - 32px));
  max-width: 760px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.mhr-scholarship-modal::backdrop {
  background: rgba(20, 20, 20, 0.72);
}

.mhr-scholarship-modal__surface {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

.mhr-scholarship-modal__header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  background: #fff;
  border-bottom: 1px solid #e7ebf0;
}

.mhr-scholarship-modal__header h2 {
  margin: 0;
  font: inherit;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 700;
}

.mhr-scholarship-modal__close {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: #252525;
  background: transparent;
  border: 1px solid #c8ced6;
  border-radius: 50%;
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mhr-scholarship-modal__close:hover,
.mhr-scholarship-modal__close:focus-visible {
  background: #f2f2f2;
}

.mhr-scholarship-modal__body {
  padding: 24px;
}

.mhr-scholarship-modal-is-open {
  overflow: hidden;
}

.mhr-scholarship-form-wrap {
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
}

.mhr-scholarship-form-wrap,
.mhr-scholarship-form-wrap * {
  box-sizing: border-box;
}

.mhr-scholarship-form-title {
  margin: 0 0 1rem;
}

.mhr-scholarship-form-admin-note,
.mhr-scholarship-form-message,
.mhr-scholarship-success-card {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.mhr-scholarship-form-admin-note {
  background: #fff8db;
  border: 1px solid #ead591;
}

.mhr-scholarship-form-message {
  border: 1px solid transparent;
}

.mhr-scholarship-form-message--error {
  background: #fff2f2;
  border-color: #e4b3b3;
  color: #7a1f1f;
}

.mhr-scholarship-form-message--success,
.mhr-scholarship-success-card {
  background: #eef9f0;
  border: 1px solid #b8ddbf;
  color: #1f5c2d;
}

.mhr-scholarship-field {
  margin-bottom: 1rem;
}

.mhr-scholarship-field label {
  display: block;
  margin-bottom: 0.45rem;
}

.mhr-scholarship-fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

.mhr-scholarship-fieldset legend {
  margin-bottom: 0.55rem;
}

.mhr-scholarship-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.mhr-scholarship-options label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.mhr-scholarship-options input[type="radio"] {
  width: auto;
  margin: 0;
}

.mhr-scholarship-field input,
.mhr-scholarship-field textarea {
  width: 100%;
  display: block;
  border: 1px solid #c8ced6;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  font: inherit;
}

.mhr-scholarship-field textarea {
  resize: vertical;
  min-height: 140px;
}

.mhr-scholarship-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 1rem;
}

.mhr-scholarship-actions--split {
  justify-content: space-between;
  flex-wrap: wrap;
}

.mhr-scholarship-button {
  appearance: none;
  border: 0;
  border-radius: 4px;
  padding: 12px 20px;
  font: inherit;
  cursor: pointer;
  line-height: 1.2;
  background: #c6a183;
  color: #fff;
}

.mhr-scholarship-button:hover,
.mhr-scholarship-button:focus {
  opacity: 0.92;
}

.mhr-scholarship-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.mhr-scholarship-button--secondary {
  background: #e9edf2;
  color: #22303f;
}

.mhr-scholarship-confirm-intro h4,
.mhr-scholarship-success-card h4 {
  margin: 0 0 0.5rem;
}

.mhr-scholarship-confirm-intro p,
.mhr-scholarship-success-card p {
  margin: 0;
}

.mhr-scholarship-summary {
  margin: 1rem 0;
  padding: 0;
}

.mhr-scholarship-summary > div {
  padding: 12px 0;
  border-bottom: 1px solid #e7ebf0;
}

.mhr-scholarship-summary dt {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.mhr-scholarship-summary dd {
  margin: 0;
  white-space: pre-wrap;
}

.mhr-scholarship-recaptcha-wrap {
  margin-top: 1rem;
}

.mhr-scholarship-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 640px) {
  .mhr-scholarship-modal {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }

  .mhr-scholarship-modal__surface {
    max-height: calc(100dvh - 20px);
  }

  .mhr-scholarship-modal__header,
  .mhr-scholarship-modal__body {
    padding: 18px;
  }

  .mhr-scholarship-actions,
  .mhr-scholarship-actions--split {
    flex-direction: column;
    align-items: stretch;
  }

  .mhr-scholarship-button {
    width: 100%;
  }
}
