/* Industry application pages (includes/application-page.php). Builds on the .cl-* system in model-custom.css. */

/* breadcrumb in hero */
.ap-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
}
.ap-crumbs a {
    color: rgba(255, 255, 255, .85);
}
.ap-crumbs a:hover {
    color: #fff;
    text-decoration: underline;
}
.ap-crumbs [aria-current] {
    color: #fff;
}

/* buyer's guide long-form block */
.ap-guide {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 50px;
    align-items: start;
}
.ap-guide-head {
    position: sticky;
    top: 120px;
}
.ap-guide-body h3 {
    margin: 30px 0 10px;
    font-size: 22px;
}
.ap-guide-body h3:first-child {
    margin-top: 0;
}
.ap-guide-body p {
    margin-bottom: 14px;
}
.ap-guide-body a {
    color: var(--cl-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}
@media (max-width: 991px) {
    .ap-guide {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .ap-guide-head {
        position: static;
    }
}

/* stats strip under hero */
.ap-stats {
    position: relative;
    z-index: 2;
    margin-top: -56px;
}
.ap-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(3, 96, 109, .14);
    overflow: hidden;
}
.ap-stat {
    padding: 28px 26px;
    border-right: 1px solid var(--cl-line);
}
.ap-stat:last-child {
    border-right: 0;
}
.ap-stat strong {
    display: block;
    font-size: 30px;
    line-height: 1.15;
    color: var(--cl-blue);
    font-weight: 700;
}
.ap-stat span {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: var(--cl-text);
}

/* comparison table */
.ap-compare {
    max-width: 980px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--cl-line);
    background: #fff;
}
.ap-compare table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.ap-compare th,
.ap-compare td {
    padding: 16px 22px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--cl-line);
    font-size: 15px;
}
.ap-compare tr:last-child td {
    border-bottom: 0;
}
.ap-compare thead th {
    background: var(--cl-ink);
    color: #fff;
    font-weight: 600;
}
.ap-compare thead th.ap-us {
    background: var(--cl-blue);
}
.ap-compare td:first-child {
    font-weight: 600;
    color: var(--cl-ink);
    width: 26%;
}
.ap-compare td.ap-us {
    background: #f3fbfc;
    color: var(--cl-ink);
}
.ap-compare td.ap-us::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--cl-blue);
    vertical-align: middle;
}

/* process timeline */
.ap-process {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: ap-step;
}
.ap-process::before {
    content: "";
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--cl-blue) 0 10px, transparent 10px 18px);
    opacity: .45;
}
.ap-step {
    position: relative;
    text-align: center;
    counter-increment: ap-step;
}
.ap-step-icon {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--cl-blue);
    border: 2px solid var(--cl-blue);
    box-shadow: 0 0 0 8px var(--cl-soft);
    transition: background .25s, color .25s;
}
.ap-step-icon::after {
    content: counter(ap-step);
    position: absolute;
    top: -6px;
    right: -6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--cl-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 26px;
}
.ap-step:hover .ap-step-icon {
    background: var(--cl-blue);
    color: #fff;
}
.ap-step-card {
    height: calc(100% - 92px);
    padding: 22px 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--cl-line);
}
.ap-step-card h4 {
    margin-bottom: 8px;
    font-size: 18px;
}
.ap-step-card p {
    font-size: 14px;
    line-height: 1.6;
}
.ap-step-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--cl-soft);
    color: var(--cl-blue-dark);
    font-size: 12px;
    font-weight: 600;
}
.ap-checklist {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 26px;
    margin-top: 44px;
    padding: 26px 32px;
    border-radius: 18px;
    background: var(--cl-ink);
    color: rgba(255, 255, 255, .85);
}
.ap-checklist h4 {
    flex-basis: 100%;
    margin: 0;
    color: #fff;
    font-size: 18px;
}
.ap-checklist span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.ap-checklist span::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cl-sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303606d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
    flex-shrink: 0;
}
.ap-checklist .cl-btn {
    margin-left: auto;
}

/* related industries */
.ap-related {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.ap-rel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--cl-line);
    color: var(--cl-ink);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ap-rel:hover {
    transform: translateY(-4px);
    border-color: var(--cl-blue);
    box-shadow: 0 18px 40px rgba(3, 96, 109, .12);
    color: var(--cl-ink);
}
.ap-rel img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}
.ap-rel h4 {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.3;
}
.ap-rel p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}
.ap-rel-arrow {
    margin-left: auto;
    color: var(--cl-blue);
    flex-shrink: 0;
    transition: transform .25s;
}
.ap-rel:hover .ap-rel-arrow {
    transform: translate(3px, -3px);
}

/* quote form section */
.ap-quote {
    padding: 90px 0;
    background: linear-gradient(135deg, var(--cl-blue-dark), var(--cl-blue));
}
.ap-quote-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 50px;
    align-items: start;
}
.ap-quote-info,
.ap-quote-info p {
    color: rgba(255, 255, 255, .88);
}
.ap-quote-info h2 {
    color: #fff;
    margin-bottom: 16px;
}
.ap-quote-info .cl-eyebrow {
    color: var(--cl-sky);
}
.ap-quote-points {
    margin: 26px 0 30px;
    padding: 0;
    list-style: none;
}
.ap-quote-points li {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.ap-quote-points li:last-child {
    border-bottom: 0;
}
.ap-quote-points b {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 13px;
    line-height: 30px;
    text-align: center;
}
.ap-quote-points strong {
    display: block;
    color: #fff;
}
.ap-quote-points small {
    font-size: 14px;
    color: rgba(255, 255, 255, .78);
}
.ap-quote-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.ap-form {
    padding: 36px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .25);
}
.ap-form h3 {
    margin-bottom: 6px;
    font-size: 24px;
}
.ap-form-sub {
    margin-bottom: 24px;
    font-size: 14px;
}
.ap-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ap-field {
    display: flex;
    flex-direction: column;
}
.ap-field-full {
    grid-column: 1 / -1;
}
.ap-field label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cl-ink);
}
.ap-field label em {
    color: #d33;
    font-style: normal;
}
.ap-form .form-control {
    height: 50px;
    padding: 10px 14px;
    border: 1px solid #d7e3e5;
    border-radius: 10px;
    background: #f9fcfc;
    font-size: 15px;
    color: var(--cl-ink);
    box-shadow: none;
    transition: border-color .2s, background .2s;
}
.ap-form textarea.form-control {
    height: 110px;
    resize: vertical;
}
.ap-form .form-control:focus {
    border-color: var(--cl-blue);
    background: #fff;
}
.ap-form label.error {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 500;
    color: #d33;
}
.ap-form .sa-consent {
    margin: 4px 0 0;
}
.ap-form .submit {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 12px;
    background: var(--cl-blue);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.ap-form .submit:hover {
    background: var(--cl-blue-dark);
}
.ap-form-note {
    margin-top: 12px;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 1199px) {
    .ap-related {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 991px) {
    .ap-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ap-stat:nth-child(2) {
        border-right: 0;
    }
    .ap-stat:nth-child(-n+2) {
        border-bottom: 1px solid var(--cl-line);
    }
    .ap-process {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .ap-process::before {
        top: 0;
        bottom: 0;
        left: 35px;
        right: auto;
        width: 2px;
        height: auto;
        background: repeating-linear-gradient(180deg, var(--cl-blue) 0 10px, transparent 10px 18px);
    }
    .ap-step {
        display: flex;
        gap: 20px;
        text-align: left;
    }
    .ap-step-icon {
        flex-shrink: 0;
        margin: 0;
    }
    .ap-step-card {
        height: auto;
        flex: 1;
    }
    .ap-checklist .cl-btn {
        margin-left: 0;
    }
    .ap-related {
        grid-template-columns: repeat(2, 1fr);
    }
    .ap-quote-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 575px) {
    .ap-stats {
        margin-top: -30px;
    }
    .ap-stat {
        padding: 20px 16px;
    }
    .ap-stat strong {
        font-size: 22px;
    }
    .ap-related,
    .ap-form-grid {
        grid-template-columns: 1fr;
    }
    .ap-form {
        padding: 24px 18px;
    }
    .ap-compare th,
    .ap-compare td {
        padding: 12px 14px;
        font-size: 14px;
    }
}
