/* =================================================================
   Federal Apostille Portal — Public Styles v2.0
   ─────────────────────────────────────────────────────────────────
   Matched 1-to-1 with the federalapostille.org design system:

   Colors
     --primary:   #0A3D62   (dark navy)
     --accent:    #245897   (medium blue)
     --heading:   #202B5D   (heading text)
     --body:      #7A7A7A   (body text)
     --secondary: #54595F   (muted text)
     --border:    #e5e7eb
     --bg-light:  #f8f9fa

   Typography
     Body:     "Source Serif 4", "Source Serif Pro", Georgia, serif — 17px/26px, 400
     Headings: "Libre Franklin", sans-serif — 600-700
     Buttons:  "Cabin", sans-serif — 18px, 500

   Components
     Buttons:  border-radius 0 (square), padding 15px 30px
     Inputs:   border-radius 5px
     Container max-width: 1140px
   ================================================================= */


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESET & BASE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-portal-wrapper,
.fap-portal-wrapper *,
.fap-portal-wrapper *::before,
.fap-portal-wrapper *::after {
    box-sizing: border-box;
}

.fap-portal-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px 30px;
    font-family: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 26px;
    color: #7A7A7A;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PORTAL HEADER
   Matches the site's accent-color hero sections.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-portal-wrapper .fap-portal-header {
    text-align: center !important;
    padding: 40px 30px 30px !important;
    margin: 0 -15px 30px !important;
    background: #245897 !important;
    border: none !important;
    border-radius: 0 !important;
    color: #fff !important;
}

.fap-seal-icon {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    font-size: 22px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,.18);
}

.fap-portal-wrapper .fap-portal-header h2 {
    font-family: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    margin: 0 0 4px !important;
    letter-spacing: .3px !important;
    color: #fff !important;
    text-transform: uppercase !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    line-height: 1.3 !important;
}

.fap-subtitle {
    font-family: "Libre Franklin", sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,.8);
    margin: 0 0 14px;
    font-weight: 400;
}

.fap-secure-badge {
    display: inline-block;
    font-family: "Libre Franklin", sans-serif;
    background: rgba(255,255,255,.1);
    padding: 5px 16px;
    border-radius: 0;
    font-size: 11px;
    letter-spacing: .4px;
    border: 1px solid rgba(255,255,255,.15);
    text-transform: uppercase;
}

.fap-lock-icon {
    margin-right: 4px;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FORM SECTIONS
   Clean, bordered sections — no heavy shadows.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
    border-radius: 0;
}

.fap-section-header {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.fap-portal-wrapper .fap-section-header h3 {
    font-family: "Libre Franklin", sans-serif !important;
    margin: 0 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #202B5D !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    line-height: 1.4 !important;
}

.fap-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #0A3D62;
    color: #fff;
    border-radius: 50%;
    font-family: "Libre Franklin", sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

.fap-section-body {
    padding: 24px;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FORM ELEMENTS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}
.fap-row:last-child { margin-bottom: 0; }

.fap-col {
    flex: 1;
    min-width: 0;
}
.fap-col-full { flex: 0 0 100%; }

.fap-portal-wrapper .fap-section label {
    display: block !important;
    font-family: "Libre Franklin", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #202B5D !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.4 !important;
}

.fap-required {
    color: #c0392b;
    font-weight: 700;
}

/* Inputs — 5px radius matches the site */
.fap-portal-wrapper .fap-section input[type="text"],
.fap-portal-wrapper .fap-section input[type="email"],
.fap-portal-wrapper .fap-section input[type="tel"],
.fap-portal-wrapper .fap-section input[type="number"],
.fap-portal-wrapper .fap-section select,
.fap-portal-wrapper .fap-section textarea {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 5px !important;
    font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif !important;
    font-size: 16px !important;
    color: #54595F !important;
    background: #fff !important;
    transition: border-color .2s !important;
    -webkit-appearance: none !important;
    height: auto !important;
    margin: 0 !important;
    box-shadow: none !important;
    line-height: 24px !important;
}

.fap-portal-wrapper .fap-section input:focus,
.fap-portal-wrapper .fap-section select:focus,
.fap-portal-wrapper .fap-section textarea:focus {
    outline: none !important;
    border-color: #245897 !important;
    box-shadow: 0 0 0 2px rgba(36,88,151,.1) !important;
}

.fap-portal-wrapper .fap-section input.fap-error,
.fap-portal-wrapper .fap-section select.fap-error {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 2px rgba(192,57,43,.08) !important;
}

.fap-help-text {
    display: block;
    font-family: "Libre Franklin", sans-serif;
    font-size: 13px;
    color: #7A7A7A;
    margin-top: 5px;
    line-height: 1.5;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NOTICES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-notice {
    padding: 14px 20px;
    border-radius: 0;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}
.fap-notice:last-child { margin-bottom: 0; }

.fap-notice-info {
    background: #EBF5FB;
    border: 1px solid #AED6F1;
    border-left: 4px solid #0A3D62;
    color: #1B4F72;
}
.fap-notice-warning {
    background: #FEF9E7;
    border: 1px solid #F9E79F;
    border-left: 4px solid #F39C12;
    color: #7D6608;
}
.fap-notice-success {
    background: #E8F8F5;
    border: 1px solid #A3E4D7;
    border-left: 4px solid #1ABC9C;
    color: #0E6655;
}
.fap-notice-muted {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #7A7A7A;
    color: #54595F;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FILE UPLOAD
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-upload-area {
    border: 2px dashed #e5e7eb;
    border-radius: 5px;
    padding: 28px 20px;
    text-align: center;
    transition: border-color .2s, background .2s;
    cursor: pointer;
    background: #fafbfc;
}
.fap-upload-area:hover,
.fap-upload-area.fap-drag-over {
    border-color: #245897;
    background: #EBF5FB;
}

.fap-upload-icon { font-size: 36px; margin-bottom: 6px; opacity: .5; }

.fap-upload-area p {
    font-family: "Libre Franklin", sans-serif;
    margin: 4px 0;
    color: #7A7A7A;
    font-size: 14px;
}

.fap-upload-btn {
    display: inline-block !important;
    font-family: "Cabin", sans-serif;
    background: #0A3D62;
    color: #fff !important;
    padding: 10px 28px;
    border-radius: 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    margin: 8px 0;
    transition: background .2s;
    letter-spacing: .2px;
}
.fap-upload-btn:hover { background: #245897; }

.fap-file-list { margin-top: 12px; }

.fap-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    margin-bottom: 6px;
    font-family: "Libre Franklin", sans-serif;
    font-size: 14px;
}
.fap-file-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}
.fap-file-item-size {
    font-family: "Libre Franklin", sans-serif;
    color: #7A7A7A;
    font-size: 12px;
    margin-right: 10px;
    flex-shrink: 0;
}
.fap-file-remove {
    background: none;
    border: none;
    color: #c0392b;
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}
.fap-file-remove:hover { color: #922b21; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CHECKBOXES & SERVICES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-service-option {
    padding: 16px;
    border: 1px solid #e5e7eb;
    margin-bottom: 12px;
    transition: border-color .2s, background .2s;
}
.fap-service-option:last-child { margin-bottom: 0; }
.fap-service-option.active {
    border-color: #245897;
    background: #f7fafc;
}

.fap-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    cursor: pointer;
    font-family: "Libre Franklin", sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 1.5;
    gap: 10px;
}
.fap-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #0A3D62;
}

.fap-conditional-fields {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SUMMARY TABLE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-summary-table-wrap {
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.fap-summary-table {
    width: 100%;
    border-collapse: collapse;
}
.fap-summary-table td {
    font-family: "Libre Franklin", sans-serif;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #54595F;
}
.fap-summary-table td.qty {
    color: #7A7A7A;
    text-align: right;
    white-space: nowrap;
}
.fap-summary-table td.amount {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
    width: 100px;
    color: #202B5D;
}

.fap-portal-wrapper .fap-total-row td {
    background: #0A3D62 !important;
    color: #fff !important;
    padding: 14px 16px !important;
    font-size: 16px !important;
    border: none !important;
}
.fap-portal-wrapper .fap-total-row td.amount { color: #fff !important; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PAYMENT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-payment-section { margin-top: 24px; }

.fap-payment-section h4 {
    font-family: "Libre Franklin", sans-serif;
    font-size: 16px;
    color: #202B5D;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0A3D62;
}

.fap-card-container {
    min-height: 90px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    background: #fafbfc;
    overflow: hidden;
}
.fap-card-container iframe { max-width: 100% !important; }

.fap-error-message {
    background: #FDEDEC;
    border: 1px solid #F5B7B1;
    border-left: 4px solid #c0392b;
    color: #922b21;
    padding: 12px 16px;
    font-size: 14px;
    margin-top: 12px;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TERMS & SUBMIT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-terms {
    margin: 20px 0;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
}
.fap-terms .fap-checkbox-label {
    font-size: 13px !important;
    color: #54595F;
}
.fap-terms a {
    color: #0A3D62;
    text-decoration: underline;
}
.fap-terms a:hover { color: #245897; }

/* Submit — EXACT match: square corners, Cabin font, site padding */
.fap-portal-wrapper .fap-submit-btn,
.fap-portal-wrapper button.fap-submit-btn,
.fap-portal-wrapper button[type="submit"].fap-submit-btn {
    display: block !important;
    width: 100% !important;
    padding: 15px 30px !important;
    background: #0A3D62 !important;
    color: #fff !important;
    font-family: "Cabin", sans-serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    letter-spacing: .2px !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: background .2s !important;
    text-transform: uppercase !important;
    line-height: 1.4 !important;
    height: auto !important;
    box-shadow: none !important;
}
.fap-portal-wrapper .fap-submit-btn:hover:not(:disabled) {
    background: #245897 !important;
}
.fap-portal-wrapper .fap-submit-btn:disabled {
    opacity: .5 !important;
    cursor: not-allowed !important;
}

.fap-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fap-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes fap-spin { to { transform: rotate(360deg); } }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SUCCESS MODAL
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10,61,98,.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.fap-modal-content {
    background: #fff;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.fap-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px; height: 70px;
    background: #1ABC9C;
    color: #fff;
    border-radius: 50%;
    font-size: 32px;
    margin-bottom: 16px;
}
.fap-modal-content h2 {
    font-family: "Libre Franklin", sans-serif;
    color: #202B5D;
    margin: 0 0 10px;
    font-size: 22px;
}
.fap-modal-content p {
    color: #7A7A7A;
    font-size: 15px;
    margin: 0 0 20px;
}

.fap-order-number-display {
    background: #EBF5FB;
    border: 2px solid #245897;
    padding: 16px;
    margin: 20px 0;
}
.fap-order-number-display label {
    display: block;
    font-family: "Libre Franklin", sans-serif;
    font-size: 12px;
    color: #7A7A7A;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.fap-order-number-display span {
    font-size: 26px;
    font-weight: 700;
    color: #0A3D62;
    font-family: monospace;
    letter-spacing: 2px;
}

.fap-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.fap-btn-primary {
    display: inline-block;
    font-family: "Cabin", sans-serif;
    padding: 15px 30px;
    background: #0A3D62;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 0;
    font-weight: 500;
    font-size: 16px;
    transition: background .2s;
    letter-spacing: .2px;
}
.fap-btn-primary:hover { background: #245897; }

.fap-btn-secondary {
    display: inline-block;
    font-family: "Cabin", sans-serif;
    padding: 15px 30px;
    background: #fff;
    color: #0A3D62 !important;
    text-decoration: none !important;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    font-weight: 500;
    font-size: 16px;
    transition: background .2s;
}
.fap-btn-secondary:hover { background: #f8f9fa; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SUBMISSION METHOD SELECTOR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-method-selector {
    display: flex;
    gap: 16px;
}
.fap-method-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}
.fap-method-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0; height: 0;
}
.fap-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    border: 2px solid #e5e7eb;
    background: #fafbfc;
    transition: border-color .2s, background .2s;
}
.fap-method-card:hover {
    border-color: #245897;
    background: #f7fafc;
}
.fap-method-option.active .fap-method-card {
    border-color: #245897;
    background: #EBF5FB;
}

.fap-method-icon { font-size: 36px; margin-bottom: 10px; line-height: 1; }
.fap-method-card strong {
    font-family: "Libre Franklin", sans-serif;
    font-size: 15px;
    color: #202B5D;
    margin-bottom: 6px;
    display: block;
}
.fap-method-card p {
    font-family: "Libre Franklin", sans-serif;
    font-size: 13px;
    color: #7A7A7A;
    margin: 0;
    line-height: 1.4;
}

.fap-portal-wrapper .fap-section textarea#fap-doc-description {
    min-height: 80px;
    resize: vertical;
}
.fap-method-content { margin-top: 8px; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TRACKING PAGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-tracking-wrapper .fap-submit-btn {
    max-width: 300px;
    margin: 20px auto 0;
}

.fap-tracking-summary { margin-bottom: 30px; }

.fap-tracking-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.fap-tracking-meta-item {
    padding: 14px 16px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
}
.fap-tracking-meta-item label {
    display: block;
    font-family: "Libre Franklin", sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #7A7A7A;
    margin-bottom: 4px;
}
.fap-tracking-meta-item span {
    font-family: "Libre Franklin", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0A3D62;
}

/* Progress Tracker */
.fap-progress-tracker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    margin-bottom: 20px;
}
.fap-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
}
.fap-progress-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: #e0e0e0;
    color: #999;
    border: 3px solid #e0e0e0;
    transition: all .3s;
    margin-bottom: 8px;
}
.fap-progress-step.active .fap-progress-icon,
.fap-progress-step.completed .fap-progress-icon {
    background: #0A3D62;
    border-color: #0A3D62;
    color: #fff;
}
.fap-progress-step.active .fap-progress-icon {
    box-shadow: 0 0 0 4px rgba(10,61,98,.2);
}

.fap-progress-step .fap-progress-check { display: none; }
.fap-progress-step.completed .fap-progress-check { display: inline; }
.fap-progress-step.completed .fap-progress-dot { display: none; }
.fap-progress-step:not(.completed) .fap-progress-dot { display: inline; }
.fap-progress-step.active .fap-progress-dot { display: inline; }
.fap-progress-step.active .fap-progress-check { display: none; }

.fap-progress-label {
    font-family: "Libre Franklin", sans-serif;
    font-size: 12px;
    color: #999;
    font-weight: 500;
    text-align: center;
    max-width: 100px;
    line-height: 1.3;
}
.fap-progress-step.active .fap-progress-label,
.fap-progress-step.completed .fap-progress-label {
    color: #0A3D62;
    font-weight: 600;
}

.fap-progress-line {
    flex: 1;
    height: 3px;
    background: #e0e0e0;
    margin: 0 6px 28px;
    transition: background .3s;
}
.fap-progress-line.active { background: #0A3D62; }

.fap-current-status-detail {
    text-align: center;
    padding: 16px;
    background: #EBF5FB;
    border-left: 4px solid #245897;
}
.fap-status-description {
    color: #1B4F72;
    font-size: 14px;
}

/* Timeline */
.fap-timeline {
    position: relative;
    padding-left: 30px;
}
.fap-timeline::before {
    content: '';
    position: absolute;
    left: 10px; top: 4px; bottom: 4px;
    width: 2px;
    background: #e5e7eb;
}
.fap-timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 20px;
}
.fap-timeline-item:last-child { margin-bottom: 0; }

.fap-timeline-dot {
    position: absolute;
    left: -24px; top: 4px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #0A3D62;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #0A3D62;
}
.fap-timeline-content {
    background: #f8f9fa;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
}
.fap-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 8px;
}
.fap-timeline-header strong { color: #0A3D62; font-size: 14px; }
.fap-timeline-date {
    font-family: "Libre Franklin", sans-serif;
    font-size: 12px;
    color: #7A7A7A;
}
.fap-timeline-note { font-size: 13px; color: #54595F; margin: 4px 0 0; }
.fap-timeline-user { font-size: 12px; color: #95a5a6; }

/* Shipping info */
.fap-portal-wrapper .fap-shipping-info-box {
    margin-top: 24px;
    background: #f0faf7;
    border: 1px solid #a3e4d7;
    overflow: hidden;
}
.fap-portal-wrapper .fap-shipping-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #e8f8f5;
    border-bottom: 1px solid #a3e4d7;
    font-family: "Libre Franklin", sans-serif;
    font-size: 15px;
    color: #0e6655;
}
.fap-portal-wrapper .fap-shipping-header strong { font-weight: 700; color: #0e6655; }
.fap-portal-wrapper .fap-shipping-icon { font-size: 20px; line-height: 1; }
.fap-portal-wrapper .fap-shipping-details { padding: 6px 20px; }
.fap-portal-wrapper .fap-shipping-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #d5f5e3;
    font-size: 14px;
}
.fap-portal-wrapper .fap-shipping-row:last-child { border-bottom: none; }
.fap-portal-wrapper .fap-shipping-label {
    font-family: "Libre Franklin", sans-serif;
    color: #7A7A7A;
    font-weight: 500;
    flex-shrink: 0;
    margin-right: 16px;
}
.fap-portal-wrapper .fap-shipping-value {
    color: #202B5D;
    font-weight: 600;
    text-align: right;
}
.fap-portal-wrapper .fap-shipping-value code {
    background: #fff;
    border: 1px solid #a3e4d7;
    padding: 4px 10px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 14px;
    color: #0e6655;
    letter-spacing: .5px;
}
.fap-portal-wrapper .fap-btn-track-package {
    display: inline-block;
    font-family: "Cabin", sans-serif;
    padding: 8px 20px;
    background: #0A3D62;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    transition: background .2s;
}
.fap-portal-wrapper .fap-btn-track-package:hover {
    background: #245897;
    color: #fff !important;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE — iPhone-safe, no bleed
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 1024px) {
    .fap-portal-wrapper {
        max-width: 100%;
        padding: 0 20px 24px;
    }
}

@media (max-width: 768px) {
    .fap-portal-wrapper {
        padding: 0 16px 20px;
        font-size: 16px;
    }

    .fap-portal-wrapper .fap-portal-header {
        padding: 28px 16px 22px !important;
        margin: 0 -16px 24px !important;
    }
    .fap-portal-wrapper .fap-portal-header h2 {
        font-size: 19px !important;
    }
    .fap-subtitle { font-size: 12px; }
    .fap-secure-badge { font-size: 10px; padding: 4px 10px; }

    .fap-method-selector { flex-direction: column; gap: 12px; }
    .fap-method-card { padding: 18px 14px; }
    .fap-method-icon { font-size: 28px; margin-bottom: 8px; }

    .fap-section-body { padding: 16px; }
    .fap-section-header { padding: 12px 16px; }
    .fap-portal-wrapper .fap-section-header h3 { font-size: 15px !important; }

    .fap-step-number {
        width: 26px; height: 26px;
        font-size: 12px;
        margin-right: 10px;
    }

    .fap-row { flex-direction: column; gap: 0; }
    .fap-col { margin-bottom: 14px; }

    /* 16px font-size prevents iOS auto-zoom on focus */
    .fap-portal-wrapper .fap-section input[type="text"],
    .fap-portal-wrapper .fap-section input[type="email"],
    .fap-portal-wrapper .fap-section input[type="tel"],
    .fap-portal-wrapper .fap-section input[type="number"],
    .fap-portal-wrapper .fap-section select,
    .fap-portal-wrapper .fap-section textarea {
        font-size: 16px !important;
        padding: 12px 14px !important;
    }
    .fap-portal-wrapper .fap-section label { font-size: 13px !important; }

    .fap-notice { padding: 12px 14px; font-size: 14px; }

    .fap-upload-area { padding: 20px 14px; }
    .fap-upload-icon { font-size: 30px; }
    .fap-upload-area p { font-size: 13px; }

    /* Progress tracker stacks vertically */
    .fap-progress-tracker { flex-direction: column; gap: 0; }
    .fap-progress-line { width: 3px; height: 20px; margin: 0; }
    .fap-progress-step { flex-direction: row; gap: 12px; }
    .fap-progress-icon { margin-bottom: 0; width: 36px; height: 36px; font-size: 14px; }
    .fap-progress-label { text-align: left; max-width: none; font-size: 12px; }

    .fap-tracking-meta { grid-template-columns: 1fr 1fr; }
    .fap-tracking-wrapper .fap-submit-btn { max-width: 100%; }

    .fap-summary-table td { padding: 10px 12px; font-size: 13px; }
    .fap-summary-table td.amount { width: 80px; }
    .fap-portal-wrapper .fap-total-row td { padding: 12px !important; font-size: 14px !important; }

    .fap-payment-section h4 { font-size: 15px; }
    .fap-card-container { padding: 12px; }

    .fap-terms .fap-checkbox-label { font-size: 12px !important; }

    .fap-portal-wrapper .fap-submit-btn { padding: 14px 20px !important; font-size: 16px !important; }

    .fap-service-option { padding: 12px; }
    .fap-checkbox-label { font-size: 13px !important; gap: 8px; }

    .fap-portal-wrapper .fap-shipping-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .fap-portal-wrapper .fap-shipping-value { text-align: left; }
    .fap-portal-wrapper .fap-shipping-details { padding: 6px 14px; }
    .fap-portal-wrapper .fap-shipping-header { padding: 12px 14px; }

    .fap-file-item { padding: 8px 10px; font-size: 12px; }
    .fap-help-text { font-size: 12px; }

    .fap-modal { padding: 12px; align-items: flex-start; overflow-y: auto; }
    .fap-modal-content { padding: 24px 16px; margin-top: 40px; }
    .fap-modal-content h2 { font-size: 18px; }
    .fap-modal-icon { width: 56px; height: 56px; font-size: 26px; }
    .fap-order-number-display span { font-size: 18px; letter-spacing: 1px; }
}

@media (max-width: 480px) {
    .fap-portal-wrapper { padding: 0 12px 16px; }

    .fap-portal-wrapper .fap-portal-header {
        margin: 0 -12px 20px !important;
        padding: 22px 12px 18px !important;
    }
    .fap-portal-wrapper .fap-portal-header h2 { font-size: 16px !important; }

    .fap-tracking-meta { grid-template-columns: 1fr; }
    .fap-modal-actions { flex-direction: column; }
    .fap-btn-primary, .fap-btn-secondary {
        display: block;
        text-align: center;
        padding: 14px 20px;
    }
    .fap-summary-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .fap-method-card strong { font-size: 14px; }
    .fap-method-card p { font-size: 12px; }

    .fap-section-body { padding: 14px 12px; }
    .fap-section-header { padding: 10px 12px; }
    .fap-portal-wrapper .fap-section-header h3 { font-size: 14px !important; }
}

@media (max-width: 375px) {
    .fap-portal-wrapper { padding: 0 8px 12px; }
    .fap-portal-wrapper .fap-portal-header { margin: 0 -8px 18px !important; }

    .fap-section-body { padding: 12px 10px; }
    .fap-summary-table td { padding: 6px 8px; font-size: 12px; }
    .fap-portal-wrapper .fap-total-row td { font-size: 13px !important; }
    .fap-card-container { padding: 10px 8px; }
    .fap-notice { padding: 10px 12px; font-size: 13px; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PAGE LAYOUT INTEGRATION
   Applied via body class on submit-order
   and track-order pages.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Hide sidebar, stretch to full width */
body.fap-fullwidth-page .sidebar,
body.fap-fullwidth-page .widget-area,
body.fap-fullwidth-page aside,
body.fap-fullwidth-page #secondary,
body.fap-fullwidth-page .egovt-sidebar,
body.fap-fullwidth-page .site-sidebar {
    display: none !important;
}

body.fap-fullwidth-page .content-area,
body.fap-fullwidth-page #primary,
body.fap-fullwidth-page .site-main,
body.fap-fullwidth-page .egovt-content-area,
body.fap-fullwidth-page .elementor-column-wrap,
body.fap-fullwidth-page .elementor-widget-wrap {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
}

/* Hide breadcrumbs only */
body.fap-fullwidth-page .breadcrumb,
body.fap-fullwidth-page .breadcrumbs,
body.fap-fullwidth-page .egovt-breadcrumb,
body.fap-fullwidth-page nav.woocommerce-breadcrumb {
    display: none !important;
}

/* Clean Elementor containers */
body.fap-fullwidth-page .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 100% !important;
}

/* Zero out entry-content spacing */
body.fap-fullwidth-page .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide theme page title — our header handles it */
body.fap-fullwidth-page .entry-title,
body.fap-fullwidth-page .page-title,
body.fap-fullwidth-page .entry-header,
body.fap-fullwidth-page .page-header,
body.fap-fullwidth-page .egovt-page-title-section,
body.fap-fullwidth-page .elementor-page-title {
    display: none !important;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SHIPPING METHOD SELECTOR (v1.5.0)
   Modern card-based UI with smooth transitions
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-shipping-method-section {
    margin: 0 0 30px;
    padding: 0;
}

.fap-shipping-method-header {
    margin-bottom: 20px;
}

.fap-shipping-method-header h4 {
    font-family: "Libre Franklin", sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0A3D62 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
}

.fap-shipping-subtext {
    font-size: 14px;
    color: #7A7A7A;
    margin: 0;
}

.fap-shipping-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .fap-shipping-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.fap-shipping-option {
    position: relative;
    cursor: pointer;
    display: block;
}

.fap-shipping-option input[type="radio"] {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
    opacity: 1;
    z-index: 2;
}

.fap-shipping-card {
    position: relative;
    display: block;
    padding: 20px 20px 20px 60px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: auto;
}

.fap-shipping-option:hover .fap-shipping-card {
    border-color: #0A3D62;
    background: #f9f9f9;
    box-shadow: 0 2px 6px rgba(10, 61, 98, 0.08);
}

/* Active state styling */
.fap-shipping-option input[type="radio"]:checked + .fap-shipping-card {
    border-color: #0A3D62;
    border-width: 3px;
    background: #fafbfd;
    box-shadow: 0 4px 12px rgba(10, 61, 98, 0.12);
}

.fap-shipping-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.fap-shipping-radio-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #999;
    border-radius: 50%;
    background: #fff;
    margin: 0;
}

.fap-shipping-option input[type="radio"]:checked ~ .fap-shipping-card .fap-shipping-radio-indicator {
    border-color: #0A3D62;
    background: #0A3D62;
    box-shadow: inset 0 0 0 4px #fff;
}

.fap-shipping-content {
    flex: 1;
    min-width: 0;
}

.fap-shipping-title {
    font-family: "Libre Franklin", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #0A3D62;
    margin: 0 0 8px;
    padding: 0;
}

.fap-shipping-description {
    font-size: 14px;
    color: #555;
    margin: 0 0 12px;
    padding: 0;
    line-height: 1.5;
}

.fap-shipping-details {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.fap-shipping-details p {
    margin: 6px 0;
    padding: 0;
}

.fap-shipping-details strong {
    color: #0A3D62;
    font-weight: 600;
}

.fap-shipping-note {
    font-style: italic;
    color: #888;
    font-size: 12px;
    margin-top: 8px !important;
}

.fap-cost-free {
    color: #27AE60;
    font-weight: 700;
}

/* Address fields container - smooth show/hide */
#fap-shipping-address-fields {
    max-height: 1000px;
    overflow: hidden;
    opacity: 1;
    transition: all 0.4s ease;
}

#fap-shipping-address-fields.fap-hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   OWN SHIPPING INSTRUCTIONS (v1.5.0)
   Modern instruction card with options
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-own-shipping-section {
    margin: 0 0 30px;
    animation: fadeInDown 0.4s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fap-instruction-card {
    display: block;
    padding: 24px;
    background: #f8f9fa;
    border: 1px solid #d0d0d0;
    border-left: 4px solid #0A3D62;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.fap-instruction-content {
    flex: 1;
    min-width: 0;
}

.fap-instruction-title {
    font-family: "Libre Franklin", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0A3D62;
    margin: 0 0 12px;
    padding: 0;
}

.fap-instruction-text {
    font-size: 15px;
    color: #555;
    margin: 0 0 15px;
    padding: 0;
    line-height: 1.5;
}

.fap-instruction-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 15px 0;
}

@media (max-width: 768px) {
    .fap-instruction-options {
        grid-template-columns: 1fr;
    }
    
    .fap-instruction-card {
        flex-direction: column;
        gap: 16px;
    }
}

.fap-instruction-option {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    border-left: 3px solid #245897;
}

.fap-option-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #0A3D62;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.fap-option-content {
    flex: 1;
}

.fap-option-content strong {
    display: block;
    font-size: 15px;
    color: #0A3D62;
    margin-bottom: 6px;
    font-family: "Libre Franklin", sans-serif;
}

.fap-option-content p {
    font-size: 13px;
    color: #666;
    margin: 4px 0;
    padding: 0;
    line-height: 1.4;
}

.fap-email-highlight {
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 4px;
    margin: 6px 0;
    font-weight: 600;
}

.fap-email-highlight a {
    color: #0A3D62;
    text-decoration: none;
    font-family: monospace;
    font-size: 14px;
}

.fap-email-highlight a:hover {
    text-decoration: underline;
}

.fap-small-text {
    font-size: 12px;
    color: #999;
    margin: 4px 0 0;
    padding: 0;
}

.fap-instruction-warning {
    background: #fff3cd;
    border: 2px solid #ff6b6b;
    border-radius: 6px;
    padding: 14px;
    margin-top: 15px;
    font-size: 13px;
    color: #5a4a2a;
    line-height: 1.6;
}

.fap-instruction-warning strong {
    color: #c92a2a;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.fap-instruction-warning p {
    margin: 8px 0 0;
    padding: 0;
    color: #5a4a2a;
}
}

