/* Planning form modal */
.planning-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 3vh 3vw;
  background: rgba(31, 42, 47, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.planning-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.planning-modal-panel {
  position: relative;
  width: min(1120px, 94vw);
  height: min(900px, 92vh);
  background: var(--ivory);
  border: 1px solid rgba(216, 189, 147, 0.7);
  box-shadow: 0 30px 90px rgba(18, 27, 31, 0.38);
  overflow: hidden;
  transform: translateY(18px) scale(0.985);
  transition: transform 0.25s ease;
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
}

.planning-modal.is-open .planning-modal-panel { transform: translateY(0) scale(1); }

.planning-modal-bar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 24px;
  background: var(--slate);
  color: var(--white);
  border-bottom: 1px solid rgba(216, 189, 147, 0.35);
}

.planning-modal-title {
  margin: 0;
  color: var(--white);
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

.planning-modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.planning-modal-close:hover { color: var(--champagne); transform: rotate(4deg); }

.planning-modal-frame {
  display: block;
  width: 100%;
  height: calc(100% - 58px);
  border: 0;
  background: var(--ivory);
}

@media (max-width: 820px) {
  .planning-modal { padding: 0; }
  .planning-modal-panel {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    clip-path: none;
    border: 0;
  }
  .planning-modal-bar { height: 54px; padding-left: 18px; }
  .planning-modal-frame { height: calc(100% - 54px); }
}
