/* Front-end styles for VA Trust Generator wizard */

.va-tg-wizard {
    max-width: 800px;
    margin: 0 auto;
}

.va-tg-wizard h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #5c2d91;
}

.va-tg-wizard h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 18px 0 8px;
}

/* Step navigation */
.va-tg-wizard .va-tg-step-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2em 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    font-size: 13px;
    border-bottom: 1px solid #e6e6f0; /* subtle ruler under the nav */
    padding-bottom: 6px;
}

.va-tg-wizard .va-tg-step-nav li {
    margin: 0;
}

.va-tg-wizard .va-tg-step-nav a {
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition:
        background-color 0.12s ease,
        border-color 0.12s ease,
        color 0.12s ease;
}

.va-tg-wizard .va-tg-step-nav a:hover {
    background-color: #f5f3ff;
    border-color: #ddd6fe;
}

/* Current step link */
.va-tg-wizard .va-tg-step-nav .is-current a,
.va-tg-wizard .va-tg-step-nav .is-current {
    color: #5c2d91;
    font-weight: 600;
}

.va-tg-wizard .va-tg-step-nav .is-current a {
    background-color: #f3ecff;
    border-color: #d0bfff;
}

/* Fields & inputs */
.va-tg-wizard .va-tg-field {
    margin-bottom: 0.9em;
}

.va-tg-wizard .va-tg-label {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.va-tg-wizard .va-tg-input {
    width: 100%;
    max-width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.va-tg-wizard .va-tg-input:focus {
    outline: 0;
    border-color: #888;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.va-tg-wizard .va-tg-input-textarea {
    min-height: 96px;
    resize: vertical;
}

.va-tg-wizard .va-tg-input-select {
    height: 34px;
}

.va-tg-wizard .va-tg-input-text,
.va-tg-wizard .va-tg-input-email,
.va-tg-wizard .va-tg-input-phone,
.va-tg-wizard .va-tg-input-date {
    height: 34px;
    line-height: 1.4;
}

.va-tg-wizard .va-tg-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.va-tg-wizard .va-tg-input-checkbox {
    width: auto;
    margin: 0;
}

.va-tg-wizard .va-tg-help {
    margin: 2px 0;
    font-size: 12px;
    line-height: 1.2em;
    opacity: 0.85;
}

/* Review table */
.va-tg-wizard .va-tg-review-table {
    max-width: 800px;
}

/* Review note */
.va-tg-wizard .va-tg-review-note {
    margin-top: 1em;
}

/* ---------------------------------------------
   Tribute Landing (Start-Here) specific styling
   --------------------------------------------- */

/* Give the landing page a bit more breathing room */
.va-tg-wizard.vatg-tribute-landing {
    padding: 6px 0;
}

/* Contribution method block */
#vatg_contribution_method label {
    cursor: pointer;
}

#vatg_contribution_method input[type="radio"] {
    margin-right: 6px;
}

/* Make the two H2 headers consistent */
#vatg_hdr_physical,
#vatg_hdr_digital {
    margin: 16px 0 10px 0;
}

/* If any section is hidden via JS, keep it truly hidden */
#vatg_digital_section[style*="display:none"],
#vatg_physical_section[style*="display:none"],
#vatg_native_rail_box[style*="display:none"] {
    display: none !important;
}

/* Helper list polish */
.vatg-funding-ul {
    margin: 8px 0 0 18px;
}

.vatg-funding-ul li {
    margin: 4px 0;
}

/* Native rail code boxes readability */
#vatg_native_receive_address,
#vatg_native_memo_value,
#vatg_native_tag_value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
}

/* Physical dropzone polish (reusable) */
#vatg_pm_dropzone,
.va-tg-dropzone {
    border: 2px dashed #bbb;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

#vatg_pm_dropzone:hover,
.va-tg-dropzone:hover {
    border-color: #888;
}

#vatg_pm_file_name {
    word-break: break-word;
}

/* Buttons spacing inside native rail box */
#vatg_native_rail_box .button {
    margin-right: 6px;
    margin-bottom: 6px;
}

/* ---------------------------------------------
   Agreements modal (NDA / Temporary Membership)
   --------------------------------------------- */

.vatg-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    padding: 16px;
}

/* Show when activated via JS */
.vatg-modal-overlay.is-active {
    display: flex;
}

.vatg-modal-dialog {
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    max-height: calc(100vh - 48px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Close button in the top-right corner */
.vatg-modal-close {
    position: absolute;
    right: 16px;
    top: 10px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

/* Scrollable content area */
.vatg-modal-body {
    flex: 1 1 auto;
    margin-top: 40px;
    overflow: hidden; /* let the iframe handle scrolling */
}

/* Full-width iframe inside modal */
.vatg-modal-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Mobile: edge-to-edge dialog */
@media (max-width: 768px) {
    .vatg-modal-dialog {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .vatg-modal-body {
        margin-top: 44px;
    }
}

/* ---------------------------------------------
   Print buttons (used on agreement pages)
   --------------------------------------------- */

.mmt-print-button {
    display: inline-block;
    cursor: pointer;
    padding: 0.5em 1.2em;
    border-radius: 999px;
    border: none;
    background: #333;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

.mmt-print-button:hover {
    opacity: 0.9;
}

/* Hide print buttons on the printed page */
@media print {
    .mmt-print-button {
        display: none !important;
    }
}

/* ---------------------------------------------
   Misc (sort later)
   --------------------------------------------- */

.va-tg-required {
    color: #c0392b;
    margin-left: 3px;
    font-size: 12px;
    vertical-align: baseline;
}

/* ---------------------------------------------
   Session TTL Notice
   --------------------------------------------- */

/* Private-window micro panel (header) */
.va-tg-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* keep title at the top even when panel grows */
  gap: 10px;
}

/* New: wrapper to stack pill + snapshot on the right */
.va-tg-session-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 11px; /* base for the little panel */
}

/* Snapshot under the pill – small, contained card */
.va-tg-session-snapshot {
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid #e4dbff;
  background: #faf7ff;
  font-size: 10px;
  line-height: 1.35;
  max-width: 220px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.va-tg-header h2 {
  margin: 0;
}

.va-tg-session-pill {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #333;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.va-tg-session-pill span {
  opacity: 0.85;
}

.va-tg-session-pill strong {
  font-weight: 600;
}

/* ----------------------------------------------------------
   Session snapshot bar (private window card) – soft violet
---------------------------------------------------------- */

.vatg-session-snapshot {
    margin: 0;
    border-radius: 0px;
    background: #f8f2ff;              /* soft lavender base */
    border: 1px solid #d4c3ff;        /* light purple border */
    overflow: hidden;
    color: #3b245c;                   /* deep, readable purple */
    box-shadow: 0 6px 16px rgba(59, 36, 92, 0.12);
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.vatg-session-snapshot:hover {
    background: #fbf7ff;
    border-color: #c3b0ff;
    box-shadow: 0 8px 20px rgba(59, 36, 92, 0.18);
}

/* Header bar (clickable) */
.vatg-session-toggle {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: inherit;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
}

.vatg-session-label {
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 11px;
    opacity: 0.9;
}

.vatg-session-range {
    font-size: 12px;
    opacity: 0.85;
}

/* Hint so it looks obviously clickable */
.vatg-session-hint {
    margin-left: auto;
    font-size: 11px;
    opacity: 0.7;
    white-space: nowrap;
}

/* Days remaining pill */
.vatg-session-ttl-pill {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e5d6ff;
    border: 1px solid #c9b6ff;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    color: #2f174a;
}

/* Chevron that rotates when open */
.vatg-session-chevron {
    margin-left: 8px;
    font-size: 11px;
    opacity: 0.8;
    transition: transform 0.15s ease;
}

.vatg-session-snapshot.is-open .vatg-session-chevron {
    transform: rotate(180deg);
}

/* Details panel */
.vatg-session-details {
    border-top: 1px solid #e0d2ff;
    padding: 10px 14px 12px;
    background: #fbf7ff;
}

.vatg-session-details {
  opacity: 1;
  transform: translateY(0);
}

.vatg-session-copy {
    margin: 0 0 6px;
    font-size: 12px;
    opacity: 0.9;
}

/* Input + buttons row */
.vatg-session-resume-input {
    width: 100%;
    font-size: 11px;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #d4c3ff;
    background-color: #ffffff;
    color: #3b245c;
    box-sizing: border-box;
    margin: 0 0 8px;
    word-break: break-all;
}

.vatg-session-resume-input:focus {
    outline: none;
    border-color: #b49bff;
    box-shadow: 0 0 0 1px #b49bff;
}

/* Action buttons */
.vatg-session-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vatg-session-btn {
    border-radius: 100px;
    margin-top: 5px;
    border: 1px solid #c9b6ff;
    background: #e5d6ff;
    color: #2f174a;
    font-size: 11px;
    padding: 4px 10px;
    cursor: pointer;
    line-height: 1.3;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        transform 0.05s ease,
        box-shadow 0.15s ease;
}

.vatg-session-btn:hover {
    background: #f1e8ff;
    border-color: #b49bff;
    box-shadow: 0 2px 6px rgba(59, 36, 92, 0.18);
}

.vatg-session-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(59, 36, 92, 0.25);
}

/* ------------------------------------------------------------
   VATG Dropzone + Thumbnail Preview (Physical mail-in + wizard)
   - Shared styling for BOTH:
     #vatg_pm_dropzone + #vatg_pm_preview
     #vatg_trust_dropzone + #vatg_trust_preview
------------------------------------------------------------ */

.va-tg-field-photo {
  margin-top: 12px;
}

.vatg-hidden-file {
  display: none !important;
}

/* Shared dropzone box */
.vatg-dropzone,
.vatg-pm-dropzone {
  border: 2px dashed #bbb;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.vatg-dropzone:focus,
.vatg-pm-dropzone:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

.vatg-dropzone.is-dragover,
.vatg-pm-dropzone.is-dragover {
  border-color: #888;
}

/* Shared inner text pieces */
.vatg-dropzone-title,
.vatg-pm-dropzone-title {
  font-weight: 600;
}

.vatg-dropzone-sub,
.vatg-pm-dropzone-sub {
  margin-top: 6px;
}

.vatg-dropzone-filename,
.vatg-pm-dropzone-filename {
  margin-top: 8px;
}

/* Thumbnail preview (shared) */
.vatg-photo-preview {
  margin-top: 10px;
  display: none;
}

.vatg-photo-preview.is-active {
  display: block;
}

.vatg-photo-preview img {
  max-width: 180px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.10);
}

/* ---------------------------------------------
   VATG Tribute Landing — JS visibility toggles
   (avoid inline style.display in JS)
--------------------------------------------- */

/* Force-hide (used by JS to close the landing form cleanly) */
.va-tg-wizard.vatg-tribute-landing .vatg-is-hidden{
  display: none !important;
}

/* Show helpers */
.va-tg-wizard.vatg-tribute-landing .vatg-is-inline{
  display: inline-block !important;
}
.va-tg-wizard.vatg-tribute-landing .vatg-is-block{
  display: block !important;
}

/* ---------------------------------------------
   VATG native / rail success message box
--------------------------------------------- */
.va-tg-wizard.vatg-tribute-landing .vatg-native-success-box{
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #d0e3c2;
  border-radius: 6px;
  background: #f8fff4;
  font-size: 1rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   VATG Tribute Landing — scoped layout & copy polish
   --------------------------------------------------------- */
.va-tg-wizard.vatg-tribute-landing{
  max-width: 100%;
  margin: 0 auto;
}

/* Headings */
.va-tg-wizard.vatg-tribute-landing .vatg-title{
  margin: 0 0 8px 0;
}

.va-tg-wizard.vatg-tribute-landing .vatg-muted{
  margin: 6px 0;
}

/* Hero card */
.va-tg-wizard.vatg-tribute-landing .vatg-hero{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 16px 16px;
  margin: 0 0 16px 0;
}

.va-tg-wizard.vatg-tribute-landing .vatg-hero__title{
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.va-tg-wizard.vatg-tribute-landing .vatg-hero__meta{
  opacity: 0.75;
  margin: 0 0 10px 0;
}

.va-tg-wizard.vatg-tribute-landing .vatg-hero__desc{
  margin: 0 0 10px 0;
}

.va-tg-wizard.vatg-tribute-landing .vatg-hero__sub{
  margin-top: 10px;
  font-weight: 600;
}

.va-tg-wizard.vatg-tribute-landing .vatg-hero__quiet{
  margin-top: 6px;
  opacity: 0.65;
  font-size: 13px;
}

/* Step blocks */
.va-tg-wizard.vatg-tribute-landing .vatg-step{
  margin: 0 0 18px 0;
}

.va-tg-wizard.vatg-tribute-landing .vatg-step__kicker{
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 4px;
}

.va-tg-wizard.vatg-tribute-landing .vatg-step__title{
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px 0;
}

.va-tg-wizard.vatg-tribute-landing .vatg-step__desc{
  margin: 0 0 10px 0;
  opacity: 0.8;
}

/* Method cards */
.va-tg-wizard.vatg-tribute-landing .vatg-method-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 720px){
  .va-tg-wizard.vatg-tribute-landing .vatg-method-grid{
    grid-template-columns: 1fr 1fr;
  }
}

.va-tg-wizard.vatg-tribute-landing .vatg-method-card{
  display: block;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 14px 14px;
  cursor: pointer;
  user-select: none;
}

.va-tg-wizard.vatg-tribute-landing .vatg-method-card input{
  margin-right: 8px;
}

.va-tg-wizard.vatg-tribute-landing .vatg-method-card__title{
  display: block;
  font-weight: 900;
  font-size: 16px;
  margin-top: 4px;
}

.va-tg-wizard.vatg-tribute-landing .vatg-method-card__meta{
  display: block;
  opacity: 0.75;
  margin-top: 2px;
  font-size: 13px;
}

.va-tg-wizard.vatg-tribute-landing .vatg-method-card__desc{
  display: block;
  margin-top: 8px;
  opacity: 0.9;
  font-size: 13px;
  line-height: 1.35;
}

/* Selected state (works via :has if supported + fallback via JS can add .is-selected later) */
.va-tg-wizard.vatg-tribute-landing .vatg-method-card:has(input:checked){
  border-color: rgba(0,0,0,0.22);
}

/* Method headings */
.va-tg-wizard.vatg-tribute-landing .vatg-method-heading{
  font-size: 18px;
  font-weight: 900;
  margin: 12px 0 10px 0;
}

/* Rails + helper */
.va-tg-wizard.vatg-tribute-landing .vatg-helper{
  margin-top: 8px;
}

.va-tg-wizard.vatg-tribute-landing .vatg-rail{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 14px 14px;
  margin-top: 12px;
}

.va-tg-wizard.vatg-tribute-landing .vatg-rail__title{
  font-weight: 900;
  margin: 0 0 10px 0;
}

/* Code boxes */
.va-tg-wizard.vatg-tribute-landing .vatg-codebox{
  display: block;
  white-space: nowrap;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
}

/* Button row */
.va-tg-wizard.vatg-tribute-landing .vatg-btnrow{
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Agreements rows */
.va-tg-wizard.vatg-tribute-landing .vatg-optins{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.10);
}

.va-tg-wizard.vatg-tribute-landing .vatg-checkrow{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
}

.va-tg-wizard.vatg-tribute-landing .vatg-checkrow input{
  margin-top: 3px;
}

.va-tg-wizard.vatg-tribute-landing .vatg-checkrow a{
  margin-left: auto;
  white-space: nowrap;
}

/* Actions */
.va-tg-wizard.vatg-tribute-landing .vatg-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Notices/cards */
.va-tg-wizard.vatg-tribute-landing .vatg-notice{
  margin: 12px 0;
  padding: 10px;
}

.va-tg-wizard.vatg-tribute-landing .vatg-card{
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
}

.va-tg-wizard.vatg-tribute-landing .vatg-card__title{
  font-weight: 900;
  margin-bottom: 6px;
}

.va-tg-wizard.vatg-tribute-landing .vatg-formwrap{
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.10);
}

/* Status line */
.va-tg-wizard.vatg-tribute-landing .vatg-status{
  margin-top: 10px;
}

/* Status line semantic states (set by JS via classList, not inline styles) */
.va-tg-wizard.vatg-tribute-landing .vatg-status.vatg-status-ok{
  color: #1f7a1f;
}

.va-tg-wizard.vatg-tribute-landing .vatg-status.vatg-status-bad{
  color: #c0392b;
}

.va-tg-wizard.vatg-tribute-landing .vatg-status.vatg-status-warn{
  color: #b36b00; /* amber-ish */
}

.va-tg-wizard.vatg-tribute-landing .vatg-status.vatg-status-neutral{
  color: #555;
}

/* Inputs: make them consistent regardless of theme */
.va-tg-wizard.vatg-tribute-landing input[type="text"],
.va-tg-wizard.vatg-tribute-landing input[type="email"],
.va-tg-wizard.vatg-tribute-landing select{
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
}

/* Ensure WP theme doesn't shrink buttons weirdly inside our wrapper */
.va-tg-wizard.vatg-tribute-landing .button{
  line-height: normal;
}