/**
 * Shared foundations for all platform microsite pages (.pf-* and .ec-page)
 * Loaded on every e-commerce service URL after e-commerce.css
 */

/* ── Typography ── */
:is(.ec-page, [class^="pf-"]) .section-heading {
    font-size: 30px;
    font-weight: 700;
    padding-bottom: 20px;
    line-height: 1.3;
}

:is(.ec-page, [class^="pf-"]) .text-sub {
    font-size: 18px;
    line-height: 1.65;
    color: #333;
}

/* Light sections: ensure readable headings (override global white rules) */
:is(.ec-page, [class^="pf-"]) .faq-section .section-heading,
:is(.ec-page, [class^="pf-"]) #related-ecommerce-services .section-heading {
    color: #000080 !important;
}

:is(.ec-page, [class^="pf-"]) .faq-section .text-muted,
:is(.ec-page, [class^="pf-"]) #related-ecommerce-services .text-sub {
    color: #666 !important;
}

/* ── Hero buttons ── */
:is(.ec-page, [class^="pf-"]) .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

:is(.ec-page, [class^="pf-"]) .theme-btn-1 {
    font-size: 14px;
    line-height: 1.35;
    padding: 9px 22px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    min-height: auto;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

:is(.ec-page, [class^="pf-"]) .theme-btn-1 i {
    font-size: 12px;
}

/* ── Consultation form ── */
:is(.ec-page, [class^="pf-"]) .form-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
}

:is(.ec-page, [class^="pf-"]) .glass-form .form-control {
    border-radius: 8px;
    padding-left: 40px;
    color: #333;
    width: 100%;
}

:is(.ec-page, [class^="pf-"]) .glass-form .form-control::placeholder {
    color: #888;
}

:is(.ec-page, [class^="pf-"]) .glass-form .form-control:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(239, 74, 68, 0.25);
}

:is(.ec-page, [class^="pf-"]) .glass-form .theme-btn-1 {
    width: 100%;
    white-space: normal;
    padding: 10px 18px;
}

:is(.ec-page, [class^="pf-"]) .form-title {
    font-weight: 600;
    font-size: 1.4rem;
}

/* Light-background forms (Laravel, PrestaShop heroes) */
.pf-laravel .glass-form .form-title,
.pf-prestashop .glass-form .form-title {
    color: #1a1a1a;
}

.pf-laravel .glass-form,
.pf-prestashop .glass-form {
    color: #333;
}

/* ── Related services ── */
:is(.ec-page, [class^="pf-"]) #related-ecommerce-services {
    background-color: #edf4fe;
}

:is(.ec-page, [class^="pf-"]) #related-ecommerce-services .service-card1 {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
    height: 100%;
}

:is(.ec-page, [class^="pf-"]) #related-ecommerce-services .service-card1 h3 {
    color: #000080;
    padding-bottom: 15px;
    font-size: 23px;
}

:is(.ec-page, [class^="pf-"]) #related-ecommerce-services .service-card1 p {
    color: #333;
}

:is(.ec-page, [class^="pf-"]) #related-ecommerce-services .service-card1:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(102, 0, 211, 0.2);
}

:is(.ec-page, [class^="pf-"]) #related-ecommerce-services .service-card1 .theme-btn-1 {
    font-size: 13px;
    padding: 6px 16px;
    pointer-events: none;
}

/* ── Footer strap ── */
:is(.ec-page, [class^="pf-"]) .footer-top-strap {
    background: linear-gradient(90deg, #6600d3, #ef4a44);
    color: #ffffff;
    width: 100%;
    padding: 8px 0;
}

:is(.ec-page, [class^="pf-"]) .strap-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    margin: 0;
}

:is(.ec-page, [class^="pf-"]) .strap-links li {
    margin: 10px 30px;
    list-style: none;
    display: inline-block;
}

:is(.ec-page, [class^="pf-"]) .strap-links li a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: 0.3s ease;
}

:is(.ec-page, [class^="pf-"]) .strap-links li a:hover {
    opacity: 0.9;
}

/* ── FAQ (ensure padding + answer visibility) ── */
:is(.ec-page, [class^="pf-"]) .faq-section {
    padding: 60px 20px;
    background: #f9f9f9;
}

:is(.ec-page, [class^="pf-"]) .faq-item {
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

:is(.ec-page, [class^="pf-"]) .faq-question {
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    background: #fff;
    color: #000080;
    font-weight: 600;
    border: none;
    cursor: pointer;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s, color 0.3s;
}

:is(.ec-page, [class^="pf-"]) .faq-question:hover {
    background: #f0f0f0;
}

:is(.ec-page, [class^="pf-"]) .faq-question.active {
    background: #6600d3;
    color: #fff;
}

:is(.ec-page, [class^="pf-"]) .faq-icon {
    font-size: 20px;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 12px;
}

:is(.ec-page, [class^="pf-"]) .faq-question.active .faq-icon {
    transform: rotate(45deg);
}

:is(.ec-page, [class^="pf-"]) .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    background: #fdfdfd;
}

:is(.ec-page, [class^="pf-"]) .faq-answer p {
    margin: 10px 0 16px;
    color: #444;
    line-height: 1.65;
}

/* ── Utility bg used by some sections ── */
:is(.ec-page, [class^="pf-"]) .bg {
    background-color: #edf4fe;
}

/* ── Responsive buttons ── */
@media (max-width: 767px) {
    :is(.ec-page, [class^="pf-"]) .hero-buttons .theme-btn-1 {
        font-size: 13px;
        padding: 9px 18px;
    }

    :is(.ec-page, [class^="pf-"]) .hero-buttons .theme-btn-1.me-3,
    :is(.ec-page, [class^="pf-"]) .hero-buttons .theme-btn-1.me-2 {
        margin-right: 0 !important;
    }
}

/* ── Page title breadcrumb (when used) ── */
:is(.ec-page, [class^="pf-"]) .page-title-section {
    padding: 20px 0;
}

/* Prevent horizontal overflow from wide mocks */
[class^="pf-"] {
    overflow-x: hidden;
}

/* Fix multi-vendor dashboard nav dots */
.pf-multivendor .pf-dash-nav i.fa-solid {
    font-size: 14px !important;
}
