/**
 * VoteFrenzy — Governance IP page styles
 * Used by page-governance-ip.php (Template: "VoteFrenzy Governance IP")
 *
 * Install: place this file at wp-content/themes/<your-theme>/css/governance-ip.css
 * It is loaded via <link> in the template's <head>, right after styles-portal.css.
 */

.vfg {
  --vfg-blue: #0865d8;
  --vfg-navy: #10233f;
  --vfg-ink: #444444;
  --vfg-muted: #444444;
  --vfg-line: #e6e9ef;
  --vfg-bg-pill: #edf5ff;
  --vfg-bg-soft: #f7f9fc;
  --vfg-green: #16a34a;
  font-family: Arial, sans-serif !important;
  color: var(--vfg-ink);
  background: #fff;
}
.vfg * { font-family: Arial, sans-serif !important; }
.vfg *, .vfg *::before, .vfg *::after { box-sizing: border-box; }
.vfg a { color: inherit; }
.vfg .vfg-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.vfg-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; border-bottom: 1px solid var(--vfg-line);
}
.vfg-logo { font-weight: 600; font-size: 19px; color: var(--vfg-blue); }
.vfg-header-btn {
  background: var(--vfg-blue); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 7px;
}

.vfg-badge {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; background: var(--vfg-bg-pill); color: var(--vfg-blue);
  padding: 6px 12px; border-radius: 999px;margin-bottom: 20px;
}

.vfg-hero { display: grid !important; grid-template-columns: 1.15fr .85fr !important; gap: 48px; align-items: start; padding-bottom: 40px;padding-top: 25px; }
.vfg-hero > * { min-width: 0; } /* stop grid items collapsing/overflowing */
@media (max-width: 880px) { .vfg-hero { grid-template-columns: 1fr !important; } }

.vfg h1, .vfg h2, .vfg h3 { color: #000 !important; text-transform: capitalize; }
.vfg-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 14px;text-wrap: balance;line-height: 28px; padding-bottom: 10px;}
.vfg-hero .vfg-subhead { font-size: 20px; line-height: 1.5; color: #000; margin: 0 0 16px; font-weight: 600; }
.vfg-hero .vfg-desc { font-size: 16.5px; line-height: 1.75; color: var(--vfg-muted); margin: 0 0 28px; }

.vfg-cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.vfg-btn-primary {
  background: var(--vfg-blue); color: #fff; text-decoration: none; font-weight: 600;
  font-size: 14.5px; padding: 12px 20px; border-radius: 8px; display: inline-block;
}
.vfg-link-secondary { color: var(--vfg-blue); text-decoration: none; font-weight: 600; font-size: 14px; }

/* Registration form card */
.vfg-form-card {
  display: block !important; visibility: visible !important; opacity: 1 !important;
  border: 1px solid #7a7a7a;; border-radius: 14px; padding: 28px;
  box-shadow: 0 10px 30px rgba(16,35,63,0.06); position: sticky; top: 24px;
  width: auto !important; height: auto !important; max-height: none !important; overflow: visible !important;
}
.vfg-form-card h2 { font-size: 18px; letter-spacing: .06em; text-transform: capitalize; font-weight: 600; margin: 0 0 6px; }
.vfg-form-card .vfg-login-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--vfg-muted);
  margin: 0 0 20px;
}
.vfg-form-card .vfg-login-line .vfg-user-status {
  margin: 0;
  white-space: nowrap;
}
.vfg-form-card .vfg-login-line > a,
.vfg-form-card .vfg-login-line > button {
  flex: 0 0 auto;
}
.vfg-form-card .vfg-login-line > a {
  color: var(--vfg-blue);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.vfg-form-card .vfg-login-line > a:hover {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .vfg-form-card .vfg-login-line {
    flex-direction: column;
    align-items: flex-start;
  }
}

.vfg-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .vfg-form-grid { grid-template-columns: 1fr; } }
.vfg-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.vfg-field input {
  width: 100%; padding: 10px 12px; border: 1px solid #7a7a7a;; border-radius: 8px;
  font-size: 14px; font-family: inherit;
}
.vfg-field input:focus { outline: 2px solid var(--vfg-blue); outline-offset: 1px; }
.vfg-form-note { font-size: 12.5px; color: var(--vfg-muted); margin: 10px 0 0; grid-column: 1 / -1; }
.vfg-form-submit {
  grid-column: 1 / -1; margin-top: 8px; background: var(--vfg-navy); color: #fff; border: none;
  font-weight: 600; font-size: 14.5px; padding: 12px 20px; border-radius: 8px; cursor: pointer;
}
.vfg-form-submit:hover { opacity: .92; }
.vfg-form-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.vfg-form-submit .spinner {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  animation: vfg-spin .7s linear infinite; flex: 0 0 auto;
}
@keyframes vfg-spin { to { transform: rotate(360deg); } }
.vfg-form-msg { grid-column: 1 / -1; font-size: 13.5px; padding: 10px 12px; border-radius: 8px; margin-bottom: 4px; }
.vfg-form-msg.success { background: #e9f9ef; color: #12703b; }
.vfg-form-msg.error { background: #fdecec; color: #a41f1f; }
.vfg-honeypot { position: absolute; left: -9999px; }

/* Journey */
.vfg-section { padding: 40px 0; border-top: 1px solid var(--vfg-line); }
.vfg-section h2.vfg-h2 { font-size: 25px; font-weight: 600; margin: 0 0 20px; }
.vfg-section .vfg-section-text { font-size: 16px; line-height: 1.75; color: var(--vfg-muted); margin: 0 0 28px; max-width: 97%;}

.vfg-steps { display: flex; gap: 12px; flex-wrap: wrap; }
.vfg-step {
  flex: 1 1 180px; border: 1px solid #7a7a7a;; border-radius: 10px; padding: 24px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; background: #fff;
}
.vfg-step svg { width: 34px; height: 34px; color: var(--vfg-blue); }
.vfg-step span {font-size: 16px;
  font-weight: 600;
  color: #000; }
.vfg-step-icon { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; }
.vfg-step-icon { background: var(--vfg-bg-pill); border-radius: 50%; }
.vfg-arrow { color: #7a7a7a; flex: 0 0 auto; font-size: 28px;align-self: center; }

/* Portfolio grid */
.vfg-portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 880px) { .vfg-portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .vfg-portfolio-grid { grid-template-columns: 1fr; } }
.vfg-portfolio-item { border: 1px solid #7a7a7a;; border-radius: 10px; padding: 18px 11px; display: flex; align-items: flex-start; gap: 14px; }
.vfg-portfolio-item .vfg-icon-wrap {
  width: 34px; height: 34px; border-radius: 0; background: transparent; color: var(--vfg-blue);
  display: flex; align-items: center; justify-content: center; flex: 0 0 34px; margin: 0;
}
.vfg-portfolio-item .vfg-icon-wrap svg { width: 35px; height: 35px; }
.vfg-portfolio-content { min-width: 0; flex: 1 1 auto; }
.vfg-portfolio-item h3 { font-size: 14px; font-weight: 600; line-height: 1.25; margin: 0 0 5px; }
.vfg-portfolio-item p { font-size: 14px; color: var(--vfg-muted); line-height: 1.5; margin: 0;text-wrap: balance; }

/* Who it's for */
.vfg-who { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
@media (max-width: 640px) { .vfg-who { grid-template-columns: 1fr; } }
.vfg-who-icon {
  width: 104px; height: 104px; border-radius: 50%; background: var(--vfg-bg-pill); color: var(--vfg-blue);
  display: flex; align-items: center; justify-content: center;
}
.vfg-who-icon svg { width: 48px; height: 48px; }
.vfg-who-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; margin-top: 6px; }
@media (max-width: 640px) { .vfg-who-list { grid-template-columns: 1fr; } }
.vfg-who-list div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.vfg-who-list svg { color: var(--vfg-green); flex: 0 0 auto; }

/* Small underlined trigger buttons (View NDA, Login) */
.vfg-link-btn { color: var(--vfg-blue); font-weight: 600; text-decoration: underline; cursor: pointer; background: none; border: none; padding: 0; font-size: 13px; font-family: inherit; }

.vfg-nda-row { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 0; }
.vfg-nda-row input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--vfg-blue); }
.vfg-nda-row label { font-size: 13px; color: var(--vfg-ink); line-height: 1.5; }
.vfg-nda-row.input-error { outline: 1px solid #a41f1f; outline-offset: 4px; border-radius: 8px; }

/* Field-level validation messages (used by main.js showError/clearError) */
.field-error-message {
  display: block;
  grid-column: 1 / -1; /* only takes effect on direct .vfg-form-grid children, e.g. #nda-error */
  color: #a41f1f;
  font-size: 12.5px;
  line-height: 1.5;
  margin-top: 6px;
}
.vfg-field input.input-error,
input.input-error {
  border-color: #a41f1f !important;
}

/* "Notify me by email" row — sits on its own line below the NDA agreement */
.vfg-notify-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--vfg-ink);
  margin-top: 10px;
  cursor: pointer;
}
.vfg-notify-row input[type="checkbox"] {
  width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--vfg-blue);
}

/* Generic modal (used by both NDA and Login popups) */
.vfg-modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(16,35,63,0.55); z-index: 9999;
  align-items: center; justify-content: center; padding: 24px;
}
.vfg-modal-overlay.open { display: flex; }
.vfg-modal {
  background: #fff; border-radius: 12px; max-width: 420px; width: 100%; max-height: 85vh;
  overflow-y: auto; padding: 28px; position: relative;
}
.vfg-modal.vfg-modal-wide { max-width: 640px; }
.vfg-modal h3 { font-size: 18px; font-weight: 600; margin: 0 0 14px; }
.vfg-modal p { font-size: 13.5px; line-height: 1.65; color: var(--vfg-muted); margin: 0 0 12px; }
.vfg-modal-close {
  position: absolute; top: 18px; right: 18px; background: none; border: none; font-size: 20px;
  cursor: pointer; color: var(--vfg-muted); line-height: 1;
}

/* Login form (inside login modal) */
.vfg-login-form.vfg-form-grid { grid-template-columns: 1fr; }
.vfg-login-form .vfg-field { margin-bottom: 14px; }
.vfg-login-form .vfg-remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--vfg-ink); margin-bottom: 16px; }
.vfg-login-form .vfg-remember input { width: 15px; height: 15px; accent-color: var(--vfg-blue); }
.vfg-login-form .vfg-form-submit { width: 100%; }
.vfg-login-msg { font-size: 13.5px; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; display: none; }
.vfg-login-msg.show { display: block; }
.vfg-login-msg.error { background: #fdecec; color: #a41f1f; }
.vfg-login-msg.success { background: #e9f9ef; color: #12703b; }
.vfg-login-form .vfg-form-submit[disabled] { opacity: .6; cursor: not-allowed; }

.vfg-user-status { font-size: 13.5px; color: var(--vfg-muted); }
.vfg-user-status a { color: var(--vfg-blue); font-weight: 600; text-decoration: none; }
.log-flex{
   display: flex;
   gap: 10px;
   flex-wrap: wrap;
   justify-content: space-between;
}
.log-flex a{
color: #1577be;
  font-weight: 600;
}
@media (max-width:767px) {
  .vfg-steps{
    flex-direction: column;
  }
   .vfg-steps .vfg-arrow{
transform: rotate(90deg);
   }
   .vfg-hero{
    gap: 20px;
   }
   .vfg-who-icon {
  width: 60px;
  height: 60px;
   }
   .vfg-who-icon svg {
  width: 30px;
  height: 30px;
}
}
