/* Texas Process Servers Academy | Registration Page
   New page-specific selectors; no modifications to the global site.css. */

/* PAGE HERO */
.tpsa-reg-hero {
    position: relative;
    min-height: 245px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(90deg,rgba(244,250,255,.99) 0%,rgba(232,245,255,.96) 42%,rgba(237,247,255,.72) 62%,rgba(237,247,255,.18) 100%), url("../images/slide3.jpg") right center / cover no-repeat;
    border-bottom: 1px solid #dce9f4;
}

    .tpsa-reg-hero::before {
        content: "";
        position: absolute;
        top: -170px;
        right: -90px;
        width: 480px;
        height: 480px;
        border-radius: 50%;
        background: rgba(7,137,249,.045);
        pointer-events: none;
    }

    .tpsa-reg-hero::after {
        content: "";
        position: absolute;
        right: 170px;
        bottom: -180px;
        width: 360px;
        height: 360px;
        border: 1px solid rgba(7,137,249,.10);
        border-radius: 50%;
        pointer-events: none;
    }

    .tpsa-reg-hero > .container {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 1170px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 15px;
        padding-right: 15px;
    }

.tpsa-reg-hero-content {
    max-width: 780px;
    padding: 45px 0;
    animation: tpsaRegEnter .68s ease-out both;
}

.tpsa-reg-hero-eyebrow {
    display: block;
    margin-bottom: 11px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: #355d84;
}

.tpsa-reg-hero h1 {
    margin: 0 0 12px;
    font-size: 44px;
    line-height: 1.09;
    font-weight: 800;
    letter-spacing: -.7px;
    color: #082e62;
}

.tpsa-reg-hero p {
    margin: 0;
    max-width: 700px;
    font-size: 17px;
    line-height: 1.65;
    color: #35536f;
}

/* INTRO AND MAIN LAYOUT */
.tpsa-reg-section {
    padding: 43px 0 72px;
    background: linear-gradient(180deg,#f8fbff 0%,#f3f8fe 55%,#fff 100%);
}

.tpsa-reg-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
    animation: tpsaRegEnter .70s ease-out .07s both;
}

.tpsa-reg-intro-label {
    display: block;
    margin-bottom: 8px;
    color: #4380b6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.7px;
}

.tpsa-reg-intro h2 {
    margin: 0 0 9px;
    color: #082e62;
    font-size: 29px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -.45px;
}

.tpsa-reg-intro p {
    max-width: 680px;
    margin: 0;
    color: #5b7590;
    font-size: 15px;
    line-height: 1.7;
}

    .tpsa-reg-intro p strong {
        color: #e05263;
    }

.tpsa-reg-intro-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
}

    .tpsa-reg-intro-steps span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        white-space: nowrap;
        padding: 8px 10px;
        border: 1px solid #dce9f5;
        border-radius: 20px;
        background: #fff;
        color: #557592;
        font-size: 11px;
        font-weight: 700;
    }

    .tpsa-reg-intro-steps .fa {
        color: #2d7fe4;
    }

.tpsa-reg-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(285px,310px);
    gap: 26px;
    align-items: start;
}

.tpsa-reg-primary {
    min-width: 0;
}

/* FORM SECTIONS */
.tpsa-reg-card {
    position: relative;
    min-width: 0;
    margin: 0 0 23px;
    padding: 0 30px 30px;
    overflow: hidden;
    border: 1px solid #dce8f5;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 11px 38px rgba(12,51,99,.055);
    transition: border-color .35s ease, box-shadow .35s ease;
    animation: tpsaRegEnter .70s ease-out .13s both;
}

.tpsa-reg-primary > .tpsa-reg-card:nth-of-type(2) {
    animation-delay: .19s;
}

.tpsa-reg-primary > .tpsa-reg-card:nth-of-type(3) {
    animation-delay: .25s;
}

.tpsa-reg-primary > .tpsa-reg-card:nth-of-type(4) {
    animation-delay: .31s;
}

.tpsa-reg-primary > .tpsa-reg-card:nth-of-type(5) {
    animation-delay: .37s;
}

.tpsa-reg-card:hover {
    border-color: #b1d3f1;
    box-shadow: 0 17px 46px rgba(12,51,99,.10);
}

.tpsa-reg-card-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 -30px 26px;
    padding: 22px 30px;
    border-bottom: 1px solid #e2ecf7;
    background: linear-gradient(115deg,#eff7ff 0%,#f7fbff 64%,#fff 100%);
}

.tpsa-reg-section-icon {
    display: flex;
    flex: 0 0 51px;
    width: 51px;
    height: 51px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbe1fa;
    border-radius: 14px;
    background: #e3f1ff;
    color: #1769c9;
    font-size: 21px;
}

.tpsa-reg-card-heading > div:last-child {
    min-width: 0;
}

.tpsa-reg-kicker {
    display: block;
    margin-bottom: 4px;
    color: #397ab5;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 2px;
}

.tpsa-reg-card-heading h2 {
    margin: 0 0 5px;
    color: #082e62;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.23;
    letter-spacing: -.2px;
}

.tpsa-reg-card-heading p {
    margin: 0;
    color: #607b96;
    font-size: 13px;
    line-height: 1.55;
}

.tpsa-reg-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px 20px;
    align-items: start;
}

.tpsa-reg-field {
    min-width: 0;
}

.tpsa-reg-field--wide {
    grid-column: 1 / -1;
}

.tpsa-reg-field > label {
    display: block;
    margin: 0 0 8px;
    color: #1d4069;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 750;
}

.tpsa-reg-required {
    color: #d84661;
}

.tpsa-reg-input.form-control,
.tpsa-reg-select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid #cddfed;
    border-radius: 9px;
    outline: none;
    background: #fbfdff;
    box-shadow: none;
    color: #203e5b;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
    transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.tpsa-reg-input::placeholder {
    color: #90a4ba;
    opacity: 1;
}

.tpsa-reg-input.form-control:hover,
.tpsa-reg-select:hover {
    border-color: #91bfe6;
    background: #fff;
}

.tpsa-reg-input.form-control:focus,
.tpsa-reg-select:focus {
    border-color: #3a8be9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47,131,232,.11);
}

.tpsa-reg-help {
    display: block;
    margin-top: 7px;
    color: #667e98;
    font-size: 12px;
    line-height: 1.5;
}

    .tpsa-reg-help strong {
        color: #2871ce;
    }

.tpsa-reg-subheading {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 25px 0 18px;
    padding-top: 22px;
    border-top: 1px solid #e4edf7;
    font-size: 16px;
    font-weight: 800;
    color: #153b69;
}

    .tpsa-reg-subheading .fa {
        color: #247ce2;
    }

.tpsa-reg-security-fields > div[id],
.tpsa-reg-security-fields > span[id] {
    min-width: 0;
}

.tpsa-reg-security-note {
    margin: 18px 0 0;
    color: #657f98;
    font-size: 12px;
    line-height: 1.6;
}

    .tpsa-reg-security-note .fa {
        color: #3185e8;
        margin-right: 4px;
    }

/* AGREEMENTS AND SUBMIT */
.tpsa-reg-final-card {
    margin-bottom: 0;
}

.tpsa-reg-consent {
    display: grid;
    gap: 13px;
    margin-bottom: 23px;
}

.tpsa-reg-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #e0eaf5;
    border-radius: 11px;
    background: #f9fcff;
    color: #365573;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .28s ease,border-color .28s ease;
}

    .tpsa-reg-check:hover {
        background: #f0f7ff;
        border-color: #bddcf8;
    }

    .tpsa-reg-check input[type="checkbox"] {
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        margin: 2px 0 0;
        accent-color: #2878df;
        cursor: pointer;
    }

    .tpsa-reg-check a {
        color: #176ac8;
        font-weight: 800;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

        .tpsa-reg-check a:hover {
            color: #082e62;
        }

.tpsa-reg-captcha {
    margin: 0 0 18px;
    max-width: 100%;
    overflow-x: auto;
}

.tpsa-reg-submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #e4edf5;
}

.tpsa-reg-submit-note {
    max-width: 340px;
    color: #657f98;
    font-size: 12px;
    line-height: 1.65;
}

    .tpsa-reg-submit-note .fa {
        margin-right: 4px;
        color: #2c80df;
    }

.tpsa-reg-submit {
    flex: 0 0 auto;
    min-height: 49px;
    padding: 13px 23px;
    border: 1px solid #2977e4;
    border-radius: 9px;
    background: #347ff0;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .1px;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(44,112,219,.19);
    transition: background-color .28s ease,border-color .28s ease,box-shadow .28s ease;
}

    .tpsa-reg-submit:hover {
        background: #1265d3;
        border-color: #1265d3;
        box-shadow: 0 12px 25px rgba(34,100,199,.27);
    }

    .tpsa-reg-submit:focus-visible {
        outline: 3px solid rgba(46,136,242,.28);
        outline-offset: 3px;
    }

.tpsa-reg-feedback {
    display: block;
    margin-bottom: 17px;
    padding: 15px 18px;
    border: 1px solid #f2c8cc;
    border-radius: 11px;
    background: #fff7f8;
    color: #963a4a;
    font-size: 14px;
    line-height: 1.6;
}

.tpsa-reg-validation-summary {
    position: relative;
    margin: 0 0 23px;
    padding: 21px 22px 21px 71px;
    border: 1px solid #ecc4ca;
    border-left: 4px solid #dc5367;
    border-radius: 14px;
    background: linear-gradient(110deg,#fff7f8 0%,#fffdfd 100%);
    box-shadow: 0 10px 30px rgba(117,34,54,.055);
    color: #82394a;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 750;
}

    .tpsa-reg-validation-summary::before {
        content: "\f071";
        position: absolute;
        left: 21px;
        top: 19px;
        display: flex;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        border-radius: 11px;
        background: #fde8ec;
        color: #ce3d54;
        font: normal 17px FontAwesome;
    }

    .tpsa-reg-validation-summary ul {
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
        gap: 7px;
        margin: 13px 0 0;
        padding: 0;
        list-style: none;
    }

    .tpsa-reg-validation-summary li {
        position: relative;
        margin: 0;
        padding: 9px 12px 9px 27px;
        border: 1px solid #f5dde1;
        border-radius: 8px;
        background: rgba(255,255,255,.82);
        color: #873e50;
        font-size: 12px;
        line-height: 1.5;
        font-weight: 550;
    }

        .tpsa-reg-validation-summary li::before {
            content: "";
            position: absolute;
            left: 12px;
            top: 16px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #dd6175;
        }

.tpsa-reg-server-error p {
    margin: 7px 0 0;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 500;
}

.tpsa-reg-field.is-invalid > label {
    color: #a73d51;
}

.tpsa-reg-field.is-invalid .tpsa-reg-input.form-control,
.tpsa-reg-field.is-invalid .tpsa-reg-select {
    border-color: #e19aa6;
    background: #fffafb;
    box-shadow: 0 0 0 2px rgba(210,70,92,.035);
}

    .tpsa-reg-field.is-invalid .tpsa-reg-input.form-control:focus,
    .tpsa-reg-field.is-invalid .tpsa-reg-select:focus {
        border-color: #d95e74;
        box-shadow: 0 0 0 3px rgba(217,94,116,.13);
    }

.tpsa-reg-field-error {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 7px;
    color: #b14356;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 650;
}

    .tpsa-reg-field-error::before {
        content: "\f06a";
        flex: 0 0 auto;
        margin-top: 2px;
        font: normal 12px FontAwesome;
    }

.tpsa-reg-check.is-invalid {
    border-color: #e7abb5;
    background: #fff7f8;
}

.tpsa-reg-consent-error {
    margin-top: -8px;
    padding-left: 10px;
    color: #b14356;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 650;
}

/* ENROLLMENT SIDEBAR */
.tpsa-reg-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 18px;
    min-width: 0;
    animation: tpsaRegEnter .72s ease-out .23s both;
}

.tpsa-reg-help-card {
    position: relative;
    overflow: hidden;
    padding: 28px 25px;
    border: 1px solid #284877;
    border-radius: 18px;
    background: linear-gradient(155deg,#203e70 0%,#102b5c 62%,#10254b 100%);
    color: #fff;
    box-shadow: 0 16px 38px rgba(10,41,85,.16);
    transition: border-color .35s ease,box-shadow .35s ease;
}

    .tpsa-reg-help-card::after {
        content: "";
        position: absolute;
        right: -105px;
        top: -130px;
        width: 270px;
        height: 270px;
        border: 1px solid rgba(255,255,255,.085);
        border-radius: 50%;
        pointer-events: none;
    }

    .tpsa-reg-help-card:hover {
        border-color: #6a94c2;
        box-shadow: 0 20px 46px rgba(10,41,85,.23);
    }

.tpsa-reg-help-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    border: 1px solid rgba(172,220,255,.22);
    border-radius: 14px;
    background: rgba(255,255,255,.09);
    color: #bbdeff;
    font-size: 24px;
}

.tpsa-reg-help-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: #b2d4f5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.tpsa-reg-help-card h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 800;
}

.tpsa-reg-help-card p {
    margin: 0 0 18px;
    color: #ccdcf1;
    font-size: 13px;
    line-height: 1.7;
}

.tpsa-reg-side-item {
    display: flex;
    gap: 10px;
    margin: 13px 0;
    align-items: flex-start;
    color: #e0eeff;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 600;
}

    .tpsa-reg-side-item .fa {
        flex: 0 0 auto;
        margin-top: 3px;
        color: #78c4ff;
        font-size: 14px;
    }

.tpsa-reg-side-separator {
    height: 1px;
    margin: 24px 0 22px;
    background: rgba(255,255,255,.16);
}

.tpsa-reg-help-card h3 {
    margin: 0 0 9px;
    color: #fff;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 800;
}

.tpsa-reg-login-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 45px;
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 9px;
    background: rgba(255,255,255,.08);
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: border-color .25s ease,background-color .25s ease,box-shadow .25s ease;
}

    .tpsa-reg-login-link:hover {
        background: rgba(255,255,255,.19);
        border-color: #fff;
        box-shadow: 0 6px 20px rgba(0,0,0,.13);
        color: #fff !important;
    }

.tpsa-reg-support-card {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid #d9e6f4;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(12,51,99,.055);
    transition: border-color .3s ease,box-shadow .3s ease;
}

    .tpsa-reg-support-card:hover {
        border-color: #b4d1eb;
        box-shadow: 0 14px 32px rgba(12,51,99,.10);
    }

    .tpsa-reg-support-card > .fa {
        display: grid;
        place-items: center;
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        border-radius: 11px;
        background: #e9f4ff;
        color: #287be4;
        font-size: 17px;
    }

    .tpsa-reg-support-card strong {
        display: block;
        margin-bottom: 5px;
        color: #133862;
        font-size: 14px;
    }

    .tpsa-reg-support-card span {
        display: block;
        margin-bottom: 8px;
        color: #607b96;
        font-size: 12px;
        line-height: 1.55;
    }

    .tpsa-reg-support-card a {
        color: #116dd0;
        font-size: 13px;
        font-weight: 800;
    }

        .tpsa-reg-support-card a:hover {
            color: #082e62;
        }

/* MOTION */
@keyframes tpsaRegEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 1199px) {
    .tpsa-reg-layout {
        grid-template-columns: minmax(0,1fr) minmax(265px,290px);
        gap: 21px;
    }

    .tpsa-reg-card {
        padding: 0 24px 26px;
    }

    .tpsa-reg-card-heading {
        margin: 0 -24px 24px;
        padding: 20px 24px;
    }

    .tpsa-reg-intro-steps {
        max-width: 340px;
    }
}

@media (max-width: 991px) {
    .tpsa-reg-hero {
        min-height: 220px;
    }

    .tpsa-reg-hero-content {
        padding: 40px 0;
    }

    .tpsa-reg-hero h1 {
        font-size: 38px;
    }

    .tpsa-reg-section {
        padding: 38px 0 52px;
    }

    .tpsa-reg-layout {
        grid-template-columns: minmax(0,1fr);
    }

    .tpsa-reg-sidebar {
        position: static;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .tpsa-reg-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .tpsa-reg-intro-steps {
        justify-content: flex-start;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .tpsa-reg-hero {
        min-height: 200px;
        background: linear-gradient(90deg,rgba(244,250,255,.99) 0%,rgba(232,245,255,.97) 58%,rgba(237,247,255,.78) 100%), url("../images/slide1.jpg") 68% center / cover no-repeat;
    }

        .tpsa-reg-hero > .container {
            padding-left: 20px;
            padding-right: 20px;
        }

    .tpsa-reg-hero-content {
        padding: 34px 0;
    }

    .tpsa-reg-hero h1 {
        font-size: 34px;
    }

    .tpsa-reg-hero p {
        font-size: 15px;
        line-height: 1.6;
    }

    .tpsa-reg-section {
        padding: 31px 0 44px;
    }

    .tpsa-reg-intro h2 {
        font-size: 26px;
    }

    .tpsa-reg-card {
        padding: 0 21px 24px;
        border-radius: 16px;
    }

    .tpsa-reg-card-heading {
        margin: 0 -21px 22px;
        padding: 19px 21px;
    }

        .tpsa-reg-card-heading h2 {
            font-size: 20px;
        }

    .tpsa-reg-grid {
        gap: 16px;
    }

    .tpsa-reg-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .tpsa-reg-hero {
        min-height: 185px;
    }

    .tpsa-reg-hero-content {
        padding: 30px 0;
    }

    .tpsa-reg-hero h1 {
        font-size: 31px;
    }

    .tpsa-reg-grid {
        grid-template-columns: minmax(0,1fr);
        gap: 16px;
    }

    .tpsa-reg-card {
        padding: 0 17px 22px;
    }

    .tpsa-reg-card-heading {
        margin: 0 -17px 20px;
        padding: 19px 17px;
        gap: 12px;
    }

        .tpsa-reg-card-heading h2 {
            font-size: 18px;
        }

    .tpsa-reg-section-icon {
        flex-basis: 43px;
        width: 43px;
        height: 43px;
        font-size: 19px;
    }

    .tpsa-reg-submit-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .tpsa-reg-submit {
        width: 100%;
    }

    .tpsa-reg-intro-steps span {
        padding: 6px 8px;
        font-size: 10px;
    }

    .tpsa-reg-intro p {
        font-size: 14px;
    }

    .tpsa-reg-validation-summary {
        padding: 19px 16px 17px 60px;
    }

        .tpsa-reg-validation-summary::before {
            top: 16px;
            left: 15px;
        }

        .tpsa-reg-validation-summary ul {
            grid-template-columns: minmax(0,1fr);
            margin-left: -44px;
        }

    .tpsa-reg-help-card {
        padding: 24px 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tpsa-reg-hero-content, .tpsa-reg-intro, .tpsa-reg-card, .tpsa-reg-sidebar {
        animation: none;
    }

    .tpsa-reg-card, .tpsa-reg-help-card, .tpsa-reg-support-card, .tpsa-reg-login-link, .tpsa-reg-submit {
        transition: none;
    }
}
