/* Homepage only; inherit Jag Law's font, button, and Contact Form 7 styles. */
.jaglaw-why-hire {
    background: var(--color--six);
    color: var(--color--black);
}
.jaglaw-why-hire__layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}
.jaglaw-why-hire__reasons > h2 {
    margin: 0 0 40px;
    text-align: center;
    text-wrap: balance;
}
.jaglaw-why-hire__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.jaglaw-why-hire__item {
    min-width: 0;
    text-align: center;
}
.jaglaw-why-hire__item > img {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin: 0 auto 24px;
}
.jaglaw-why-hire__item h3 {
    margin: 0 0 16px;
    min-height: 3.9em;
    font-size: 26px;
    line-height: 1.3;
    text-wrap: balance;
    font-variant-numeric: tabular-nums;
}
.jaglaw-why-hire__item p {
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
    text-wrap: pretty;
}
.jaglaw-why-hire__form {
    min-width: 0;
    background: #F6F2F2;
    padding: 28px;
}
.jaglaw-why-hire__form > h2 {
    margin: 0 0 24px;
    font-size: 36px;
    line-height: 1.2;
    text-align: center;
    text-wrap: balance;
}
.jaglaw-why-hire__form .form-group {
    width: 100%;
    margin-bottom: 16px;
}
.jaglaw-why-hire__form textarea.form-control {
    height: 100px;
    min-height: 100px;
}
.jaglaw-why-hire__form .wpcf7-list-item-label {
    font-size: 15px;
}
.jaglaw-why-hire__form .wpcf7-acceptance label {
    position: relative;
}
.jaglaw-why-hire__form .wpcf7-acceptance input[type="checkbox"] {
    display: block;
    position: absolute;
    top: 3px;
    left: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--color--black);
}
.jaglaw-why-hire__form .wpcf7-list-item-label::before,
.jaglaw-why-hire__form .wpcf7-list-item-label::after {
    content: none;
}
.jaglaw-why-hire__form .wpcf7-response-output {
    position: static;
    margin-top: 16px !important;
}
.jaglaw-why-hire__form .wpcf7-not-valid-tip {
    display: block;
    position: static;
    font-size: 13px;
    text-align: left;
}
.jaglaw-why-hire__form :is(input, textarea, a):focus-visible {
    outline: 2px solid var(--color--black) !important;
    outline-offset: 3px;
}
@media (max-width: 1399px) {
    .jaglaw-why-hire__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 28px;
    }
    .jaglaw-why-hire__item h3 {
        min-height: 2.6em;
    }
}
@media (max-width: 991px) {
    .jaglaw-why-hire__layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .jaglaw-why-hire__form {
        width: 100%;
        max-width: 640px;
        justify-self: center;
    }
}
@media (max-width: 575px) {
    .jaglaw-why-hire__reasons > h2 {
        margin-bottom: 32px;
    }
    .jaglaw-why-hire__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }
    .jaglaw-why-hire__item h3 {
        min-height: 0;
        margin-bottom: 12px;
    }
    .jaglaw-why-hire__item p {
        max-width: 34ch;
        margin-inline: auto;
    }
    .jaglaw-why-hire__form {
        padding: 24px 20px;
    }
    .jaglaw-why-hire__form > h2 {
        font-size: 32px;
    }
}
