/* =================================================================
   Federal Apostille Portal — Compact Wizard Styles v1.0
   ─────────────────────────────────────────────────────────────────
   Depends on fap-public.css for base input/label/color styles.
   Scoped entirely under .fap-compact-wrapper.
   ================================================================= */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   WRAPPER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

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

.fap-compact-wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 0 24px;
    font-family: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #7A7A7A;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   COMPACT HEADER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-compact-wrapper .fap-compact-header {
    text-align: center;
    padding: 20px 20px 16px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 0;
}

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

.fap-compact-wrapper .fap-compact-subtitle {
    font-family: "Libre Franklin", sans-serif;
    font-size: 12px;
    color: #7A7A7A;
    margin: 0;
    font-weight: 400;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PROGRESS BAR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-wizard-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 16px 12px;
    gap: 0;
}

.fap-wizard-dot-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 52px;
}

.fap-wizard-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #999;
    font-family: "Libre Franklin", sans-serif;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all .25s ease;
}

.fap-wizard-dot.active {
    background: #0A3D62;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(10, 61, 98, .15);
}

.fap-wizard-dot.completed {
    background: #0A3D62;
    color: #fff;
}

.fap-wizard-dot-label {
    font-family: "Libre Franklin", sans-serif;
    font-size: 9px;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-top: 4px;
    text-align: center;
    transition: color .25s ease;
}

.fap-wizard-dot.active ~ .fap-wizard-dot-label,
.fap-wizard-dot-wrap .fap-wizard-dot.active + .fap-wizard-dot-label {
    color: #0A3D62;
    font-weight: 600;
}

.fap-wizard-dot-wrap .fap-wizard-dot.completed + .fap-wizard-dot-label {
    color: #0A3D62;
    font-weight: 600;
}

.fap-wizard-connector {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    max-width: 60px;
    transition: background .25s ease;
    margin-top: 13px;
}

.fap-wizard-connector.completed {
    background: #0A3D62;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   WIZARD STEPS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-wizard-step {
    display: none;
    padding: 20px 24px;
}

.fap-wizard-step.active {
    display: block;
}

.fap-compact-wrapper .fap-wizard-step-title {
    font-family: "Libre Franklin", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #202B5D !important;
    margin: 0 0 16px !important;
    padding: 0 0 10px !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: none !important;
    line-height: 1.4 !important;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FORM ELEMENTS (compact overrides)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-compact-wrapper .fap-c-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}
.fap-compact-wrapper .fap-c-row:last-child { margin-bottom: 0; }

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

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

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

.fap-compact-wrapper input[type="text"],
.fap-compact-wrapper input[type="email"],
.fap-compact-wrapper input[type="tel"],
.fap-compact-wrapper input[type="number"],
.fap-compact-wrapper select,
.fap-compact-wrapper textarea {
    width: 100% !important;
    padding: 8px 12px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 5px !important;
    font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif !important;
    font-size: 15px !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: 22px !important;
}

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

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

.fap-compact-wrapper .fap-c-help {
    display: block;
    font-family: "Libre Franklin", sans-serif;
    font-size: 11px;
    color: #999;
    margin-top: 3px;
    line-height: 1.4;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   METHOD CARDS (compact)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-compact-wrapper .fap-c-method-selector {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.fap-compact-wrapper .fap-c-method-option {
    flex: 1;
    position: relative;
    cursor: pointer;
    display: flex;
}

.fap-compact-wrapper .fap-c-method-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0; height: 0;
}

.fap-compact-wrapper .fap-c-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 14px;
    border: 2px solid #e5e7eb;
    background: #fafbfc;
    transition: border-color .2s, background .2s;
    height: 100%;
    width: 100%;
    border-radius: 4px;
}

.fap-compact-wrapper .fap-c-method-card:hover {
    border-color: #245897;
    background: #f7fafc;
}

.fap-compact-wrapper .fap-c-method-option.active .fap-c-method-card {
    border-color: #245897;
    background: #EBF5FB;
}

.fap-compact-wrapper .fap-c-method-icon {
    font-size: 28px;
    margin-bottom: 6px;
    line-height: 1;
}

.fap-compact-wrapper .fap-c-method-card strong {
    font-family: "Libre Franklin", sans-serif;
    font-size: 14px;
    color: #202B5D;
    margin-bottom: 4px;
    display: block;
}

.fap-compact-wrapper .fap-c-method-card p {
    font-family: "Libre Franklin", sans-serif;
    font-size: 11px;
    color: #7A7A7A;
    margin: 0;
    line-height: 1.4;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NOTICES (compact)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-compact-wrapper .fap-c-notice {
    padding: 10px 14px;
    border-radius: 0;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
}
.fap-compact-wrapper .fap-c-notice:last-child { margin-bottom: 0; }

.fap-compact-wrapper .fap-c-notice-info {
    background: #EBF5FB;
    border: 1px solid #AED6F1;
    border-left: 4px solid #0A3D62;
    color: #1B4F72;
}

.fap-compact-wrapper .fap-c-notice-warning {
    background: #FEF9E7;
    border: 1px solid #F9E79F;
    border-left: 4px solid #F39C12;
    color: #7D6608;
}

.fap-compact-wrapper .fap-c-notice-muted {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #7A7A7A;
    color: #54595F;
}

.fap-compact-wrapper .fap-c-disclosure {
    font-family: "Libre Franklin", sans-serif;
    font-size: 11px;
    color: #999;
    line-height: 1.5;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FILE UPLOAD (compact)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-compact-wrapper .fap-c-upload-area {
    border: 2px dashed #e5e7eb;
    border-radius: 5px;
    padding: 18px 14px;
    text-align: center;
    transition: border-color .2s, background .2s;
    cursor: pointer;
    background: #fafbfc;
}

.fap-compact-wrapper .fap-c-upload-area:hover,
.fap-compact-wrapper .fap-c-upload-area.fap-drag-over {
    border-color: #245897;
    background: #EBF5FB;
}

.fap-compact-wrapper .fap-c-upload-icon {
    font-size: 28px;
    margin-bottom: 4px;
    opacity: .5;
}

.fap-compact-wrapper .fap-c-upload-area p {
    font-family: "Libre Franklin", sans-serif;
    margin: 2px 0;
    color: #7A7A7A;
    font-size: 13px;
}

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

.fap-compact-wrapper .fap-c-file-list { margin-top: 10px; }

.fap-compact-wrapper .fap-c-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    margin-bottom: 4px;
    font-family: "Libre Franklin", sans-serif;
    font-size: 12px;
}

.fap-compact-wrapper .fap-c-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
}

.fap-compact-wrapper .fap-c-file-size {
    color: #7A7A7A;
    font-size: 11px;
    margin-right: 8px;
    flex-shrink: 0;
}

.fap-compact-wrapper .fap-c-file-remove {
    background: none;
    border: none;
    color: #c0392b;
    cursor: pointer;
    font-size: 16px;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SERVICES (compact checkboxes)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

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

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

.fap-compact-wrapper .fap-c-conditional {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SUMMARY TABLE (compact)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-compact-wrapper .fap-c-summary-wrap {
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 16px;
}

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

.fap-compact-wrapper .fap-c-total-row td {
    background: #0A3D62 !important;
    color: #fff !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    border: none !important;
}
.fap-compact-wrapper .fap-c-total-row td.amt { color: #fff !important; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PAYMENT (compact)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

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

.fap-compact-wrapper .fap-c-card-container {
    min-height: 80px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    background: #fafbfc;
    overflow: hidden;
}

.fap-compact-wrapper .fap-c-card-container iframe { max-width: 100% !important; }

.fap-compact-wrapper .fap-c-error-msg {
    background: #FDEDEC;
    border: 1px solid #F5B7B1;
    border-left: 4px solid #c0392b;
    color: #922b21;
    padding: 8px 12px;
    font-size: 13px;
    margin-top: 8px;
}

.fap-compact-wrapper .fap-c-terms {
    margin: 14px 0;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
}
.fap-compact-wrapper .fap-c-terms .fap-c-check-label {
    font-size: 11px !important;
    color: #54595F;
}
.fap-compact-wrapper .fap-c-terms a { color: #0A3D62; text-decoration: underline; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAVIGATION BAR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    gap: 12px;
}

.fap-compact-wrapper .fap-wizard-nav button {
    font-family: "Cabin", sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 10px 28px !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: background .2s !important;
    letter-spacing: .2px !important;
    text-transform: uppercase !important;
    line-height: 1.4 !important;
    border: none !important;
    height: auto !important;
    box-shadow: none !important;
}

.fap-compact-wrapper .fapc-btn-back {
    background: #fff !important;
    color: #0A3D62 !important;
    border: 1px solid #e5e7eb !important;
}
.fap-compact-wrapper .fapc-btn-back:hover {
    background: #f8f9fa !important;
}

.fap-compact-wrapper .fapc-btn-next {
    background: #0A3D62 !important;
    color: #fff !important;
}
.fap-compact-wrapper .fapc-btn-next:hover:not(:disabled) {
    background: #245897 !important;
}
.fap-compact-wrapper .fapc-btn-next:disabled {
    opacity: .5 !important;
    cursor: not-allowed !important;
}

.fap-compact-wrapper .fapc-btn-submit {
    background: #0A3D62 !important;
    color: #fff !important;
    width: 100% !important;
    display: block !important;
}
.fap-compact-wrapper .fapc-btn-submit:hover:not(:disabled) {
    background: #245897 !important;
}
.fap-compact-wrapper .fapc-btn-submit:disabled {
    opacity: .5 !important;
    cursor: not-allowed !important;
}

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


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SUCCESS MODAL (compact)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fap-compact-wrapper .fap-c-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-compact-wrapper .fap-c-modal-content {
    background: #fff;
    padding: 30px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.fap-compact-wrapper .fap-c-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    background: #1ABC9C;
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    margin-bottom: 12px;
}

.fap-compact-wrapper .fap-c-modal-content h2 {
    font-family: "Libre Franklin", sans-serif !important;
    color: #202B5D !important;
    margin: 0 0 8px !important;
    font-size: 18px !important;
}

.fap-compact-wrapper .fap-c-modal-content p {
    color: #7A7A7A;
    font-size: 14px;
    margin: 0 0 16px;
}

.fap-compact-wrapper .fap-c-order-display {
    background: #EBF5FB;
    border: 2px solid #245897;
    padding: 12px;
    margin: 14px 0;
}
.fap-compact-wrapper .fap-c-order-display label {
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7A7A7A !important;
    margin-bottom: 2px !important;
}
.fap-compact-wrapper .fap-c-order-display span {
    font-size: 22px;
    font-weight: 700;
    color: #0A3D62;
    font-family: monospace;
    letter-spacing: 2px;
}

.fap-compact-wrapper .fap-c-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.fap-compact-wrapper .fap-c-btn-primary {
    display: inline-block;
    font-family: "Cabin", sans-serif;
    padding: 12px 24px;
    background: #0A3D62;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 0;
    font-weight: 500;
    font-size: 14px;
    transition: background .2s;
}
.fap-compact-wrapper .fap-c-btn-primary:hover { background: #245897; }

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


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 600px) {
    .fap-compact-wrapper { max-width: 100%; }

    .fap-wizard-step { padding: 16px; }
    .fap-wizard-nav { padding: 12px 16px; }

    .fap-compact-wrapper .fap-compact-header { padding: 16px 16px 12px; }
    .fap-compact-wrapper .fap-compact-header h2 { font-size: 17px !important; }

    .fap-compact-wrapper .fap-c-method-selector { flex-direction: column; gap: 10px; }
    .fap-compact-wrapper .fap-c-method-card { padding: 14px 10px; }

    .fap-compact-wrapper .fap-c-row { flex-direction: column; gap: 0; }
    .fap-compact-wrapper .fap-c-col { margin-bottom: 12px; }

    .fap-compact-wrapper input[type="text"],
    .fap-compact-wrapper input[type="email"],
    .fap-compact-wrapper input[type="tel"],
    .fap-compact-wrapper input[type="number"],
    .fap-compact-wrapper select,
    .fap-compact-wrapper textarea {
        font-size: 16px !important;
        padding: 10px 12px !important;
    }

    .fap-compact-wrapper .fap-c-modal { padding: 12px; align-items: flex-start; overflow-y: auto; }
    .fap-compact-wrapper .fap-c-modal-content { padding: 20px 14px; margin-top: 40px; }
    .fap-compact-wrapper .fap-c-modal-actions { flex-direction: column; }
    .fap-compact-wrapper .fap-c-btn-primary,
    .fap-compact-wrapper .fap-c-btn-secondary {
        display: block;
        text-align: center;
    }
}
