.talk-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.talk-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.talk-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 7, 12, 0.76);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.talk-modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-1deg);
  width: min(90vw, 920px);
  background: #ffffff;
  border: 1px solid rgba(16, 23, 34, 0.14);
  border-radius: 0;
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.42);
  padding: clamp(20px, 2.5vw, 30px) clamp(22px, 2.8vw, 36px) clamp(76px, 8vw, 112px);
  overflow: visible;
}

.talk-modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #00a46f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 20;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.talk-modal-close-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: square;
  fill: none;
}

.talk-modal-close:hover {
  background: transparent;
}

.talk-modal-clip-system {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9;
  pointer-events: none;
  overflow: visible;
}

.talk-modal-label {
  margin: 0;
  color: rgba(21, 29, 40, 0.72);
  font-size: clamp(0.72rem, 0.86vw, 0.92rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.talk-modal-title {
  margin: 8px 0 0;
  color: #131924;
  font-size: clamp(1.34rem, 2.7vw, 2.46rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.talk-title-accent {
  border-bottom: 5px solid #00a46f;
  padding-bottom: 2px;
  font-weight: 700;
}

.talk-title-base {
  font-weight: 600;
}

.talk-modal-copy {
  margin: 12px 0 16px;
  color: rgba(22, 30, 42, 0.84);
  font-size: clamp(0.82rem, 0.98vw, 1.02rem);
}

.talk-modal-label,
.talk-modal-title,
.talk-modal-copy,
.talk-form {
  transition: opacity 180ms ease;
}

.talk-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.talk-field {
  display: grid;
  gap: 6px;
}

.talk-field-full {
  grid-column: 1 / -1;
}

.talk-field span {
  color: #121924;
  font-size: clamp(0.76rem, 0.87vw, 0.92rem);
  font-weight: 600;
}

.talk-field input,
.talk-field textarea {
  border: 1px solid rgba(18, 25, 36, 0.62);
  border-radius: 999px;
  background: #ffffff;
  color: #111722;
  font-family: inherit;
  font-size: clamp(0.84rem, 0.93vw, 0.98rem);
  padding: 11px 14px;
  outline: none;
}

.talk-field textarea {
  min-height: 126px;
  border-radius: 18px;
  resize: vertical;
}

.talk-field input:focus,
.talk-field textarea:focus {
  border-color: rgba(0, 164, 111, 0.82);
  box-shadow: 0 0 0 2px rgba(0, 164, 111, 0.2);
}

.talk-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 4px;
}

.talk-submit {
  border: 0;
  border-radius: 0;
  background: #00c88b;
  color: #10151e;
  font-family: inherit;
  font-size: clamp(0.8rem, 0.92vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 11px 14px 11px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.talk-submit img {
  width: 18px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(10%) sepia(18%) saturate(837%) hue-rotate(180deg) brightness(93%) contrast(94%);
}

.talk-submit:hover {
  filter: brightness(1.03);
}

.talk-status {
  margin: 0;
  color: #0a6e4d;
  font-size: clamp(0.76rem, 0.88vw, 0.92rem);
  font-weight: 600;
}

.talk-status.is-error {
  color: #a11717;
}

.talk-card-reveal-layer {
  position: absolute;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
}

.talk-card-reveal-circle {
  position: absolute;
  inset: 0;
  background: #00c88b;
  clip-path: circle(0px at 50% 50%);
  -webkit-clip-path: circle(0px at 50% 50%);
}

.talk-success-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.talk-success-icon {
  width: clamp(42px, 4.4vw, 64px);
  height: auto;
}

.talk-success-text {
  margin: 0;
  color: #111722;
  font-size: clamp(1rem, 1.32vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.talk-modal-card.is-success {
  background: #00c88b;
  border-color: #00c88b;
}

.talk-modal-card.is-success .talk-modal-close {
  color: #f5f5f5;
  background: transparent;
}

.talk-modal-card.is-success .talk-modal-close:hover {
  background: transparent;
}

.talk-modal-card.is-success .talk-modal-label,
.talk-modal-card.is-success .talk-modal-title,
.talk-modal-card.is-success .talk-modal-copy,
.talk-modal-card.is-success .talk-form {
  opacity: 0;
  pointer-events: none;
}

.talk-modal-card.is-success .talk-success-overlay {
  opacity: 1;
}

.talk-modal-card.is-success .talk-modal-sticker {
  opacity: 0;
  visibility: hidden;
}

.talk-modal-sticker {
  position: absolute;
  pointer-events: auto;
  z-index: 10;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.talk-modal-sticker.is-dragging {
  cursor: grabbing;
  z-index: 18;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.2));
}

.talk-modal-sticker-a {
  width: clamp(94px, 8.4vw, 126px);
  right: 26%;
  top: 60%;
  transform: rotate(-18deg);
  z-index: 11;
}

.talk-modal-sticker-b {
  width: clamp(78px, 6.6vw, 98px);
  right: 12%;
  top: 63%;
  transform: rotate(16deg);
  z-index: 13;
}

.talk-modal-sticker-c {
  width: clamp(92px, 8vw, 122px);
  right: 2%;
  top: 69%;
  transform: rotate(9deg);
  z-index: 10;
}

.talk-modal-sticker-d {
  width: clamp(90px, 7.8vw, 118px);
  right: 20%;
  top: 71%;
  transform: rotate(-7deg);
  z-index: 12;
}

body.is-talk-modal-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .talk-modal-card {
    width: min(95vw, 760px);
    transform: translate(-50%, -50%) rotate(-0.4deg);
    padding: 18px 16px 84px;
  }

  .talk-modal-title {
    font-size: clamp(1.18rem, 3.8vw, 1.88rem);
    gap: 8px;
  }

  .talk-title-accent {
    border-bottom-width: 4px;
  }

  .talk-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .talk-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .talk-submit {
    width: 100%;
    justify-content: center;
  }

  .talk-modal-sticker-a {
    width: 84px;
    right: 26%;
    top: 72%;
  }

  .talk-modal-sticker-b {
    width: 70px;
    right: 10%;
    top: 75%;
  }

  .talk-modal-sticker-c {
    width: 80px;
    right: 1%;
    top: 80%;
  }

  .talk-modal-sticker-d {
    width: 76px;
    right: 20%;
    top: 79%;
  }
}
