/* Modal local com Google Forms incorporado; mantém intacto o layout do restante do site. */
button.catalog-request-button { cursor: pointer; }

.catalog-modal {
  width: min(704px, calc(100vw - 24px));
  max-width: 704px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--cream);
  box-shadow: var(--shadow);
  font-family: var(--sans);
}

.catalog-modal::backdrop {
  background: rgba(20, 35, 25, .6);
  backdrop-filter: blur(4px);
}

.catalog-modal:not([open]) { display: none; }

.catalog-modal .catalog-modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 24px 28px 14px;
  background: var(--cream);
}

.catalog-modal .catalog-modal-eyebrow {
  margin: 0 46px 8px 0;
  color: var(--leaf);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.catalog-modal h2 {
  margin: 0 46px 8px 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.catalog-modal .catalog-modal-intro {
  max-width: 540px;
  margin: 0;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.5;
}

.catalog-modal .catalog-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.catalog-modal .catalog-modal-close:hover { background: var(--pollen); }
.catalog-modal .catalog-modal-close:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }
.catalog-modal .catalog-modal-close svg { width: 16px; height: 16px; }

.catalog-form-embed { padding: 0 20px 18px; }

.catalog-form-embed iframe {
  display: block;
  width: 100%;
  max-width: 640px;
  height: 2234px;
  margin: 0 auto;
  border: 0;
  background: #fff;
}

@media (max-width: 600px) {
  .catalog-modal {
    width: calc(100vw - 16px);
    max-width: none;
    max-height: calc(100dvh - 16px);
    border-radius: 10px;
  }

  .catalog-modal .catalog-modal-header { padding: 20px 18px 12px; }
  .catalog-modal h2 { font-size: 1.65rem; }
  .catalog-modal .catalog-modal-close { top: 13px; right: 13px; }
  .catalog-modal .catalog-modal-intro { font-size: .84rem; }
  .catalog-form-embed { padding: 0 8px 12px; }
  .catalog-form-embed iframe { width: 100%; height: 2234px; }
}

@media (prefers-reduced-motion: no-preference) {
  .catalog-modal[open] { animation: catalog-modal-enter .18s ease-out; }
  @keyframes catalog-modal-enter {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
