/* ========================================
   MyCorporateSuperpowers.com Stylesheet
   Clean, Modern, Professional Design
   UPDATED WITH BRAND COLOR PALETTE
   ======================================== */

/* CSS Variables - Official Brand Colors */
:root {
    /* Primary Brand Colors */
    --primary-green: #174A38;        /* Dark Green - Main brand and anchor color */
    --medium-green: #205239;         /* Hunter Green - Deeper accent for depth */
    --accent-green: var(--medium-green); /* Alias so pages using --accent-green don't break */
    --accent-gold: #B8860B;          /* 6.8:1 contrast - PASSES AA */
    --light-sage: #C7D6BD;           /* Light Sage - Gentle, calming contrast */
    --white: #FFFFFF;                /* Pure White - For crispness and clarity */
    --charcoal: #434B4D;             /* Charcoal Gray - Sleek, modern foundation */
    
    /* Extended Palette for UI Elements */
    --background: #F8F9FA;           /* Light background for contrast */
    --border: #9CA3AF;               /* Subtle borders */
    --error: #E74C3C;                /* Error states */
    --success: #208B4E;              /* Success states */
    
    /* Text Colors */
    --text-dark: #434B4D;            /* Primary text (Charcoal) */
    --text-medium: #5A6C7D;          /* Secondary text */
    --text-light: #5A6C7D;           /* 6.2:1 contrast - PASSES AA */
    
    /* Gradient Backgrounds */
    --gradient-green: linear-gradient(135deg, #174A38 0%, #205239 100%);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #C9A532 100%);
    --gradient-sage: linear-gradient(135deg, #E8F5F1 0%, #D4EBE5 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
}

/* Skip Navigation Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-green);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* ========================================
   ACCESSIBILITY: FOCUS INDICATORS
   Added for WCAG 2.1 AA Compliance
   ======================================== */

/* General Link Focus */
a:focus {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
}

/* Button Focus Styles */
button:focus {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
}

.btn-primary:focus {
    outline: 3px solid var(--accent-gold);
    outline-offset: 3px;
    box-shadow: 0 6px 16px rgba(23, 74, 56, 0.3), 0 0 0 6px rgba(212, 175, 55, 0.2);
}

.btn-secondary:focus {
    outline: 3px solid var(--primary-green);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(23, 74, 56, 0.15);
    background: var(--primary-green);
    color: var(--white);
}

.btn-gold:focus {
    outline: 3px solid var(--primary-green);
    outline-offset: 3px;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3), 0 0 0 6px rgba(23, 74, 56, 0.2);
}

.btn-large:focus {
    outline-width: 4px;
}


/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 20px 20px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header - Ultra-tight spacing for maximum above-the-fold content */
header {
    text-align: center;
    padding: 10px 0;
    margin-bottom: 5px;
}

.logo-container {
    margin-bottom: 5px;
}

.logo {
    max-width: 300px;
    height: auto;
}

.logo-container a {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.logo-container a:hover .logo {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.presented-by {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0 0 5px 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.site-title {
    font-size: 1.8rem;
    color: var(--primary-green);
    font-weight: 700;
    margin-top: 0;
}

.site-title a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: var(--medium-green);
}

/* Progress Bar */
.progress-container {
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    height: 8px;
    background: linear-gradient(to right, var(--light-sage), var(--primary-green), var(--accent-gold));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-top: 10px;
    font-weight: 500;
}

/* Main Content */
main {
    flex: 1;
}

/* Step Sections */
.step {
    display: none;
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.3s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
h2 {
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 30px;
}

.step-description {
    color: var(--text-medium);
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #f0f7f5 0%, #e8f4f0 100%);
    border-left: 4px solid var(--primary-green);
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
}

.info-box h3 {
    color: var(--primary-green);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box ul li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-dark);
}

.info-box ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.privacy-note {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-style: italic;
    margin-top: 15px;
}

/* Special Offer Box - Updated with Gold */
.special-offer-box {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border: 2px solid var(--accent-gold);
    border-left: 4px solid var(--accent-gold);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.special-offer-box p {
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.6;
}

.special-offer-box strong {
    color: #c9a532;
}

.special-offer-box em {
    color: var(--primary-green);
    font-style: normal;
    font-weight: 600;
}

.offer-note {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-style: italic;
    margin-top: 15px;
    margin-bottom: 0 !important;
}

/* Form Elements */
.question-group {
    margin-bottom: 15px;
}

label {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 1rem;
}

textarea,
input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
    border-color: var(--medium-green);
    box-shadow: 0 0 0 3px rgba(32, 82, 57, 0.1);
}

textarea {
    min-height: 120px;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

button {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.btn-primary {
    background: var(--gradient-green);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(23, 74, 56, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(23, 74, 56, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* Gold CTA Button (for special actions) */
.btn-gold {
    background: var(--gradient-gold);
    color: var(--charcoal);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

.btn-large {
    width: 100%;
    padding: 18px 32px;
    font-size: 1.1rem;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Error Messages */
.error-message {
    color: var(--error);
    font-size: 0.9rem;
    margin-top: 10px;
    display: none;
}

.error-message.visible {
    display: block;
}

input.error,
textarea.error {
    border-color: var(--error);
}

/* Loading State */
.loading-container {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-subtext {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Email Form */
.email-form {
    max-width: 500px;
    margin: 30px auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

/* Confirmation */
.confirmation-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 30px;
    box-shadow: 0 8px 16px rgba(23, 74, 56, 0.2);
}

.confirmation-text {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 30px;
}

.next-steps {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 30px;
}

/* Confirmation checklist - What's next? */
#confirmation .info-box .confirmation-checklist {
  list-style: none;
  padding-left: 0;
  margin: 20px 0 0 0;
  text-align: left;
}

#confirmation .info-box .confirmation-checklist li {
  position: relative;
  padding-left: 35px;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 14px;
  line-height: 1.6;
  color: var(--text-dark);
}

#confirmation .info-box .confirmation-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-green);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 40px;
    border-top: 1px solid var(--border);
}

.copyright {
    color: var(--text-medium);
}

.footer-links {
    margin: 15px 0;
}

.footer-links a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--medium-green);
    text-decoration: underline;
}

.privacy-footer {
    margin-top: 10px;
    font-size: 0.85rem;
}

/* Disclaimer Notice - Updated with Brand Colors */
.disclaimer-notice {
    background: var(--gradient-sage);
    border: 2px solid var(--primary-green);
    padding: 20px 25px;
    margin: 40px 0 20px 0;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.6;
}

.disclaimer-notice p {
    margin: 10px 0;
}

.disclaimer-notice p:first-child {
    margin-top: 0;
}

.disclaimer-notice p:last-child {
    margin-bottom: 0;
}

.disclaimer-notice strong {
    color: var(--primary-green);
}

.disclaimer-notice a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.disclaimer-notice a:hover {
    text-decoration: underline;
}

/* Legal Pages (Privacy, Terms, Disclaimer) */
.legal-page {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
}

.legal-page h2 {
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 10px;
}

.legal-page h3 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-page section {
    margin-bottom: 30px;
}

.legal-page p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.legal-page ul {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-page ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.legal-page a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.legal-page a:hover {
    text-decoration: underline;
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Contact Page */
.contact-page {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    margin: 0 auto;
}

.contact-page h2 {
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-intro {
    color: var(--text-medium);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.contact-form {
    margin-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1rem;
}

.contact-form .required {
    color: var(--error);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
    border-color: var(--medium-green);
    box-shadow: 0 0 0 3px rgba(32, 82, 57, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 500;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-alt {
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.contact-alt h3 {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.contact-alt a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.contact-alt a:hover {
    text-decoration: underline;
}

/* Info List Styling */
.info-list {
    list-style: none;
    padding-left: 0;
}

.info-list li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-dark);
}

.info-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Gold Accent Highlights */
.gold-highlight {
    color: var(--accent-gold);
    font-weight: 600;
}

.gold-underline {
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 8px 15px 15px 15px;
    }
    
    .step {
        padding: 25px 20px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .logo {
        max-width: 240px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    .info-box {
        padding: 20px;
    }
    
    /* Legal pages responsive */
    .legal-page {
        padding: 30px 20px;
    }
    
    /* Contact page responsive */
    .contact-page {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Disclaimer responsive */
    .disclaimer-notice {
        padding: 15px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 8px 0;
    }
    
    .progress-container {
        padding: 15px;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .site-title {
        font-size: 1.3rem;
    }
    
    .logo {
        max-width: 200px;
    }
    
    .step {
        padding: 20px 15px;
    }
    
    textarea,
    input[type="text"],
    input[type="email"] {
        padding: 12px;
    }
    
    button {
        padding: 12px 24px;
    }
}

/* Print Styles */
@media print {
    .progress-container,
    .button-group,
    footer {
        display: none;
    }
    
    .step {
        box-shadow: none;
        border: 1px solid var(--border);
    }
}
/* ========================================
   COOKIE BANNER STYLES
   Added for JavaScript module integration
   ======================================== */

#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #174A38 0%, #205239 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

#cookieBanner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.cookie-text a {
    color: #D4AF37;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-text a:hover {
    color: #E8C55B;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #D4AF37;
    color: #174A38;
}

.cookie-btn-accept:hover {
    background: #E8C55B;
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-btn-decline:hover {
    background: rgba(255,255,255,0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}

/* ========================================
   EXIT POPUP STYLES
   Added for JavaScript module integration
   ======================================== */

/* Fix for confirmation page list alignment */
#confirmation .info-box ul {
    list-style-position: inside;
    padding-left: 0;
}

#confirmation .info-box li {
    text-align: left;
    padding-left: 0;
    margin-left: 0;
}

/* Exit Intent Popup Styles */
#exitPopupOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#exitPopupOverlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.exit-popup {
    background: white;
    max-width: 600px;
    width: 90%;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.exit-popup-header {
    background: linear-gradient(135deg, #174A38 0%, #205239 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.exit-popup-close:hover {
    background: rgba(255,255,255,0.2);
}

.exit-popup-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
}

.exit-popup-header p {
    margin: 0;
    font-size: 1.05rem;
    opacity: 0.95;
    color: white;
}

.exit-popup-body {
    padding: 40px 30px;
    text-align: center;
}

.exit-popup-body p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #434B4D;
    margin-bottom: 25px;
}

.exit-popup-benefits {
    text-align: left;
    margin: 25px auto;
    max-width: 400px;
}

.exit-popup-benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.exit-popup-benefit::before {
    content: "✓";
    color: #D4AF37;
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.exit-popup-benefit span {
    color: #434B4D;
    line-height: 1.5;
}

.exit-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.exit-popup-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.exit-popup-btn-primary {
    background: linear-gradient(135deg, #D4AF37 0%, #E8C55B 100%);
    color: #174A38;
}

.exit-popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.exit-popup-btn-secondary {
    background: transparent;
    color: #174A38;
    border: 2px solid #174A38;
}

.exit-popup-btn-secondary:hover {
    background: #174A38;
    color: white;
}

.exit-popup-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .exit-popup {
        width: 95%;
        max-width: none;
    }
    
    .exit-popup-header {
        padding: 25px 20px;
    }
    
    .exit-popup-header h2 {
        font-size: 1.5rem;
    }
    
    .exit-popup-header p {
        font-size: 0.95rem;
    }
    
    .exit-popup-body {
        padding: 30px 20px;
    }
    
    .exit-popup-body p {
        font-size: 1rem;
    }
}

/* Form input focus states */
#leadMagnetForm input:focus {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* Submit button loading state */
#leadMagnetSubmitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success checkmark animation */
@keyframes checkmarkScale {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

#exitPopupConfirmation .exit-popup-body > div:first-of-type {
    animation: checkmarkScale 0.5s ease-out;
}

/* Mobile responsive adjustments for form */
@media (max-width: 768px) {
    #leadMagnetForm input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
/* ========================================
   HERO SECTION STYLES
   Main page hero section
   ======================================== */

/* Hero Section Styles */
.page-hero {
    text-align: center;
    padding: 30px 0 40px 0;
    margin-bottom: 35px;
}

.page-hero h1 {
    font-size: 2.3rem;
    color: var(--primary-green);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 18px;
}

.page-hero .hero-subheadline {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 25px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-benefits {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.hero-benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.hero-benefit-item::before {
    content: "✓";
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.2rem;
}

.hero-cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0 35px 0;
    flex-wrap: wrap;
}

.hero-trust-line {
    text-align: center;
    margin: 30px 0 0 0;
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 1.8rem;
    }
    
    .page-hero .hero-subheadline {
        font-size: 1.05rem;
    }
    
    .hero-benefits {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .hero-cta-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-cta-group button,
    .hero-cta-group a {
        width: 100%;
    }
}

/* ========================================
   ACCESSIBILITY: SCREEN READER UTILITIES
   ======================================== */

/* Hide elements visually but keep them for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for keyboard navigation */
:focus {
  outline: 3px solid var(--primary-green) !important;
  outline-offset: 2px !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #0D261C;
    --medium-green: #143728;
    --accent-gold: #B8860B;
    --text-dark: #000000;
    --text-medium: #333333;
  }
  
  .btn-primary {
    border: 2px solid var(--primary-green);
  }
  
  .btn-secondary {
    border: 2px solid var(--primary-green);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .spinner {
    animation: none !important;
    border-top-color: transparent;
  }
  
  @keyframes fadeIn {
    from { opacity: 1; }
    to { opacity: 1; }
  }
  
  @keyframes slideUp {
    from { transform: translateY(0); }
    to { transform: translateY(0); }
  }
}
/* ========================================
   PLACEHOLDER TEXT STYLING
   WCAG 2.1 AA Compliant
   ======================================== */

input::placeholder,
textarea::placeholder {
    color: #6C757D; /* Medium gray - 4.6:1 contrast ratio */
    opacity: 1; /* Firefox needs this */
}

/* Vendor prefixes for older browsers */
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #6C757D;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #6C757D;
    opacity: 1;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #6C757D;
}

/* CHARACTER COUNTER STYLES */

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.85em;
    margin-top: 5px;
    padding: 0 5px;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.char-counter span {
    font-weight: 700;
    font-size: 1.1em;
}

/* Normal state - plenty of room */
.char-counter {
    color: #28a745; /* Green */
}

.char-counter span {
    color: #28a745;
}

/* Warning state - less than 100 characters remaining */
.char-counter.warning {
    color: #ff9800; /* Orange */
}

.char-counter.warning span {
    color: #ff9800;
}

/* Danger state - less than 20 characters remaining */
.char-counter.danger {
    color: #f44336; /* Red */
    font-weight: 700;
}

.char-counter.danger span {
    color: #f44336;
    animation: pulse 1s ease-in-out infinite;
}

/* Pulse animation for danger state */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Optional: Make textareas easier to resize */
textarea {
    resize: vertical;
    min-height: 100px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .char-counter {
        font-size: 0.8em;
    }
}

/* ============================================ */
/* ERROR MODAL STYLES */
/* Add this to your main CSS file */
/* ============================================ */

/* Modal container (hidden by default) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

/* Show modal when active */
.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark overlay */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Modal content box */
.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

/* Modal header */
.modal-header {
    display: flex;
    align-items: center;
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e0e0e0;
    gap: 12px;
}

.modal-icon {
    font-size: 2em;
    line-height: 1;
}

.modal-header h3 {
    flex: 1;
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2em;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* Modal body */
.modal-body {
    padding: 24px;
}

.modal-body p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    white-space: pre-line; /* Preserve line breaks */
}

/* Modal footer */
.modal-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-footer button {
    min-width: 100px;
}

/* Error type specific icons and colors */
.modal.error-rate-limit .modal-icon {
    color: #ff9800; /* Orange for rate limit */
}

.modal.error-validation .modal-icon {
    color: #2196f3; /* Blue for validation */
}

.modal.error-security .modal-icon {
    color: #f44336; /* Red for security */
}

.modal.error-server .modal-icon {
    color: #ff5722; /* Deep orange for server error */
}

.modal.error-generic .modal-icon {
    color: #9e9e9e; /* Gray for generic */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px 20px 12px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.3em;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-body p {
        font-size: 1em;
    }
    
    .modal-footer {
        padding: 12px 20px 20px 20px;
    }
}

/* Accessibility: Focus styles */
.modal-close:focus,
.modal-footer button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}
/* ========================================
   WHO THIS IS FOR SECTION
   Landing Page Filter Box
   ======================================== */

.who-this-is-for {
    background: white;
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    padding: 30px 35px;
    margin: 35px auto;
    max-width: 750px;
    box-shadow: 0 2px 8px rgba(45, 95, 79, 0.1);
}

.who-this-is-for h3 {
    color: var(--primary-green);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-align: center;
}

.who-this-is-for ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.who-this-is-for li {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.who-this-is-for li::before {
    content: "✓";
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

.who-this-is-for p {
    background: #F9FAFB;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0 0 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.who-this-is-for strong {
    color: var(--primary-green);
    font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .who-this-is-for {
        padding: 25px 20px;
    }
    
    .who-this-is-for h3 {
        font-size: 1.2rem;
    }
    
    .who-this-is-for li {
        font-size: 1rem;
    }
}