* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #ffffff;
  color: #111;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap{
  min-height: calc(100vh - 60px);
  padding: 56px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
}

.logo{
  max-width: min(840px, 92vw);
  height: auto;
  display: block;
}

.lead{
  max-width: 860px;
  margin: 0;
  font-size: clamp(1rem, 1rem + .5vw, 1.2rem);
  line-height: 1.65;
  color: #2a2a2a;
}

.footer{
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

/* Optional subtle fade-in */
@keyframes fadeIn { from {opacity:0; transform: translateY(6px)} to {opacity:1; transform:none} }
.wrap { animation: fadeIn .5s ease-out both; }

@media (prefers-reduced-motion: reduce){
  .wrap{ animation: none; }
}

.cta {
  display: inline-block;
  padding: 14px 24px;
  border: 2px solid #111;
  background: #111;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: .2s ease;
}
.cta:hover {
  background: #fff;
  color: #111;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  overflow: auto;
  padding: 40px 20px;
}
.modal-content {
  background: #fff;
  margin: auto;
  max-width: 800px;
  height: 80vh;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
}
.close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #444;
}
.close:hover { color: #000; }
#modalFormWrapper {
  flex: 1;
  overflow: hidden;
}
#modalFormWrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0 0 8px 8px;
}
