/* ─────────────────────────────────────────────────────
   TRUTHSET PRIVACY FORM
   ───────────────────────────────────────────────────── */

.pf-wrap {
  max-width: 620px;
  margin: 0 !important;
  padding: 20px;
}


.privacy-form {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
}

/* ── Fields ── */
.pf-field {
  margin-bottom: 24px;
}

.privacy-form label,
.pf-label-block {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.pf-help-text {
  font-size: 14px;
  color: #666;
  margin: -4px 0 12px;
}

/* ── Inputs ── */
.privacy-form input[type="text"],
.privacy-form input[type="email"],
.privacy-form input[type="tel"],
.privacy-form select,
.privacy-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.privacy-form input:focus,
.privacy-form select:focus,
.privacy-form textarea:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* ── Select ── */
.pf-select-wrap { position: relative; }

.privacy-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' height='20' viewBox='0 0 24 24' width='20'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

/* ── Textarea ── */
.privacy-form textarea {
  resize: vertical;
  min-height: 80px;
}

/* ── Labels ── */
.pf-required { color: #e74c3c; margin-left: 2px; }
.pf-hint { font-weight: 400; color: #888; font-size: 13px; }

/* ── Checkboxes ── */
.pf-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pf-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
}

.pf-checkbox:hover {
  background: #f0f7ff;
  border-color: #cce0ff;
}

.pf-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pf-checkbox-mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #bbb;
  border-radius: 4px;
  background: #fff;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}


.pf-checkbox input:checked ~ .pf-checkbox-mark {
  background: #0066ff;
  border-color: #0066ff;
}

.pf-checkbox input:checked ~ .pf-checkbox-mark::after {
  content: '';
  width: 5px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.pf-checkbox:has(input:checked) {
  background: #e6f3ff;
  border-color: #80c7ff;
}

.pf-checkbox-text {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

/* ── Radios ── */
.pf-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.pf-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
}

.pf-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #0066ff;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Verification Notice ── */
.pf-verification-box {
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.pf-verification-box strong {
  display: block;
  font-size: 15px;
  color: #92400e;
  margin-bottom: 8px;
}

.pf-verification-box p {
  margin: 0;
  font-size: 14px;
  color: #78350f;
  line-height: 1.6;
}

/* ── Agent Upload Box ── */
.pf-agent-upload-box {
  background: #f8f9fa;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.pf-agent-upload-box strong {
  display: block;
  font-size: 15px;
  color: #333;
  margin-bottom: 6px;
}

.pf-agent-upload-box p {
  font-size: 14px;
  color: #666;
  margin: 0 0 16px;
}

.pf-upload-area {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}

.pf-upload-area:hover,
.pf-upload-area.pf-upload-dragging {
  border-color: #0066ff;
  background: #f0f7ff;
}

.pf-upload-area.pf-upload-selected {
  border-color: #22c55e;
  background: #f0fdf4;
}

.pf-upload-icon { font-size: 32px; margin-bottom: 8px; }

.pf-upload-area p {
  margin: 4px 0;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.pf-upload-area small {
  color: #999;
  font-size: 12px;
}

.pf-upload-filename {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #16a34a;
  font-weight: 600;
}

/* Hide the actual file input */
#pf-agent-doc { display: none; }

/* ── Consumer Email wrapper ── */
.pf-consumer-email {
  margin-bottom: 0;
}

/* ── Submit ── */
.pf-submit-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.pf-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #0066ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.pf-submit:hover { background: #0052cc; transform: translateY(-1px); }
.pf-submit:active { transform: translateY(0); }
.pf-submit:disabled { background: #99c7ff; cursor: not-allowed; transform: none; }

/* ── Spinner ── */
.pf-submit-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pf-spin 0.8s linear infinite;
}

@keyframes pf-spin { to { transform: rotate(360deg); } }

/* ── Messages ── */
.pf-success,
.pf-error {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.pf-success {
  background: #f0fdf4;
  border: 1.5px solid #22c55e;
  color: #15803d;
}

.pf-error {
  background: #fff1f2;
  border: 1.5px solid #f43f5e;
  color: #be123c;
}

/* ── Reveal Animation ── */
.pf-reveal {
  animation: pf-slide-in 0.3s ease forwards;
}

@keyframes pf-slide-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .pf-wrap { padding: 16px; }
  .privacy-form input,
  .privacy-form select,
  .privacy-form textarea { font-size: 16px; }
}

/* Override the global label rule specifically for checkboxes */
.privacy-form label.pf-checkbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
  font-size: inherit;
  font-weight: normal;
  margin-bottom: 0;
  color: inherit;
}

.pf-mn-or-access {
    margin-left: 32px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.pf-sub-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

/* ── Success Modal — Elementor-safe overrides ──────────── */
.pf-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    padding: 20px !important;
}

.pf-modal-overlay[hidden] {
    display: none !important;
}

.pf-modal-box {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 44px 40px 40px !important;
    max-width: 460px !important;
    width: 100% !important;
    text-align: center !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22), 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    animation: pf-modal-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
    /* Reset Elementor's inherited font sizing */
    font-size: 16px !important;
    line-height: 1.5 !important;
    font-family: "Raleway", sans-serif !important;
}

@keyframes pf-modal-in {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(16px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pf-modal-icon {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    background: #22c55e !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    font-size: 28px !important;
    line-height: 1 !important;
    /* Force flex centering — fights Elementor * box-sizing issues */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 24px auto !important;
    box-shadow: 0 4px 18px rgba(34, 197, 94, 0.35) !important;
    box-sizing: border-box !important;
}

.pf-modal-title {
    font-family: "Raleway", sans-serif !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0E223A !important; /* your --e-global-color-secondary */
    margin: 0 0 12px 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.2px !important;
}

.pf-modal-body {
    font-family: "Raleway", sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #595959 !important; /* your --e-global-color-1b484c0 */
    line-height: 1.65 !important;
    margin: 0 auto 28px auto !important;
    max-width: 340px !important;
}

.pf-modal-body strong {
    color: #0E223A !important;
    font-weight: 700 !important;
}

.pf-modal-close {
    display: inline-block !important;
    background: #1D9DF3 !important; /* your --e-global-color-primary */
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 36px !important;
    font-family: "Raleway", sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.18s ease, transform 0.15s ease !important;
    outline: none !important;
    box-shadow: none !important;
}

.pf-modal-close:hover {
    background: #0E223A !important;
    transform: translateY(-1px) !important;
}

.pf-modal-close:active {
    transform: translateY(0) !important;
}

.pf-modal-overlay {
    cursor: pointer !important;
}

.pf-modal-box {
    cursor: default !important;
}
