/* Federal Apostille — Kit Order — public styles
 *
 * Visual identity matches the Federal Apostille apostille-order plugin:
 *   deep federal navy header band, white body, navy-headered tables,
 *   green for money/status accents, navy primary CTA buttons.
 *
 * NOTE on specificity: most rules are written as `.fa-kit-page <tag>` or
 * `.fa-kit-form-wrap <tag>` so the parent theme's heading, list, paragraph,
 * and form styles do NOT bleed in and break our layout.
 */

/* ===== Scoped reset ===== */
.fa-kit-page,
.fa-kit-form-wrap {
    --fa-navy:          #142e5e;
    --fa-navy-dark:     #0f234a;
    --fa-navy-soft:     #2a4a8a;
    --fa-navy-tint:     #eef2f8;
    --fa-blue-sub:      #8ba9d2;
    --fa-green:         #1d8348;
    --fa-green-dark:    #166534;
    --fa-green-bg:      #e8f5e9;
    --fa-green-border:  #4caf50;
    --fa-gold:          #c9a64a;
    --fa-text:          #1f2937;
    --fa-muted:         #6b7280;
    --fa-border:        #e5e7eb;
    --fa-row-alt:       #f8f9fa;
    --fa-warn-bg:       #fff7ed;
    --fa-warn-border:   #f59e0b;
    --fa-warn-text:     #9a3412;

    color: var(--fa-text);
    line-height: 1.6;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.fa-kit-page { max-width: 1040px; margin: 0 auto; padding: 0; }
.fa-kit-form-wrap { max-width: 760px; margin: 0 auto; }

.fa-kit-page *,
.fa-kit-form-wrap *,
.fa-kit-page *::before,
.fa-kit-form-wrap *::before,
.fa-kit-page *::after,
.fa-kit-form-wrap *::after { box-sizing: border-box; }

/* Override theme heading/paragraph/list defaults inside our scope */
.fa-kit-page h1,
.fa-kit-page h2,
.fa-kit-page h3,
.fa-kit-page h4,
.fa-kit-page p,
.fa-kit-page ul,
.fa-kit-page ol,
.fa-kit-page li {
    margin: 0;
    padding: 0;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    text-transform: none;
    letter-spacing: 0;
    border: 0;
}
.fa-kit-page ul,
.fa-kit-page ol { list-style: none; }

/* ===== Federal banner (top of page) ===== */
.fa-kit-page .fa-kit-banner {
    background: var(--fa-navy);
    color: #fff;
    padding: 56px 32px 48px 32px;
    text-align: center;
    border-radius: 8px 8px 0 0;
    margin: 0;
}
.fa-kit-page .fa-kit-banner-logo {
    width: 110px;
    height: 110px;
    margin: 0 auto 18px auto;
    display: block;
}
.fa-kit-page .fa-kit-banner-logo--placeholder {
    border: 3px solid var(--fa-gold);
    border-radius: 50%;
    background: var(--fa-navy-dark);
    color: var(--fa-gold);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .08em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    padding: 8px;
}
.fa-kit-page .fa-kit-banner-title {
    font-size: 24px;
    line-height: 1.3;
    margin: 0 auto 8px auto;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    max-width: 740px;
}
.fa-kit-page .fa-kit-banner-subtitle {
    font-size: 14px;
    color: var(--fa-blue-sub);
    margin: 0;
    letter-spacing: .02em;
    font-weight: 400;
}

/* ===== Hero (intro under banner) ===== */
.fa-kit-page .fa-kit-hero {
    padding: 40px 28px 32px 28px;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid var(--fa-border);
}
.fa-kit-page .fa-kit-hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 11px;
    color: var(--fa-navy-soft);
    margin: 0 0 10px 0;
    font-weight: 700;
}
.fa-kit-page .fa-kit-hero-title {
    font-size: 28px;
    line-height: 1.25;
    margin: 0 auto 14px auto;
    color: var(--fa-navy);
    font-weight: 700;
    max-width: 800px;
}
.fa-kit-page .fa-kit-hero-lede {
    font-size: 17px;
    color: var(--fa-text);
    margin: 0 auto 24px auto;
    max-width: 680px;
    line-height: 1.6;
}
.fa-kit-page .fa-kit-hero-pills {
    margin: 0 0 24px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
    color: var(--fa-text);
    font-size: 14px;
    font-weight: 500;
}
.fa-kit-page .fa-kit-hero-pills li::before {
    content: "✓";
    color: var(--fa-green);
    font-weight: 700;
    margin-right: 6px;
}

/* ===== Buttons ===== */
.fa-kit-page .fa-kit-button,
.fa-kit-form-wrap .fa-kit-button {
    display: inline-block;
    background: var(--fa-navy);
    color: #fff !important;
    text-decoration: none !important;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
    line-height: 1.2;
    font-family: inherit;
}
.fa-kit-page .fa-kit-button:hover,
.fa-kit-form-wrap .fa-kit-button:hover {
    background: var(--fa-navy-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(20, 46, 94, .25);
    color: #fff !important;
}
.fa-kit-form-wrap .fa-kit-button-primary {
    background: var(--fa-navy);
    color: #fff !important;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    letter-spacing: .02em;
}
.fa-kit-form-wrap .fa-kit-button-primary:hover { background: var(--fa-navy-dark); }
.fa-kit-form-wrap .fa-kit-button-primary[disabled] {
    opacity: .5; cursor: not-allowed; transform: none; box-shadow: none;
    background: var(--fa-navy);
}

/* ===== Sections ===== */
.fa-kit-page .fa-kit-section {
    padding: 44px 32px;
    background: #fff;
    border-bottom: 1px solid var(--fa-border);
}
.fa-kit-page .fa-kit-section-alt {
    background: var(--fa-navy-tint);
}
.fa-kit-page .fa-kit-section h2 {
    font-size: 22px;
    margin: 0 0 22px 0;
    color: var(--fa-navy);
    font-weight: 700;
    position: relative;
    padding-left: 16px;
    line-height: 1.25;
}
.fa-kit-page .fa-kit-section h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--fa-green);
    border-radius: 2px;
}
.fa-kit-page .fa-kit-section p {
    margin: 0 0 14px 0;
    color: var(--fa-text);
    font-size: 15px;
    line-height: 1.65;
}
.fa-kit-page .fa-kit-section p:last-child { margin-bottom: 0; }
.fa-kit-page .fa-kit-section strong { color: var(--fa-navy); font-weight: 700; }

/* ===== Kit contents grid ===== */
.fa-kit-page .fa-kit-contents {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
}
.fa-kit-page .fa-kit-contents li {
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--fa-border);
    border-left: 4px solid var(--fa-navy);
    border-radius: 4px;
    line-height: 1.55;
    font-size: 14px;
    color: var(--fa-text);
}
.fa-kit-page .fa-kit-contents li strong {
    display: block;
    color: var(--fa-navy);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}
.fa-kit-page .fa-kit-contents li span {
    display: inline-block;
    font-size: 11px;
    color: var(--fa-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
    font-weight: 600;
}

/* ===== How it works steps ===== */
.fa-kit-page .fa-kit-steps {
    display: grid;
    gap: 14px;
    counter-reset: step;
    margin: 0;
    padding: 0;
}
.fa-kit-page .fa-kit-steps li {
    background: #fff;
    border: 1px solid var(--fa-border);
    border-radius: 6px;
    padding: 18px 20px 18px 64px;
    position: relative;
    counter-increment: step;
    font-size: 15px;
    line-height: 1.55;
    color: var(--fa-text);
}
.fa-kit-page .fa-kit-steps li::before {
    content: counter(step);
    position: absolute;
    left: 18px;
    top: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--fa-navy);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Pricing grid ===== */
.fa-kit-page .fa-kit-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 0 0 18px 0;
}
.fa-kit-page .fa-kit-pricing-card {
    background: #fff;
    border: 1px solid var(--fa-border);
    border-top: 4px solid var(--fa-navy);
    border-radius: 6px;
    padding: 22px 18px;
    text-align: center;
}
.fa-kit-page .fa-kit-pricing-card h3 {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: var(--fa-navy);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}
.fa-kit-page .fa-kit-pricing-amount {
    font-size: 32px;
    font-weight: 700;
    margin: 4px 0 10px 0 !important;
    color: var(--fa-green);
    line-height: 1;
}
.fa-kit-page .fa-kit-pricing-card p {
    margin: 0;
    font-size: 13px;
    color: var(--fa-muted);
    line-height: 1.5;
}
.fa-kit-page .fa-kit-fineprint {
    font-size: 13px;
    color: var(--fa-muted);
    margin: 14px 0 0 0 !important;
    line-height: 1.55;
    padding: 12px 16px;
    background: var(--fa-warn-bg);
    border-left: 3px solid var(--fa-warn-border);
    border-radius: 4px;
}

/* ===== FAQ ===== */
.fa-kit-page .fa-kit-faq details {
    background: #fff;
    border: 1px solid var(--fa-border);
    border-left: 4px solid var(--fa-navy);
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 10px;
}
.fa-kit-page .fa-kit-faq details:last-child { margin-bottom: 0; }
.fa-kit-page .fa-kit-faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    color: var(--fa-navy);
    font-size: 15px;
    padding-right: 30px;
    position: relative;
}
.fa-kit-page .fa-kit-faq summary::-webkit-details-marker { display: none; }
.fa-kit-page .fa-kit-faq summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: -2px;
    font-weight: 400;
    color: var(--fa-muted);
    font-size: 22px;
    line-height: 1;
}
.fa-kit-page .fa-kit-faq details[open] summary::after { content: '−'; }
.fa-kit-page .fa-kit-faq details p {
    margin: 12px 0 0 0 !important;
    color: var(--fa-text);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== Disclaimer ===== */
.fa-kit-page .fa-kit-disclaimer {
    color: var(--fa-muted);
    font-size: 13px;
    background: var(--fa-row-alt);
    border-bottom: none;
}
.fa-kit-page .fa-kit-disclaimer p {
    color: var(--fa-muted) !important;
    font-size: 13px !important;
    line-height: 1.6;
}
.fa-kit-page .fa-kit-disclaimer a { color: var(--fa-navy); }

/* ===== Form section ===== */
.fa-kit-page .fa-kit-section-form {
    background: var(--fa-navy-tint);
    padding: 44px 32px 56px 32px;
}
.fa-kit-page .fa-kit-section-form h2 { margin-bottom: 28px; }

/* ===== Form ===== */
.fa-kit-form-wrap .fa-kit-form { display: grid; gap: 18px; margin: 0; }
.fa-kit-form-wrap .fa-kit-fieldset {
    border: 1px solid var(--fa-border);
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    padding: 0;
    margin: 0;
}
.fa-kit-form-wrap .fa-kit-fieldset-title {
    margin: 0 !important;
    padding: 14px 22px;
    background: #f8f9fa;
    color: var(--fa-navy);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 1px solid var(--fa-border);
    line-height: 1.3;
}
.fa-kit-form-wrap .fa-kit-fieldset-body {
    padding: 20px 22px 22px 22px;
}
.fa-kit-form-wrap .fa-kit-row { display: grid; gap: 12px; margin: 0 0 14px 0; }
.fa-kit-form-wrap .fa-kit-row:last-child { margin-bottom: 0; }
.fa-kit-form-wrap .fa-kit-row-2 { grid-template-columns: 1fr 1fr; }
.fa-kit-form-wrap .fa-kit-row-3 { grid-template-columns: 2fr 1fr 1fr; }
.fa-kit-form-wrap label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--fa-text);
    font-weight: 600;
    margin: 0;
}
.fa-kit-form-wrap label > span { color: var(--fa-text); }
.fa-kit-form-wrap input,
.fa-kit-form-wrap select,
.fa-kit-form-wrap textarea {
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--fa-text);
    width: 100%;
    line-height: 1.4;
    box-shadow: none;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.fa-kit-form-wrap select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
}
.fa-kit-form-wrap input:focus,
.fa-kit-form-wrap select:focus,
.fa-kit-form-wrap textarea:focus {
    outline: 2px solid var(--fa-navy);
    outline-offset: 1px;
    border-color: var(--fa-navy);
}
.fa-kit-form-wrap textarea { resize: vertical; min-height: 70px; }

/* ===== Order summary table ===== */
.fa-kit-form-wrap .fa-kit-summary {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin: 0;
}
.fa-kit-form-wrap .fa-kit-summary th,
.fa-kit-form-wrap .fa-kit-summary td {
    padding: 12px 0;
    text-align: left;
    border: 0;
    color: var(--fa-text);
}
.fa-kit-form-wrap .fa-kit-summary th { font-weight: 500; color: var(--fa-text); }
.fa-kit-form-wrap .fa-kit-summary td {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.fa-kit-form-wrap .fa-kit-summary tr + tr th,
.fa-kit-form-wrap .fa-kit-summary tr + tr td {
    border-top: 1px solid var(--fa-border);
}
.fa-kit-form-wrap .fa-kit-summary-total th {
    font-weight: 700;
    color: var(--fa-navy);
    font-size: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--fa-navy) !important;
}
.fa-kit-form-wrap .fa-kit-summary-total td {
    color: var(--fa-green);
    font-size: 18px;
    font-weight: 700;
    padding-top: 16px;
    border-top: 2px solid var(--fa-navy) !important;
}

/* ===== Square card element ===== */
.fa-kit-form-wrap #fa-kit-card-container {
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    min-height: 56px;
}
.fa-kit-form-wrap .fa-kit-card-status {
    font-size: 13px;
    color: var(--fa-muted);
    margin: 8px 0 0 0;
    min-height: 1.4em;
}
.fa-kit-form-wrap .fa-kit-card-status.is-error { color: #b91c1c; }
.fa-kit-form-wrap .fa-kit-payment-note {
    font-size: 12px;
    color: var(--fa-muted);
    margin: 10px 0 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fa-kit-form-wrap .fa-kit-payment-note::before {
    content: "🔒";
    font-size: 14px;
}

/* ===== Form messages + success ===== */
.fa-kit-form-wrap .fa-kit-form-actions { display: grid; gap: 10px; margin-top: 4px; }
.fa-kit-form-wrap .fa-kit-form-message {
    font-size: 14px;
    margin: 0;
    min-height: 1.4em;
    text-align: center;
}
.fa-kit-form-wrap .fa-kit-form-message.is-error { color: #b91c1c; font-weight: 600; }
.fa-kit-form-wrap .fa-kit-form-message.is-success { color: var(--fa-green-dark); font-weight: 600; }

.fa-kit-form-wrap .fa-kit-form-success {
    background: var(--fa-green-bg);
    border: 1px solid #bbf7d0;
    border-left: 4px solid var(--fa-green-border);
    border-radius: 6px;
    padding: 32px 28px;
    text-align: center;
}
.fa-kit-form-wrap .fa-kit-form-success h3 {
    margin: 0 0 12px 0;
    color: var(--fa-green-dark);
    font-size: 22px;
    font-weight: 700;
}
.fa-kit-form-wrap .fa-kit-form-success p {
    margin: 6px 0 !important;
    color: var(--fa-text);
    font-size: 15px;
    line-height: 1.6;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
    .fa-kit-form-wrap .fa-kit-row-2,
    .fa-kit-form-wrap .fa-kit-row-3 { grid-template-columns: 1fr; }
    .fa-kit-page .fa-kit-banner { padding: 40px 20px 36px 20px; }
    .fa-kit-page .fa-kit-banner-title { font-size: 18px; letter-spacing: .03em; }
    .fa-kit-page .fa-kit-banner-logo { width: 88px; height: 88px; margin-bottom: 14px; }
    .fa-kit-page .fa-kit-hero { padding: 32px 20px 28px 20px; }
    .fa-kit-page .fa-kit-hero-title { font-size: 22px; }
    .fa-kit-page .fa-kit-hero-lede { font-size: 15px; }
    .fa-kit-page .fa-kit-section { padding: 32px 20px; }
    .fa-kit-page .fa-kit-section h2 { font-size: 19px; }
    .fa-kit-page .fa-kit-section-form { padding: 32px 20px 40px 20px; }
    .fa-kit-form-wrap .fa-kit-fieldset-title { padding: 12px 18px; }
    .fa-kit-form-wrap .fa-kit-fieldset-body { padding: 16px 18px 18px 18px; }
}
