:root {
  --gup-primary: #ff1493;
  --gup-primary-dark: #c2027a;
  --gup-accent: #ffd9ee;
  --gup-bg: #fffafc;
  --gup-card: #ffffff;
  --gup-text: #3a1330;
  --gup-muted: #8a5c7b;
  --gup-line: #ffd9ee;
  --gup-shadow: 0 26px 70px rgba(255, 20, 147, 0.22);
}

body.gup-modal-open {
  overflow: hidden;
}
.gup-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gup-modal.is-open {
  display: flex;
  animation: gup-fade 0.25s ease both;
}
.gup-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 18, 40, 0.5);
}
.gup-modal__panel {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 52px);
  background: var(--gup-card);
  color: var(--gup-text);
  border-radius: 24px;
  border: 1px solid var(--gup-line);
  box-shadow: var(--gup-shadow);
  animation: gup-rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.gup-modal__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--gup-primary) 0%,
    var(--gup-accent) 100%
  );
  border-radius: 24px 24px 0 0;
}
.gup-modal__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gup-line);
  border-radius: 50%;
  background: transparent;
  color: var(--gup-text);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.gup-modal__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 20, 147, 0.08);
  color: var(--gup-primary);
  font:
    700 11px/1.2 "Poppins",
    Arial,
    sans-serif;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.gup-modal h2 {
  max-width: 370px;
  margin: 0 0 12px;
  font:
    700 clamp(30px, 5vw, 44px)/1.02 "Poppins",
    Arial,
    sans-serif;
  letter-spacing: -0.04em;
  color: var(--gup-primary);
}
.gup-modal__intro p {
  max-width: 410px;
  margin: 0 0 28px;
  color: var(--gup-muted);
  font:
    16px/1.6 "Poppins",
    Arial,
    sans-serif;
}
.gup-form {
  display: grid;
  gap: 15px;
}
.gup-form label {
  display: grid;
  gap: 7px;
  color: var(--gup-text);
  font:
    700 12px/1.2 "Poppins",
    Arial,
    sans-serif;
  letter-spacing: 0.3px;
}
.gup-form input,
.gup-form select {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--gup-line);
  border-radius: 12px;
  outline: none;
  background: var(--gup-bg);
  color: var(--gup-text);
  font:
    15px "Poppins",
    Arial,
    sans-serif;
}
.gup-form input:focus,
.gup-form select:focus {
  border-color: var(--gup-primary);
  box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.12);
}
.gup-form__submit {
  height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--gup-primary) 0%,
    var(--gup-primary-dark) 100%
  );
  color: #fff;
  font:
    700 14px/1 "Poppins",
    Arial,
    sans-serif;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(255, 20, 147, 0.2);
}
.gup-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(255, 20, 147, 0.25);
}
.gup-form__submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
  box-shadow: none;
}
.gup-form__message {
  min-height: 18px;
  margin: 0;
  color: var(--gup-muted);
  font:
    13px/1.4 "Poppins",
    Arial,
    sans-serif;
}
.gup-form__message.is-success {
  color: #2f7d2b;
}
.gup-form__message.is-error {
  color: #b73333;
}
@keyframes gup-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes gup-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 480px) {
  .gup-modal {
    padding: 12px;
  }
  .gup-modal__panel {
    max-height: calc(100vh - 24px);
    padding: 38px 22px 25px;
  }
  .gup-modal h2 {
    font-size: 34px;
  }
}
