/* lead-capture.css — Modal de captura de leads
   Team Morado Photography */

.tm-lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
  padding: 20px;
}
.tm-lead-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.tm-lead-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(20, 0, 30, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(214, 180, 90, 0.15);
  border-radius: 16px;
  padding: 36px 28px 28px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
  box-shadow: 0 0 80px rgba(92, 26, 117, 0.20), 0 20px 60px rgba(0, 0, 0, 0.50);
}
.tm-lead-overlay.open .tm-lead-modal {
  transform: translateY(0) scale(1);
}

.tm-lead-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.tm-lead-close:hover {
  color: #D6B45A;
  border-color: rgba(214, 180, 90, 0.30);
}

.tm-lead-title {
  font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.2;
}
.tm-lead-subtitle {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.50);
  margin: 0 0 24px;
  line-height: 1.4;
}

.tm-lead-field {
  margin-bottom: 16px;
}
.tm-lead-label {
  display: block;
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #D6B45A;
  margin-bottom: 6px;
}
.tm-lead-input {
  width: 100%;
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.25s;
  box-sizing: border-box;
}
.tm-lead-input:focus {
  border-color: rgba(214, 180, 90, 0.40);
}
.tm-lead-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.tm-lead-input.error {
  border-color: rgba(220, 60, 60, 0.60);
}

.tm-lead-phone-wrap {
  display: flex;
  gap: 0;
}
.tm-lead-phone-prefix {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.50);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 12px 12px;
  user-select: none;
}
.tm-lead-phone-wrap .tm-lead-input {
  border-radius: 0 8px 8px 0;
}

.tm-lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
}
.tm-lead-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #D6B45A;
  cursor: pointer;
}
.tm-lead-consent label {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
  cursor: pointer;
}
.tm-lead-consent label a {
  color: rgba(214, 180, 90, 0.70);
  text-decoration: underline;
}
.tm-lead-consent label a:hover {
  color: #D6B45A;
}

.tm-lead-submit {
  width: 100%;
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #140018;
  background: linear-gradient(135deg, #D6B45A, #C9A84C);
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tm-lead-submit:hover {
  opacity: 0.90;
}
.tm-lead-submit:active {
  transform: scale(0.98);
}
.tm-lead-submit:disabled {
  opacity: 0.50;
  cursor: not-allowed;
}
.tm-lead-submit svg {
  width: 18px;
  height: 18px;
  fill: #140018;
}

.tm-lead-error-msg {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 12px;
  color: rgba(220, 60, 60, 0.85);
  margin-top: 4px;
}

/* Success state */
.tm-lead-success {
  text-align: center;
  padding: 20px 0;
}
.tm-lead-success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.tm-lead-success h3 {
  font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 8px;
}
.tm-lead-success p {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.50);
  margin: 0 0 24px;
}

/* Mobile */
@media (max-width: 480px) {
  .tm-lead-modal {
    padding: 28px 20px 20px;
    border-radius: 12px;
  }
  .tm-lead-title {
    font-size: 20px;
  }
}
