/*
 * Pokala Law APC
 *
 * FILE:
 * public/assets/css/convert.css
 *
 * PURPOSE:
 * The look of the conversion changes (app/data/convert.php, app/includes/convert.php):
 * the bar at the bottom of phone screens, the short form with the lines around it,
 * the second button on the home page, and the strip that marks the preview.
 * Loaded only on pages where those changes are on. Colours, type and the square
 * corners are the site's own: navy #0c2e57, near black #1b1d21, Open Sans.
 *
 * ACCESSIBILITY:
 * Text on its background is at least 7 to 1 (4.5 to 1 is required); field borders are
 * 3 to 1 against white. Fields are 16 px so that phones do not zoom in on focus.
 * Buttons and fields are at least 44 px high. Focus is shown with a 2 px outline.
 *
 * RELATED DOCUMENTATION:
 * docs/conversion/CONVERSION.md
 */

/* 1. The strip that marks the password protected preview --------------------------- */
.pl-preview-strip {
    background: #fff4ce;
    color: #3b2f00;
    border-bottom: 1px solid #d9bf55;
    font: 600 13px/1.4 "Open Sans", Arial, sans-serif;
    padding: 6px 12px;
    text-align: center;
    /* Some pages pull the overlay of their first band up under the site header; without
       its own layer the strip lay beneath it on phones and looked washed out. */
    position: relative;
    z-index: 100;
}

/* 2. The short form ------------------------------------------------------------------ */
/* One white card, whatever it stands on (a white band under an article, the dark
   block of a practice area page), so its text is always readable.
   WHY SO MANY "!important": the pages of the old site carry their own rules for
   links, fields and buttons, different from page to page (white links on the dark
   blocks, fields with a bottom line only on the appointment page). The card must
   look the same everywhere, so its colours, borders and sizes are not up for
   negotiation with those rules. */
.pl-lead-widget { width: 100%; container-type: inline-size; }
/* In a narrow column the card gives its room to the fields. */
@container (max-width: 340px) {
    .pl-lead { padding: 16px 14px; }
}
.pl-lead {
    background: #fff !important;
    color: #1b1d21 !important;
    border: 1px solid #d9dde3;
    box-sizing: border-box;
    max-width: 560px;
    padding: 24px;
    font: 400 15px/1.5 "Open Sans", Arial, sans-serif;
    text-align: left;
    scroll-margin-top: 16px;
}
.pl-lead p { margin: 0 !important; color: #1b1d21 !important; font-style: normal; letter-spacing: normal; text-align: left; }
.pl-lead a[href] { color: #0c2e57 !important; text-decoration: underline !important; }
.pl-lead a[href]:hover, .pl-lead a[href]:focus { color: #1b1d21 !important; }
.pl-lead a[href^="tel:"] { white-space: nowrap; }
.pl-lead p.pl-lead-intro { font-size: 16px; margin-bottom: 16px !important; }
.pl-lead-row { display: grid; gap: 12px; margin-bottom: 12px; }
/* Two fields side by side where the card is wide enough for both, otherwise stacked
   (the card is narrow on phones, and in two column blocks on tablets). */
.pl-lead-row-2 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.pl-lead-field label {
    display: block;
    color: #1b1d21 !important;
    font: 600 14px/1.5 "Open Sans", Arial, sans-serif !important;
    margin: 0 0 4px !important;
    text-transform: none;
}
.pl-lead-required { color: #b00020; }
.pl-lead input[type="text"],
.pl-lead input[type="tel"],
.pl-lead input[type="email"],
.pl-lead textarea {
    background: #fff !important;
    border: 1px solid #8a94a3 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box;
    color: #1b1d21 !important;
    font: 400 16px/1.4 "Open Sans", Arial, sans-serif !important;
    height: auto !important;
    margin: 0 !important;
    min-height: 44px;
    padding: 10px 12px !important;
    width: 100% !important;
}
.pl-lead textarea { min-height: 88px; resize: vertical; }
.pl-lead input:focus, .pl-lead textarea:focus, .pl-lead button.pl-lead-button:focus {
    outline: 2px solid #0c2e57 !important;
    outline-offset: 2px;
}
.pl-lead p.pl-lead-hint { color: #4a4f57 !important; font-size: 13px; margin: -6px 0 12px !important; }
.pl-lead-field-error input, .pl-lead-field-error textarea { border-color: #b00020 !important; }
.pl-lead-check { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 10px; margin: 4px 0 16px; }
.pl-lead-check input { flex: none; height: 20px; margin: 2px 0 0; width: 20px; }
.pl-lead-check label { color: #1b1d21 !important; flex: 1 1 0; font: 400 13px/1.5 "Open Sans", Arial, sans-serif !important; margin: 0 !important; }
.pl-lead-check .error { flex-basis: 100%; }
.pl-lead button.pl-lead-button {
    background: #0c2e57 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #fff !important;
    cursor: pointer;
    font: 600 14px/1 "Open Sans", Arial, sans-serif !important;
    min-height: 48px;
    padding: 15px 30px !important;
    text-transform: uppercase;
    width: 100%;
}
.pl-lead button.pl-lead-button:hover, .pl-lead button.pl-lead-button:focus { background: #143f77 !important; }
.pl-lead button.pl-lead-button[disabled] { opacity: 0.7; cursor: default; }
.pl-lead p.pl-lead-consultation { font-size: 14px; font-weight: 600; margin-top: 16px !important; }
.pl-lead p.pl-lead-consultation a { font-weight: 400; }
.pl-lead p.pl-lead-next { color: #4a4f57 !important; font-size: 14px; margin-top: 6px !important; }
.pl-lead-attorney {
    align-items: center;
    border-top: 1px solid #e3e6ea;
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
}
.pl-lead-attorney img { border-radius: 50% !important; flex: none; height: 56px !important; object-fit: cover; width: 56px !important; }
.pl-lead .pl-lead-attorney p { font-size: 14px; line-height: 1.5; }
.pl-lead p.pl-lead-disclaimer { color: #4a4f57 !important; font-size: 12px; line-height: 1.5; margin-top: 16px !important; }
@media (max-width: 767px) {
    /* Some blocks of the old site have a margin on the left only. The card keeps the
       same distance from both edges of the screen. */
    .pl-lead { max-width: min(560px, calc(100vw - 40px)); }
}
@media (max-width: 480px) {
    .pl-lead { padding: 18px 16px; }
}

/* 3. The second button on the first screen of the home page ------------------------- */
/* The old button sits alone in a row that does not wrap; the row is told to wrap
   (class pl-hero-row, added by app/includes/convert.php) so both buttons have room. */
.pl-hero-row { flex-wrap: wrap !important; row-gap: 14px; }
.pl-hero-cta {
    align-items: center;
    display: flex;
    flex: 0 0 100%;
    flex-wrap: wrap;
    gap: 12px 18px;
    width: 100%;
}
.pl-hero-cta a.pl-hero-button {
    background: #0c2e57;
    border-radius: 0;
    color: #fff;
    font: 600 14px/1 "Open Sans", Arial, sans-serif;
    padding: 15px 30px;
    text-transform: uppercase;
}
.pl-hero-cta a.pl-hero-button:hover, .pl-hero-cta a.pl-hero-button:focus { background: #143f77; color: #fff; }
.pl-hero-call { color: #1b1d21; font: 400 16px/1.4 "Open Sans", Arial, sans-serif; }
.pl-hero-cta .pl-hero-call a[href] { color: #0c2e57; font-weight: 600; text-decoration: underline; white-space: nowrap; }

/* 4. The bar at the bottom of phone screens ----------------------------------------- */
.pl-callbar { display: none; }
@media (max-width: 767px) {
    .pl-callbar {
        background: #fff;
        bottom: 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
        display: flex;
        left: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        position: fixed;
        right: 0;
        z-index: 9990;
    }
    .pl-callbar a {
        align-items: center;
        box-sizing: border-box;
        display: flex;
        flex: 1 1 50%;
        font: 600 14px/1 "Open Sans", Arial, sans-serif;
        gap: 8px;
        justify-content: center;
        min-height: 52px;
        padding: 0 8px;
        text-decoration: none;
        text-transform: uppercase;
    }
    /* (Named this precisely because the site has its own colour rule for every link.) */
    .pl-callbar a.pl-callbar-call, .pl-callbar a.pl-callbar-call:hover { background: #0c2e57; color: #fff; }
    .pl-callbar a.pl-callbar-appointment, .pl-callbar a.pl-callbar-appointment:hover { background: #fff; border-top: 2px solid #0c2e57; color: #0c2e57; }
    .pl-callbar a:focus { outline: 2px solid #1b1d21; outline-offset: -4px; }
    /* On the dark button a dark outline could hardly be seen. */
    .pl-callbar a.pl-callbar-call:focus { outline-color: #fff; }
    /* Room for the bar, so that it never covers the end of the page. */
    body.pl-convert { padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px)); }
    /* While the visitor types, the bar steps aside (the keyboard needs the space). */
    body.pl-callbar-away .pl-callbar { display: none; }
    body.pl-callbar-away.pl-convert { padding-bottom: 0; }
    /* The thank you page: the thanks before the contact details (app/data/convert.php,
       'thank_you'). The column's row is a flex row that wraps on phones. */
    .pl-thanks-first { order: -1; }
    /* A visitor who moves through the page with the Tab key: the browser brings each
       link into view at the bottom edge, which is where the bar is. This keeps the
       focused link above the bar (WCAG 2.2, 2.4.11 Focus Not Obscured). */
    html { scroll-padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
    html:has(body.pl-callbar-away) { scroll-padding-bottom: 0; }
}
@media print {
    .pl-callbar, .pl-preview-strip { display: none !important; }
}

/* Practice area "Contact us" call to action (pl_convert_html step 2b). */
.pl-cta{background:#102b4b;margin:0;padding:0}
.pl-cta-inner{max-width:1140px;margin:0 auto;padding:48px 20px;text-align:center;color:#fff}
.pl-cta .pl-cta-heading{margin:0 0 12px;color:#fff;font-size:28px;line-height:1.2;font-weight:600}
.pl-cta .pl-cta-text{margin:0 auto 24px;max-width:640px;color:#e7eaef;font-size:17px;line-height:1.55}
.pl-cta-actions{display:flex;flex-wrap:wrap;gap:14px 22px;align-items:center;justify-content:center}
.pl-cta-button{display:inline-block;background:#b6a075;color:#102b4b;font-size:16px;font-weight:600;text-decoration:none;padding:14px 30px;border-radius:4px}
.pl-cta-button:hover,.pl-cta-button:focus{background:#c7b48d;color:#102b4b}
.pl-cta-call{color:#e7eaef;font-size:16px}
.pl-cta-call a{color:#fff;text-decoration:underline}
@media (max-width:767px){.pl-cta-inner{padding:36px 18px}.pl-cta-heading{font-size:23px}.pl-cta-text{font-size:16px}}

/* Consent checkbox links (contact and short forms). */
.pl-lead-consent a,.pl-form-consent a,.ff-el-tc .ff_t_c a{text-decoration:underline}

/* Cookie and terms notice (app/includes/convert.php step 4b, convert.js part 4). The
   button rules name the element and its container so that they win over the theme's own
   button colours (".elementor-kit-8529 button"), seen in a browser on 2026-11-16. A slim
   bar at the foot of the page; the site stays usable behind it and it is removed as soon
   as the visitor chooses. Brand navy with a gold accent; readable, not a blocker. */
.pl-consent{position:fixed;left:0;right:0;bottom:0;z-index:9995;background:#102B4B;color:#fff;box-shadow:0 -2px 14px rgba(0,0,0,.28)}
.pl-consent-inner{max-width:1120px;margin:0 auto;padding:14px 20px;display:flex;gap:16px 24px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.pl-consent-text{margin:0;flex:1 1 440px;font-size:13.5px;line-height:1.55;color:#eef1f5}
.pl-consent-text a{color:#D8C9A4;text-decoration:underline}
.pl-consent-text a:hover{color:#fff}
.pl-consent-actions{display:flex;gap:10px;align-items:center;flex-shrink:0}
.pl-consent .pl-consent-actions button.pl-consent-btn{font:inherit;font-size:14px;font-weight:600;line-height:1;text-transform:none;letter-spacing:0;padding:11px 18px;border-radius:6px;cursor:pointer;border:1px solid transparent;white-space:nowrap}
.pl-consent .pl-consent-actions button.pl-consent-necessary{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
.pl-consent .pl-consent-actions button.pl-consent-necessary:hover,.pl-consent .pl-consent-actions button.pl-consent-necessary:focus{color:#fff;border-color:#fff;background:rgba(255,255,255,.08)}
.pl-consent .pl-consent-actions button.pl-consent-normal{background:#B6A075;color:#1a1200;border-color:#B6A075}
.pl-consent .pl-consent-actions button.pl-consent-normal:hover,.pl-consent .pl-consent-actions button.pl-consent-normal:focus{color:#1a1200;background:#c7b488;border-color:#c7b488}
.pl-consent .pl-consent-actions button.pl-consent-close{font:inherit;font-size:22px;font-weight:400;line-height:1;background:transparent;border:0;color:#cdd4de;cursor:pointer;padding:4px 8px;border-radius:6px}
.pl-consent .pl-consent-actions button.pl-consent-close:hover,.pl-consent .pl-consent-actions button.pl-consent-close:focus{color:#fff;background:transparent}
.pl-consent-btn:focus-visible,.pl-consent-close:focus-visible{outline:2px solid #fff;outline-offset:2px}
body.pl-consent-on{padding-bottom:96px}
@media (max-width:767px){
    /* Sit above the phone call bar (about 52px) so the two do not cover each other. */
    .pl-consent{bottom:calc(52px + env(safe-area-inset-bottom,0px))}
    .pl-consent-inner{padding:13px 16px;gap:12px}
    .pl-consent-actions{width:100%}
    .pl-consent-necessary,.pl-consent-normal{flex:1 1 auto;text-align:center}
    .pl-consent .pl-consent-actions button.pl-consent-close{position:absolute;top:4px;right:6px;padding:2px 8px}
    .pl-consent-text{padding-right:26px}
    body.pl-consent-on.pl-convert{padding-bottom:calc(52px + 210px + env(safe-area-inset-bottom,0px))}
}
@media print{.pl-consent{display:none !important}}
