.ap-public-page {
    min-height: 100vh;
    background: #f6f8fb;
    color: #172033;
}

.ap-public-page main {
    min-height: 55vh;
}

.ap-auth-section {
    min-height: calc(100vh - 170px);
    background:
        radial-gradient(circle at 15% 20%, rgba(13, 110, 253, .1), transparent 24rem),
        radial-gradient(circle at 90% 75%, rgba(25, 135, 84, .08), transparent 22rem),
        #f6f8fb;
}

.ap-auth-section .ap-icon-box {
    display: grid;
}

.ap-page-hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 0 3.25rem;
    background:
        radial-gradient(circle at 88% 16%, rgba(13, 110, 253, .15), transparent 28%),
        linear-gradient(135deg, #f9fbff 0%, #edf5ff 100%);
    border-bottom: 1px solid #e2e8f0;
}

.ap-page-hero::after {
    content: "";
    position: absolute;
    width: 15rem;
    height: 15rem;
    right: 7%;
    bottom: -9rem;
    border: 2rem solid rgba(13, 110, 253, .06);
    border-radius: 50%;
}

.ap-page-hero .container {
    position: relative;
    z-index: 1;
}

.ap-page-hero h1 {
    max-width: 780px;
    margin: .65rem 0 .8rem;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 750;
    letter-spacing: -.04em;
}

.ap-page-hero p {
    max-width: 760px;
    margin: 0;
    color: #5d687b;
    font-size: 1.12rem;
}

.ap-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: 1.25rem;
    color: #64748b;
    font-size: .92rem;
}

.ap-breadcrumb a {
    color: #0d6efd;
    text-decoration: none;
}

.ap-page-section {
    padding: 4rem 0;
}

.ap-page-section--compact {
    padding: 2.5rem 0 4rem;
}

.ap-surface {
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 1.15rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .07);
}

.ap-surface-header {
    padding: 1.4rem 1.5rem;
    border-bottom: 1px solid #e5eaf1;
}

.ap-surface-header h2,
.ap-surface-header h3 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 700;
}

.ap-surface-header p {
    margin: .35rem 0 0;
    color: #667085;
}

.ap-surface-body {
    padding: 1.5rem;
}

.ap-info-panel {
    height: 100%;
    padding: 1.75rem;
    border-radius: 1.15rem;
    background: linear-gradient(145deg, #0c63e4, #084298);
    color: #fff;
    box-shadow: 0 18px 40px rgba(13, 110, 253, .2);
}

.ap-info-panel .ap-icon-box {
    color: #0d6efd;
    background: #fff;
}

.ap-info-panel h2 {
    margin: 1.25rem 0 .75rem;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.ap-info-panel p,
.ap-info-panel li {
    color: rgba(255, 255, 255, .84);
}

.ap-info-panel ul {
    display: grid;
    gap: .85rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.ap-info-panel li {
    display: flex;
    gap: .75rem;
}

.ap-info-panel li i {
    color: #8ef0c1;
}

.ap-public-page .form-label,
.ap-form-legend {
    margin-bottom: .45rem;
    color: #263247;
    font-weight: 650;
}

.ap-public-page .form-control,
.ap-public-page .form-select,
.ap-public-page .input-group-text {
    min-height: 48px;
    border-color: #d8e0ea;
    border-radius: .75rem;
}

.ap-public-page textarea.form-control {
    min-height: 120px;
}

.ap-public-page .form-control:focus,
.ap-public-page .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .22rem rgba(13, 110, 253, .13);
}

.ap-public-page .form-text {
    color: #6b7280;
}

.ap-form-section + .ap-form-section {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid #e8edf3;
}

.ap-form-section h3 {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.ap-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.ap-choice-card {
    position: relative;
    min-height: 92px;
    padding: 1rem 1rem 1rem 3.25rem;
    border: 1px solid #dce4ef;
    border-radius: .9rem;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ap-choice-card:hover {
    border-color: #9ec5fe;
    transform: translateY(-1px);
}

.ap-choice-card input {
    position: absolute;
    top: 1.15rem;
    left: 1rem;
    width: 1.15rem;
    height: 1.15rem;
}

.ap-choice-card strong,
.ap-choice-card span {
    display: block;
}

.ap-choice-card span {
    margin-top: .25rem;
    color: #667085;
    font-size: .88rem;
}

.ap-choice-card:has(input:checked) {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .1);
}

.ap-terms-preview {
    max-height: 240px;
    overflow: auto;
    padding: 1rem;
    border: 1px solid #dce4ef;
    border-radius: .8rem;
    background: #f8fafc;
    color: #4b5563;
    font-size: .9rem;
}

.ap-amount-box {
    padding: 1.25rem;
    border: 1px solid #cfe2ff;
    border-radius: 1rem;
    background: #f0f6ff;
}

.ap-amount-box span,
.ap-amount-box strong {
    display: block;
}

.ap-amount-box span {
    color: #57657a;
}

.ap-amount-box strong {
    margin-top: .2rem;
    color: #084298;
    font-size: 1.7rem;
}

.ap-blog-card {
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3e9f1;
    border-radius: 1.1rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.ap-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .1);
}

.ap-blog-media {
    position: relative;
    display: grid;
    min-height: 220px;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #e8f1ff, #f7fbff);
}

.ap-blog-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.ap-blog-media > i {
    color: #0d6efd;
    font-size: 3rem;
}

.ap-blog-card-body {
    padding: 1.35rem;
}

.ap-blog-card h2,
.ap-blog-card h3 {
    margin: .65rem 0;
    font-size: 1.25rem;
    line-height: 1.35;
}

.ap-blog-card h2 a,
.ap-blog-card h3 a {
    color: #172033;
    text-decoration: none;
}

.ap-blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    color: #697386;
    font-size: .88rem;
}

.ap-blog-excerpt {
    display: -webkit-box;
    overflow: hidden;
    color: #596579;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ap-search-card {
    position: sticky;
    top: 112px;
}

.ap-recent-list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ap-recent-list a {
    color: #253047;
    font-weight: 650;
    text-decoration: none;
}

.ap-recent-list time {
    display: block;
    margin-top: .25rem;
    color: #7a8494;
    font-size: .82rem;
}

.ap-article-cover {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 1rem;
}

.ap-article-content {
    color: #364152;
    font-size: 1.05rem;
    line-height: 1.8;
}

.ap-article-content img,
.ap-article-content iframe,
.ap-article-content table {
    max-width: 100%;
}

.ap-article-content img {
    height: auto;
}

.ap-payroll-steps {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1.4rem;
}

.ap-step {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #758095;
    font-size: .9rem;
    font-weight: 650;
}

.ap-step span {
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    border-radius: 50%;
    background: #e8edf4;
}

.ap-step.is-active {
    color: #0d6efd;
}

.ap-step.is-active span {
    color: #fff;
    background: #0d6efd;
}

.ap-step-line {
    flex: 1;
    height: 1px;
    background: #dbe2ea;
}

.ap-empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.ap-empty-state i {
    color: #8ea7c7;
    font-size: 2.75rem;
}

.ap-empty-state h2 {
    margin: 1rem 0 .45rem;
    font-size: 1.25rem;
}

.ap-public-page .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: .3rem;
    margin-top: 2rem;
}

.ap-public-page .page-link {
    min-width: 40px;
    border-radius: .65rem !important;
    text-align: center;
}

.ap-public-page .modal-content {
    border: 0;
    border-radius: 1.15rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.ap-pdf-frame {
    width: 100%;
    min-height: min(72vh, 850px);
    border: 0;
    border-radius: .75rem;
    background: #eef2f7;
}

.ap-loading-overlay {
    position: fixed;
    z-index: 2050;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(2px);
}

.ap-loading-overlay.is-visible {
    display: grid;
}

.ap-loading-box {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.2rem;
    border-radius: .9rem;
    background: #fff;
    box-shadow: 0 16px 50px rgba(15, 23, 42, .2);
}

@media (max-width: 991.98px) {
    .ap-page-hero {
        padding: 3rem 0 2.5rem;
    }

    .ap-page-section {
        padding: 3rem 0;
    }

    .ap-search-card {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .ap-surface-header,
    .ap-surface-body {
        padding: 1.1rem;
    }

    .ap-choice-grid {
        grid-template-columns: 1fr;
    }

    .ap-payroll-steps {
        align-items: flex-start;
    }

    .ap-step {
        flex-direction: column;
        text-align: center;
    }
}
