/* =============================================================================
   qdabra-products.css
   Shared styles for the V10 product pages (product.master).
   The qf-* rules are copied from the inline <style> of
   /en/products/QdabraForms.aspx so new pages can reuse the same look without
   another inline copy. QdabraForms.aspx, FormsViewer.aspx and
   FormsDesigner.aspx still carry their own inline styles (move them here in a
   separate change, with a visual check).
   Link it with a version query (?v=YYYYMMDD) and bump the value after every
   edit, so Cloudflare serves the new file without a cache purge.
   ============================================================================= */

/* =========================================================================
   PAGE-WIDE TYPOGRAPHY
   ========================================================================= */
.qf-section {
    padding: 60px 0;
}
.qf-section .qf-eyebrow {
    color: #870032;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    font-weight: 500;
    margin: 0 0 8px 0;
}
.qf-section h2 {
    font-weight: 200;
    color: #222;
    margin: 0 0 28px 0;
}
.qf-section h2 + .qf-subhead {
    color: #666;
    font-size: 1.1rem;
    margin: -22px 0 28px 0;   /* pull subhead closer to h2 */
}

/* =========================================================================
   SHARED BOX APPEARANCE
   ========================================================================= */
.qf-component-card,
.qf-how .qf-step-tile,
.qf-changes .qf-twocol > div,
.qf-faq .qf-faq-item {
    background: #fff;
    border: 1px solid #b2b4b7;
    border-radius: 6px;
}

/* =========================================================================
   MAGELLAN LEFT NAV - JS-driven sticky
   ========================================================================= */
.medium-3.columns.magellan.qf-stuck {
    position: fixed !important;
    top: 20px !important;
    z-index: 100;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.medium-3.columns.magellan aside .MagellanHeader {
    font-weight: 500;
    color: #156E8C;
    margin: 18px 0 8px 0;
    font-size: 0.95rem;
}
.medium-3.columns.magellan aside ul.menu.vertical li a {
    color: #444;
    padding: 6px 12px;
    font-size: 0.95rem;
}
.medium-3.columns.magellan aside ul.menu.vertical li a:hover {
    color: #156E8C;
    background: rgba(21,110,140,0.06);
}
.medium-3.columns.magellan aside ul.menu.vertical li.is-active > a,
.medium-3.columns.magellan aside ul.menu.vertical li a.is-active {
    color: #870032;
    font-weight: 500;
    border-left: 2px solid #870032;
    padding-left: 10px;
}

/* =========================================================================
   HERO
   ========================================================================= */
.qf-hero {
    background: linear-gradient(135deg, #0B5972 0%, #156E8C 100%);
    color: #fff;
    padding: 72px 0 64px 0;
    margin-top: -1px;
}
.qf-hero h1 {
    font-size: 2.6rem;
    line-height: 1.15;
    font-weight: 300;
    color: #fff;
    margin: 0 0 24px 0;
}
.qf-hero h1 .accent { color: #ffd166; }
.qf-hero .qf-subhead {
    color: rgba(255,255,255,0.92);
    font-size: 1.15rem;
    line-height: 1.55;
    margin-bottom: 28px;
    max-width: 640px;
}
.qf-hero .qf-cta-row a.button {
    min-width: 280px;
    margin-right: 14px;
}
.qf-hero .button.primary {
    background-color: #870032;
    border: 0;
}
.qf-hero .button.primary:hover { background-color: #a3003d; }
.qf-hero .button.hollow {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.7);
    color: #fff;
}
.qf-hero .button.hollow:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}
@media (max-width: 39.9375em) {
    .qf-hero h1 { font-size: 1.8rem; }
    .qf-hero .qf-cta-row a.button { display: block; min-width: 0; margin: 0 0 10px 0; }
}

/* =========================================================================
   SHORT ANSWER (lead paragraph meant to be quoted on its own)
   ========================================================================= */
.qf-answer {
    margin-top: 36px;
    padding: 20px 24px;
    background: #f8f9fa;
    border-left: 4px solid #156E8C;
    border-radius: 4px;
    color: #333;
    font-size: 1.05rem;
    line-height: 1.6;
}
.qf-answer p:last-child { margin-bottom: 0; }

/* =========================================================================
   OPTIONS TABLE
   ========================================================================= */
.qf-options table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}
.qf-options th,
.qf-options td {
    text-align: left;
    vertical-align: top;
    padding: 12px 14px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}
.qf-options thead th {
    background: #156E8C;
    color: #fff;
    font-weight: 400;
}
.qf-options tbody th { font-weight: 500; color: #222; }
.qf-options tr.qf-highlight th,
.qf-options tr.qf-highlight td { background: #e8f1f4; }
.qf-options .qf-table-scroll { overflow-x: auto; }
.qf-options .qf-note { font-size: 0.92rem; color: #777; }

/* =========================================================================
   HOW IT WORKS
   ========================================================================= */
.qf-how .qf-steps {
    display: flex;
    justify-content: space-between;
    margin: 0 0 36px 0;
    position: relative;
}
.qf-how .qf-step-tile {
    flex: 1;
    text-align: center;
    padding: 18px 12px;
    margin: 0 6px;
    position: relative;
}
.qf-how .qf-step-tile .qf-step-num {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    background: #156E8C;
    color: #fff;
    font-weight: 500;
    margin-bottom: 10px;
}
.qf-how .qf-step-tile .qf-step-title {
    font-size: 0.95rem;
    color: #222;
    font-weight: 400;
}
.qf-how .qf-step-arrow {
    display: flex;
    align-items: center;
    color: #b2b4b7;
    font-size: 1.4rem;
}
.qf-how .qf-step-detail {
    margin-bottom: 16px;
    color: #444;
}
.qf-how .qf-step-detail .qf-step-detail-num {
    font-weight: 500;
    color: #156E8C;
    margin-right: 6px;
}
@media (max-width: 39.9375em) {
    .qf-how .qf-steps { flex-direction: column; }
    .qf-how .qf-step-tile { margin: 6px 0; }
    .qf-how .qf-step-arrow { display: none; }
}

/* =========================================================================
   WHAT CHANGES - AND WHAT DOESN'T
   ========================================================================= */
.qf-changes .qf-twocol {
    display: flex;
    gap: 24px;
}
.qf-changes .qf-twocol > div {
    flex: 1;
    padding: 24px;
}
.qf-changes .qf-twocol h4 {
    color: #156E8C;
    font-weight: 400;
    margin: 0 0 16px 0;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}
.qf-changes .qf-twocol ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.qf-changes .qf-twocol ul li {
    padding-left: 22px;
    position: relative;
    color: #333;
    margin-bottom: 10px;
}
.qf-changes .qf-twocol .qf-keep li::before {
    content: "\2022";
    position: absolute; left: 0;
    color: #b2b4b7;
}
.qf-changes .qf-twocol .qf-gain li::before {
    content: "+";
    position: absolute; left: 0;
    color: #156E8C;
    font-weight: bold;
}
@media (max-width: 39.9375em) {
    .qf-changes .qf-twocol { flex-direction: column; }
}

/* =========================================================================
   FAQ (always visible: collapsed <details> text is missing from the
   rendered page text that some AI fetchers read)
   ========================================================================= */
.qf-faq .qf-faq-item {
    margin-bottom: 14px;
    padding: 18px 22px 6px 22px;
}
.qf-faq .qf-faq-item h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #156E8C;
    margin: 0 0 10px 0;
}
.qf-faq .qf-faq-item p { color: #444; }

/* =========================================================================
   SOURCES
   ========================================================================= */
.qf-sources ul { margin-left: 1.2rem; }
.qf-sources li { color: #555; margin-bottom: 8px; font-size: 0.95rem; }
.qf-sources a { color: #156E8C; }

/* =========================================================================
   CTA RE-CAP
   ========================================================================= */
.qf-recap {
    background: linear-gradient(135deg, #0B5972 0%, #156E8C 100%);
    color: #fff;
    text-align: center;
    padding: 56px 0;
}
.qf-recap h2 { color: #fff; font-weight: 200; }
.qf-recap .qf-cta-row { margin: 28px 0 12px 0; }
.qf-recap a.button { min-width: 280px; margin: 6px; }
.qf-recap a.button.primary { background-color: #870032; border: 0; }
.qf-recap a.button.primary:hover { background-color: #a3003d; }
.qf-recap a.button.hollow {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.7);
    color: #fff;
}
.qf-recap a.button.hollow:hover { background: rgba(255,255,255,0.1); }
.qf-recap .qf-tertiary {
    display: block;
    margin-top: 14px;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}
.qf-recap .qf-tertiary:hover { color: #fff; text-decoration: underline; }
