.fmss-trigger-wrap {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.fmss-trigger-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(191, 78, 108, 0.24);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff5f8 0%, #f9dfe8 100%);
  color: #bf4e6c;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 10px 22px rgba(191, 78, 108, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.45) inset;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.fmss-trigger-button:hover,
.fmss-trigger-button:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(191, 78, 108, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.45) inset;
  filter: saturate(1.04);
}

.fmss-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px 16px;
}

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

.fmss-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(229, 106, 138, 0.12), transparent 34%),
    rgba(19, 34, 56, 0.58);
  backdrop-filter: blur(14px);
}

.fmss-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px 22px 20px;
  border: 1px solid rgba(31, 54, 88, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(229, 106, 138, 0.16), transparent 30%),
    radial-gradient(circle at bottom left, rgba(31, 54, 88, 0.05), transparent 28%),
    linear-gradient(180deg, #fffefe 0%, #fff7fa 100%);
  box-shadow:
    0 28px 90px rgba(15, 23, 42, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.fmss-modal__close {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-inline-start: auto;
  border: 1px solid rgba(31, 54, 88, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #20324b;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.fmss-modal__header {
  display: grid;
  gap: 6px;
  margin-top: -6px;
  margin-bottom: 18px;
  text-align: center;
}

.fmss-modal__title {
  margin: 0;
  color: #132238;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.fmss-notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  line-height: 1.6;
}

.fmss-notice p {
  margin: 0;
}

.fmss-notice--success {
  border-color: rgba(36, 102, 58, 0.1);
  background: linear-gradient(180deg, #f3fbf4 0%, #e9f7ec 100%);
  color: #24663a;
}

.fmss-notice--info {
  border-color: rgba(40, 76, 130, 0.1);
  background: linear-gradient(180deg, #f2f7ff 0%, #e8f0ff 100%);
  color: #284c82;
}

.fmss-notice--error {
  border-color: rgba(167, 51, 81, 0.1);
  background: linear-gradient(180deg, #fff5f6 0%, #ffecef 100%);
  color: #a73351;
}

.fmss-form {
  display: grid;
  gap: 12px;
}

.fmss-form__label {
  color: #132238;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
}

.fmss-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.fmss-form__input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(31, 54, 88, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: #132238;
  font: inherit;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.fmss-form__button {
  min-height: 50px;
  width: 100%;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #e56a8a 0%, #bf4e6c 100%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow:
    0 16px 30px rgba(191, 78, 108, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.24) inset;
}

.fmss-form__button:hover,
.fmss-form__button:focus-visible {
  filter: saturate(1.05);
  transform: translateY(-1px) scale(1.01);
}

@media (max-width: 720px) {
  .fmss-modal__dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 20px 16px 18px;
    border-radius: 24px;
  }
}
