/*
 * page-template.css
 * Do Not Sell / CCPA Page Template — WordPress Custom Theme
 * Mobile-first, CSS Variables, Flexbox, Grid, clamp()
 * -------------------------------------------------------
 */

/* =====================================================================
   0. DESIGN TOKENS
   ===================================================================== */
   :root {
    --primary:        #3a7d44;
    --primary-dark:   #2d6235;
    --primary-light:  #5aaa66;
    --primary-pale:   #e8f5ea;
    --primary-bg:     #d6edd9;
  
    --white:          #ffffff;
    --gray-50:        #f9fafb;
    --gray-100:       #f3f4f6;
    --gray-200:       #e5e7eb;
    --gray-300:       #d1d5db;
    --gray-400:       #9ca3af;
    --gray-500:       #6b7280;
    --gray-700:       #374151;
    --gray-900:       #111827;
  
    --radius-sm:      6px;
    --radius-md:      8px;
    --radius-lg:      12px;
    --radius-xl:      14px;
    --radius-2xl:     20px;
  
    --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.05);
    --shadow-nav:     0 8px 32px rgba(0, 0, 0, 0.10);
  
    --font-body:      'Inter', sans-serif;
    --font-display:   'Plus Jakarta Sans', sans-serif;
  
    --container-max:  1200px;
    --container-px:   20px;
    --page-body-max:  900px;
  }
  
  /* =====================================================================
     1. RESET / BASE
     ===================================================================== */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html,
  body {
    font-family: var(--font-body);
    background: var(--gray-50);
    color: var(--gray-900);
    -webkit-font-smoothing: antialiased;
  }
  
  /* =====================================================================
     2. HERO
     ===================================================================== */
  .page-hero {
    background: linear-gradient(135deg, #1a3a24 0%, #2d6235 50%, #1a3a24 100%);
    padding: clamp(48px, 7vw, 80px) var(--container-px) clamp(56px, 7vw, 80px);
    position: relative;
    overflow: hidden;
  }
  
  .page-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
  }
  
  .page-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
  }
  
  .page-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
  }
  
  .page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.90);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .page-hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    flex-shrink: 0;
  }
  
  .page-hero-headline {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
  }
  
  .page-hero-sub {
    font-size: clamp(14px, 2vw, 16px);
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .form-success {
    display:block;
    background: var(--primary);
    color:#fff;
    padding:30px;
    border-radius:12px;
    text-align:center;
    margin-top:20px;
}

.form-success h3,
.form-success p {
    color:#fff;
}

.form-success svg {
    width:60px;
    height:60px;
    fill:none;
    stroke:#fff;
    stroke-width:2;
    margin-bottom:15px;
}
  /* =====================================================================
     3. PAGE BODY WRAPPER
     ===================================================================== */
  .page-body {
    max-width: var(--page-body-max);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 64px) var(--container-px) clamp(60px, 7vw, 80px);
  }
  
  /* =====================================================================
     4. INTRO / CONTENT BLOCK
     ===================================================================== */
  .intro-block {
    margin-bottom: 48px;
  }
  
  .intro-block h2 {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 14px;
  }
  
  .intro-block p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.75;
    margin-bottom: 14px;
  }
  
  .intro-block p:last-child {
    margin-bottom: 0;
  }
  
  .intro-block a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
  }
  
  .intro-block a:hover {
    text-decoration: underline;
  }
  
  /* =====================================================================
     5. CCPA / INFO BOX STRIPS
     ===================================================================== */
  .ccpa-info {
    background: var(--primary-pale);
    border: 1.5px solid rgba(58, 125, 68, 0.20);
    border-radius: var(--radius-xl);
    padding: 24px 28px;
    margin-bottom: 48px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }
  
  .ccpa-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(58, 125, 68, 0.20);
  }
  
  .ccpa-info-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
  }
  
  .ccpa-info-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
  }
  
  .ccpa-info-text p {
    font-size: 13.5px;
    color: #3d5c42;
    line-height: 1.65;
    margin: 0;
  }
  
  /* =====================================================================
     6. FORM CARD
     ===================================================================== */
  .form-section {
    background: var(--white);
    border-radius: var(--radius-2xl);
    border: 1.5px solid var(--gray-200);
    padding: clamp(28px, 5vw, 48px) clamp(24px, 5vw, 48px) clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-card);
    margin-bottom: 0;
  }
  
  .form-section-title {
    font-family: var(--font-display);
    font-size: clamp(17px, 2.5vw, 20px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
  }
  
  .form-section-sub {
    font-size: 13.5px;
    color: var(--gray-500);
    margin-bottom: 32px;
    line-height: 1.55;
  }
  
  /* Section dividers within the form */
  .form-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 20px;
  }
  
  .form-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 28px 0;
  }
  
  /* Form groups */
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
  }
  
  .form-label .req {
    color: #e53e3e;
    margin-left: 2px;
  }
  
  /* Inputs */
  .form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--gray-900);
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
  }
  
  .form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 125, 68, 0.12);
  }
  
  .form-input::placeholder {
    color: var(--gray-400);
  }
  
  .form-input.input-error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
  }
  
  /* Grid layouts */
  .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .form-row-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  @media (min-width: 560px) {
    .form-row {
      grid-template-columns: 1fr 1fr;
    }
  
    .form-row-3 {
      grid-template-columns: 1fr 1fr 1fr;
    }
  }
  
  /* Radio */
  .radio-group {
    display: flex;
    gap: 24px;
    margin-top: 4px;
    flex-wrap: wrap;
  }
  
  .radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-700);
    cursor: pointer;
    font-weight: 500;
  }
  
  .radio-label input[type="radio"],
  .radio-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
  }
  
  /* Submit button */
  .form-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.15s;
    margin-top: 8px;
    line-height: 1;
  }
  
  .form-submit:hover,
  .form-submit:focus-visible {
    background: var(--primary-dark);
  }
  
  .form-submit:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }
  
  /* Privacy note */
  .form-privacy {
    font-size: 12px;
    color: var(--gray-400);
    text-align: center;
    margin-top: 14px;
    line-height: 1.6;
  }
  
  .form-privacy a {
    color: var(--primary-dark);
    text-decoration: none;
  }
  
  .form-privacy a:hover {
    text-decoration: underline;
  }
  
  /* Honeypot — visually hidden */
  .hp-field {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
  }
  
  /* =====================================================================
     7. FORM SUCCESS STATE
     ===================================================================== */
  .form-success {
    text-align: center;
    padding: clamp(32px, 5vw, 48px) 32px;
  }
  
  .form-success[hidden] {
    display: none;
  }
  
  .form-success svg {
    width: 56px;
    height: 56px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 1.5;
    margin: 0 auto 20px;
    display: block;
  }
  
  .form-success h3 {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 10px;
  }
  
  .form-success p {
    font-size: 14.5px;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 440px;
    margin: 0 auto;
  }
  
  /* =====================================================================
     8. RIGHTS / ICON LIST SECTION
     ===================================================================== */
  .rights-section {
    margin-top: 64px;
  }
  
  .rights-section h2 {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
  }
  
  .rights-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .rights-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }
  
  .rights-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .rights-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
  }
  
  .rights-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 3px;
  }
  
  .rights-text p {
    font-size: 13.5px;
    color: var(--gray-500);
    line-height: 1.65;
    margin: 0;
  }
  
  /* =====================================================================
     9. CTA SECTION
     ===================================================================== */
  .cta-section {
    background: linear-gradient(135deg, #1a3a24 0%, #2d6235 100%);
    padding: clamp(48px, 6vw, 72px) var(--container-px);
  }
  
  .cta-section-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
  }
  
  .cta-heading {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 14px;
  }
  
  .cta-desc {
    font-size: clamp(14px, 1.8vw, 16px);
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 28px;
  }
  
  .cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--white);
    color: var(--primary-dark);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    border: none;
    cursor: pointer;
  }
  
  .cta-btn:hover,
  .cta-btn:focus-visible {
    background: var(--primary-pale);
    transform: translateY(-1px);
  }
  
  .cta-btn:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
  }
  
  /* =====================================================================
     10. UTILITY — CONTAINER
     ===================================================================== */
  .container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-px);
    padding-right: var(--container-px);
  }
  
  /* =====================================================================
     11. RESPONSIVE BREAKPOINTS
     ===================================================================== */
  
  /* --- Medium: 640px+ --- */
  @media (min-width: 640px) {
    .ccpa-info {
      padding: 24px 32px;
    }
  }
  
  /* --- Large: 768px+ --- */
  @media (min-width: 768px) {
    .page-hero {
      padding: clamp(60px, 7vw, 72px) 40px clamp(64px, 7vw, 80px);
    }
  
    .page-body {
      padding: 64px 40px 80px;
    }
  
    .form-section {
      padding: 48px 48px 40px;
    }
  }
  
  /* --- XL: 1024px+ --- */
  @media (min-width: 1024px) {
    .rights-list {
      gap: 20px;
    }
  }
  
  /* --- Max container: 1200px+ --- */
  @media (min-width: 1200px) {
    .cta-section-inner {
      padding: 0;
    }
  }
  
  /* =====================================================================
     12. ACCESSIBILITY — FOCUS STYLES
     ===================================================================== */
  :focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }
  
  a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 2px;
  }
  
  /* =====================================================================
     13. PRINT
     ===================================================================== */
  @media print {
    .page-hero {
      background: var(--gray-900) !important;
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;
    }
  
    .form-submit,
    .cta-section {
      display: none;
    }
  }

/* CF7 compatibility */
.form-group p, .form-row p, .form-row-3 p { margin:0; display:contents; }
.form-group br { display:none; }
.wpcf7-form-control-wrap { display:contents; }
.radio-group .wpcf7-radio, .radio-group .wpcf7-list-item { display:contents; }
.dnsp-form .wpcf7-not-valid-tip { font-size:12px; color:#dc2626; margin-top:4px; display:block; }
.dnsp-form .wpcf7-response-output { display:none !important; }
