/* popup.css — Modal de captura */

.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.popup-overlay.active {
  display: flex;
}

.popup-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  animation: popupIn 0.25s ease-out;
}

@keyframes popupIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.popup-header {
  background: var(--primary);
  color: #fff;
  padding: 28px 32px 24px;
  border-radius: 12px 12px 0 0;
  position: relative;
}
.popup-header h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 6px;
}
.popup-header p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.popup-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.popup-close:hover { background: rgba(255,255,255,0.2); }

.popup-body {
  padding: 32px;
}

/* ─── Form ───────────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-group input.field-error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}
.error-msg {
  display: block;
  font-size: 12px;
  color: var(--red);
  margin-top: 5px;
  min-height: 16px;
}

/* ─── Submit button ──────────────────────────────────────────────────────── */
.form-submit {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
  font-family: var(--font-sans);
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.3);
}
.form-submit:hover { background: var(--red-dark); }
.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-security {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.form-price-note {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  color: #166534;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 500;
}
