/* Modal de contato — compartilhado entre v1, v2 e v3 */

.landing-modal {
  border: none;
  padding: 0;
  margin: auto;
  max-width: min(32rem, calc(100vw - 2rem));
  width: 100%;
  background: transparent;
}

.landing-modal::backdrop {
  background: rgba(7, 13, 24, 0.55);
  backdrop-filter: blur(2px);
}

.landing-modal__panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  border-left: 3px solid #c9a962;
  box-shadow: 0 20px 25px -5px rgba(7, 13, 24, 0.12);
  overflow: hidden;
}

.lv3 .landing-modal__panel {
  border-left-color: #0d9488;
}

.landing-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.landing-modal__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

.landing-modal__desc {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

.landing-modal__close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.landing-modal__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.landing-modal__body {
  padding: 1.25rem;
}

.landing-modal__body p {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

.landing-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
}

.contact-modal__form-actions {
  padding: 0;
  margin-top: 1rem;
}

.contact-modal__error {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #b91c1c;
  font-size: 0.875rem;
}

.contact-modal__success p + p {
  margin-top: 0.75rem;
}

.contact-modal__honeypot {
  display: none;
}

.contact-modal__field {
  margin-bottom: 1rem;
}

.contact-modal__field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.contact-modal__input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font: inherit;
  color: inherit;
  background: #ffffff;
}

.contact-modal__input:focus {
  outline: 2px solid rgba(201, 169, 98, 0.45);
  outline-offset: 1px;
  border-color: #c9a962;
}

.lv3 .contact-modal__input:focus {
  outline-color: rgba(13, 148, 136, 0.35);
  border-color: #0d9488;
}

.contact-modal__textarea {
  resize: vertical;
  min-height: 6rem;
}

.contact-modal__check {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}

.contact-modal__check input {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.contact-modal__check label {
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
}

.contact-modal__check a {
  color: #a08540;
  text-decoration: underline;
}

.lv3 .contact-modal__check a {
  color: #0d9488;
}

.contact-modal__cancel,
.contact-modal__submit {
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.contact-modal__cancel {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.contact-modal__submit {
  border: none;
  background: #c9a962;
  color: #141c2b;
}

.lv3 .contact-modal__submit {
  background: #0d9488;
  color: #ffffff;
}

.contact-modal__submit:hover {
  opacity: 0.92;
}

.contact-modal__submit--blocked {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Gatilho no rodapé */
.contact-modal-trigger {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.footer-links .contact-modal-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
  transition: color 0.15s ease;
}

.footer-links .contact-modal-trigger:hover {
  color: #141c2b;
}

.lv2-footer__links .contact-modal-trigger,
.lv3-footer__links .contact-modal-trigger {
  display: block;
  font-size: 0.9375rem;
  color: inherit;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.lv2-footer__links .contact-modal-trigger:hover,
.lv3-footer__links .contact-modal-trigger:hover {
  opacity: 1;
}
