/* ===== Search bar (hero banner) ===== */
.abs-tracker-wrapper {
    width: 100%;
    max-width: 580px;
    box-sizing: border-box;
}

.abs-tracker-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.abs-tracker-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px !important;
    line-height: 52px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 20px !important;
    font-size: 15px;
    border: none !important;
    outline: none;
    background: #ffffff;
    color: #333333;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.abs-tracker-input::placeholder {
    color: #9a9a9a;
}

.abs-tracker-button {
    position: relative;
    flex: 0 0 auto;
    height: 52px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    background-color: #004e9c;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: normal !important;
}

.abs-tracker-button.is-loading .abs-btn-text {
    opacity: 0.35;
}

.abs-btn-spinner {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: abs-spin 0.6s linear infinite;
}

.abs-tracker-button.is-loading .abs-btn-spinner {
    display: block;
}

@keyframes abs-spin {
    to { transform: rotate(360deg); }
}

.abs-tracker-button:hover {
    background-color: #003b78;
}

.abs-tracker-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Tablet: slightly narrower but still fixed-width, non-wrapping, button floats right */
@media (max-width: 1024px) {
    .abs-tracker-wrapper {
        max-width: 520px;
    }
}

/* Mobile: form stays one row (input + button together), tighter side margins, wider input */
@media (max-width: 600px) {
    .abs-tracker-wrapper {
        max-width: calc(100% - 20px);
        margin-left: 10px;
        margin-right: 10px;
    }

    .abs-tracker-form {
        flex-wrap: nowrap;
    }

    .abs-tracker-input {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0 12px !important;
        font-size: 13px;
    }

    .abs-tracker-button {
        flex: 0 0 auto;
        padding: 0 12px;
        font-size: 11px;
    }
}

/* ===== Modal overlay ===== */
body.abs-modal-open {
    overflow: hidden;
}

.abs-tracker-modal {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    align-items: center;
    justify-content: center;
}

.abs-tracker-modal.is-active {
    display: flex;
}

.abs-tracker-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.6);
}

.abs-tracker-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    width: 92%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: absModalPop 0.18s ease-out;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .abs-tracker-modal-content {
        width: calc(100% - 40px) !important;
        max-width: none;
        margin: 0 auto;
        padding: 24px;
    }
}

@keyframes absModalPop {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.abs-tracker-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

.abs-tracker-modal-close:hover {
    color: #333;
}

/* ===== Result card ===== */
.abs-result-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.abs-status-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.abs-result-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #222;
    letter-spacing: 0.5px;
}

.abs-result-subtitle {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: #888;
}

.abs-result-divider {
    border: none;
    border-top: 1px solid #eaeaea;
    margin: 20px 0;
}

.abs-result-desc {
    font-weight: 700;
    font-size: 15px;
    color: #333;
    margin: 0 0 8px 0;
}

.abs-result-meta {
    font-size: 13px;
    color: #888;
    margin: 4px 0;
}

.abs-job-activity {
    margin-top: 18px;
}

.abs-activity-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

.abs-pin-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.abs-activity-arrow {
    width: 16px;
    text-align: center;
    color: #bbb;
    line-height: 1;
    padding: 2px 0;
}

.abs-result-error-card {
    text-align: center;
    padding: 12px 0;
}

.abs-result-error {
    color: #b30000;
    font-weight: 600;
    margin: 0;
}
