/* =======================
   ParentPayr Global Styles
========================= */

/* Base Setup */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Lato', sans-serif;
    background: #f7f9fa;
    color: #333;
    text-align: center;
}

/* ----------------------
   Buttons & Pulsing
----------------------- */
.button-pulse {
    animation: pulse 2s infinite;
    transition: transform 0.2s ease-in-out;
    border-radius: 6px;
}
.button-pulse:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 163, 180, 0.2);
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 190, 194, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(6, 190, 194, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 190, 194, 0); }
}

/* ----------------------
   Progress Bar
----------------------- */
.progress-inner {
    background-image: repeating-linear-gradient(45deg, #00a3b4, #00a3b4 20px, #007a8a 20px, #007a8a 40px);
    background-size: 10000px 100%;
    animation: move-stripes 300s linear infinite;
}
@keyframes move-stripes {
    0% { background-position: 500px 0; }
    100% { background-position: 10000px 0; }
}

/* ----------------------
   Footer Styles
----------------------- */
.white-footer {
    color: white;
    text-align: center;
}
.white-footer a {
    color: white;
    text-decoration: none;
}
.white-footer a:hover {
    color: white;
    text-decoration: none;
}

/* ----------------------
   Desktop Nav Override
----------------------- */
@media (min-width: 768px) {
    .nav-menu-desktop { display: none !important; }
}

/* ----------------------
   Custom Desktop Header
----------------------- */
.custom-header {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 900 !important;
    background: white;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 60px;
    padding: 20px 60px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.custom-header nav a {
    margin-left: 40px;
    text-decoration: none;
    color: #00A3B4;
    font-weight: 500;
    font-size: 20px !important;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}
.custom-header nav a:hover {
    background-color: #005f5f;
    color: #fff;
}
.logo-wrapper { flex-grow: 1; }

/* ----------------------
   Mobile Header & Menu
----------------------- */
@media (max-width: 767px) {
    .custom-header, .custom-header + div[style*="height: 120px"] {
        display: none !important;
    }
    .mobile-header {
        position: fixed; top: 0; left: 0; right: 0;
        z-index: 999;
        background: white;
        border-bottom: 1px solid #eee;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }
    .mobile-header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
    }
    .mobile-logo img {
        height: 50px;
        object-fit: contain;
    }
    .hamburger-toggle {
        font-size: 28px;
        background: none;
        border: none;
        color: #00A3B4;
        cursor: pointer;
    }
    .mobile-menu {
        display: none;
        flex-direction: column;
        background-color: #f9f9f9;
        padding: 20px;
        border-top: 1px solid #eee;
    }
    .mobile-menu a {
        text-decoration: none;
        color: #00A3B4;
        font-size: 18px;
        font-weight: 500;
        padding: 12px 0;
        border-bottom: 1px solid #e0e0e0;
    }
    .mobile-menu a:last-child { border-bottom: none; }
    .mobile-menu.show { display: flex; }
}

/* ----------------------
   Pricing Cards & Toggles
----------------------- */
.pricing-toggle-wrapper,
.pricing-toggle-container,
.pricing-toggle-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.pricing-toggle-row {
    flex-direction: row;
    gap: 12px;
    margin-bottom: 5px;
    width: 100%;
}
.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
}
.toggle-switch input { display: none; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 30px;
    transition: 0.4s;
}
.slider:before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.4s ease;
}
input:checked + .slider {
    background-color: #00A3B4;
}
input:checked + .slider:before {
    transform: translateX(30px);
}

/* Pricing label */
#pricingLabel {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 20px;
    color: #007A8A;
}

/* Pricing cards */
.pricing-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 15px;
}
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 0 0 2px #ddd;
    padding: 25px;
    width: 300px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.card.popular {
    border: 2px solid #00A3B4;
    box-shadow: 0 0 0 4px #E6F8FA;
    position: relative;
}
.card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 20px;
    background: #00A3B4;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
}
.card h3 {
    margin-bottom: 10px;
    color: #007A8A;
    font-size: 1.4rem;
    text-align: center;
}

/* Feature list */
.features li {
    list-style: none;
    margin-bottom: 8px;
    padding: 2px 0 2px 24px;
    position: relative;
}
.features li::before {
    content: '✓';
    color: #00A3B4;
    position: absolute;
    left: 6px;
    font-weight: bold;
}
.features li:nth-child(odd) {
    background-color: #F5FBFB;
    border-radius: 4px;
}

/* Responsive cards */
@media (max-width: 600px) {
    .pricing-container { flex-direction: column; align-items: center; }
}

/* ----------------------
   Feature Table & Upsells
----------------------- */
.feature-table {
    width: 100%;
    max-width: 980px;
    margin: 40px auto;
    border-collapse: collapse;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #0b4442;
    table-layout: fixed;
}
.feature-table th {
    background-color: #f5fbfb;
    padding: 14px 18px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}
.feature-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
}
.feature-table td:first-child {
    font-weight: 500;
    width: 34%;
}
.feature-table td:not(:first-child) { text-align: center; }
.feature-table tbody tr:hover {
    background-color: #f0fdfa;
    transition: background-color 0.2s ease-in-out;
}

/* ----------------------
   Misc Utilities
----------------------- */
body::before {
    content: "force-style-reload-v1";
    display: none;
}
.hide-after-vsl { transition: opacity 1s ease-in-out; }
.show-vsl { display: block; animation: fadeIn 1s ease; }
.fade-out { animation: fadeOut 1s ease forwards; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; display: none; }
}
