/* ─── CONTACT MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26, 65, 70, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--light-cream);
  border-radius: 24px;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow: hidden;
  overflow-y: auto;
  padding: 0;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(26, 65, 70, 0.08);
}

.form-area {
  padding: 3.5rem 3.5rem 2.75rem;
}

.modal h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.125rem;
  font-weight: 700;
  color: var(--dark-teal);
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.form-area > p {
  font-size: 0.97rem;
  color: var(--dark-teal);
  opacity: 0.7;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 2.25rem;
}

.madlib {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  margin-bottom: 1.75rem;
}

.madlib-line {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3125rem;
  line-height: 1.7;
  color: var(--dark-teal);
  font-weight: 400;
}

.ml-input {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3125rem;
  color: var(--dark-teal);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--gold);
  padding: 0.125rem 0.5rem 0.25rem;
  margin: 0 0.1875rem;
  outline: none;
  text-align: center;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
  border-radius: 0;
}

.ml-input::placeholder {
  color: var(--amber);
  opacity: 0.55;
  font-style: italic;
  font-weight: 400;
}

.ml-input:focus {
  border-bottom-color: var(--amber);
  background: rgba(211, 164, 70, 0.08);
  border-radius: 4px 4px 0 0;
}

.ml-name    { width: 220px; }
.ml-company { width: 250px; }
.ml-email   { width: 320px; }
.ml-size    { width: 90px;  }
.ml-loc     { width: 280px; }
.ml-dates   { width: 240px; }

.dream {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(26, 65, 70, 0.1);
}

.dream-prompt {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3125rem;
  color: var(--dark-teal);
  line-height: 1.4;
  margin-bottom: 0.875rem;
}

.dream textarea {
  width: 100%;
  min-height: 84px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.0625rem;
  color: var(--dark-teal);
  background: rgba(232, 224, 200, 0.35);
  border: none;
  border-radius: 12px;
  padding: 0.875rem 1rem;
  outline: none;
  resize: none;
  line-height: 1.5;
  transition: background 0.15s, box-shadow 0.15s;
}

.dream textarea:focus {
  background: rgba(232, 224, 200, 0.55);
  box-shadow: inset 0 0 0 2px var(--gold);
}

.dream textarea::placeholder {
  color: var(--amber);
  opacity: 0.55;
  font-style: italic;
}

.modal-ticker {
  background: var(--dark-teal);
  color: var(--cream);
  padding: 1.125rem 1.75rem 1.125rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.ticker-steps {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow: hidden;
}

.ticker-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 600;
  margin-right: 0.25rem;
  white-space: nowrap;
}

.ticker-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.875rem 0.25rem 0;
  white-space: nowrap;
}

.ticker-num {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark-teal);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticker-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  color: var(--cream);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.ticker-arrow {
  color: rgba(211, 164, 70, 0.5);
  font-size: 0.875rem;
  margin: 0 0.125rem;
}

.modal-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--amber);
  color: var(--light-cream);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 999px;
  padding: 0.8125rem 1.625rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(182, 109, 47, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.modal-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(182, 109, 47, 0.4);
}

.modal-submit svg {
  width: 18px;
  height: 18px;
}

.form-success {
  text-align: center;
  padding: 3rem 2.5rem;
  display: none;
}

.form-success h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-teal);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--teal);
  font-weight: 300;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .form-area { padding: 2.25rem 1.5rem 1.5rem; }
  .modal h2 { font-size: 1.625rem; }
  .madlib-line, .ml-input, .dream-prompt { font-size: 1.0625rem; line-height: 1.65; }
  .ml-name { width: 170px; }
  .ml-company { width: 190px; }
  .ml-email { width: 230px; }
  .ml-size { width: 70px; }
  .ml-loc { width: 200px; }
  .ml-dates { width: 180px; }
  .modal-ticker {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
    padding: 1.125rem 1.25rem;
  }
  .ticker-steps { flex-wrap: wrap; }
  .ticker-step { padding: 0.125rem 0.5rem 0.125rem 0; }
  .modal-submit { justify-content: center; }
  .form-success { padding: 2rem 1.5rem; }
}
