:root {
    --cfp-blue: #174f78;
    --cfp-dark-blue: #10364f;
    --cfp-pale-blue: #eef6fa;
    --cfp-border: #d9e3e8;
    --cfp-text: #24323a;
}

body {
    background: var(--cfp-pale-blue);
    color: var(--cfp-text);
}

.button,
button,
input[type='button'],
input[type='reset'],
input[type='submit'] {
    background-color: var(--cfp-blue);
    border-color: var(--cfp-blue);
}

.button:focus,
.button:hover,
button:focus,
button:hover,
input[type='button']:focus,
input[type='button']:hover,
input[type='reset']:focus,
input[type='reset']:hover,
input[type='submit']:focus,
input[type='submit']:hover {
    background-color: var(--cfp-dark-blue);
    border-color: var(--cfp-dark-blue);
    color: #fff;
}

.main {
    background: var(--cfp-pale-blue);
    min-height: calc(100vh - 8rem);
    padding-bottom: 5rem;
    padding-top: 3rem;
}

.top-nav {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--cfp-border);
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    margin: 0;
    max-width: none;
    padding: 1.4rem 3rem;
    position: sticky;
    top: 0;
    transform: translateY(0);
    transition: transform .2s ease;
    width: 100%;
    z-index: 100;
}

.top-nav.nav-hidden {
    transform: translateY(-100%);
}

.top-nav-title a {
    color: var(--cfp-dark-blue);
    font-size: 2.2rem;
    font-weight: 700;
    text-decoration: none;
}

.top-nav-links {
    display: flex;
    gap: 2rem;
}

.top-nav-links a {
    color: var(--cfp-text);
    font-weight: 600;
    text-decoration: none;
}

.top-nav-links a:hover,
.top-nav-links a:focus {
    color: var(--cfp-blue);
}

.top-nav-user {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.8rem;
    color: #e7f2f5;
    display: inline-flex;
    font-weight: 600;
    gap: 0.7rem;
    list-style: none;
    padding: 0.45rem 0.8rem;
    cursor: pointer;
}

.top-nav-user::-webkit-details-marker { display: none; }

.top-nav-user-name {
    color: #ffffff;
}

.top-nav-user-role {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.7rem;
    text-transform: uppercase;
}

.top-nav-user-menu {
    position: relative;
}

.top-nav-user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.7rem);
    min-width: 19rem;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #d8e3ea;
    border-radius: 0.7rem;
    box-shadow: 0 1rem 2.4rem rgba(15, 23, 42, 0.18);
    padding: 1rem;
    z-index: 20;
}

.top-nav-user-menu:not([open]) .top-nav-user-dropdown {
    display: none;
}

.top-nav-user-dropdown-label {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

.top-nav-user-dropdown-name {
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0.35rem 0 0.9rem;
}

.top-nav-user-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    background: #102d40;
    border: 0;
    border-radius: 0.55rem;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.55rem 0.8rem;
    text-decoration: none;
}

.top-nav-user-logout:hover,
.top-nav-user-logout:focus {
    background: #174f78;
    color: #ffffff;
}

.top-nav-links a.top-nav-call {
    background: var(--cfp-blue);
    border-radius: 0.5rem;
    color: #fff;
    padding: 0.7rem 1.4rem;
    white-space: nowrap;
}

.top-nav-links a.top-nav-call:hover,
.top-nav-links a.top-nav-call:focus {
    background: var(--cfp-dark-blue);
    color: #fff;
}

.booking-home {
    color: var(--cfp-text);
    padding: 3rem 0 5rem;
}

.job-request-step-1,
.job-request-step-2,
.job-request-step-3 {
    background: #fff;
    border: 1px solid var(--cfp-border);
    border-radius: 0.8rem;
    box-shadow: 0 0.4rem 1.4rem rgba(16, 54, 79, 0.06);
    margin: 0 auto;
    max-width: 92rem;
    padding: 3.5rem 4rem 4rem;
}

.job-request-step-1 h1,
.job-request-step-2 h1,
.job-request-step-3 h1 {
    color: var(--cfp-dark-blue);
    font-size: 3.4rem;
    margin-bottom: 1rem;
}

.job-request-step-1 > p,
.job-request-step-2 > p,
.job-request-step-3 > p {
    color: #60727c;
    font-size: 1.7rem;
    margin-bottom: 2.5rem;
}

.job-request-step-1 input,
.job-request-step-1 select,
.job-request-step-1 textarea,
.job-request-step-2 input,
.job-request-step-2 select,
.job-request-step-2 textarea {
    background: #fbfdfe;
}

.booking-home-hero {
    background: var(--cfp-pale-blue);
    border-radius: 0.8rem;
    padding: 6rem 5rem;
    text-align: center;
}

.booking-home-eyebrow {
    color: var(--cfp-blue);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.booking-home-hero h1 {
    color: var(--cfp-dark-blue);
    font-size: 4.2rem;
    margin-bottom: 1.5rem;
}

.booking-home-intro {
    font-size: 1.9rem;
    margin: 0 auto 2.5rem;
    max-width: 68rem;
}

.booking-home-primary {
    background: var(--cfp-blue);
    border-color: var(--cfp-blue);
}

.booking-home-services {
    padding-top: 4rem;
}

.booking-home-services h2 {
    color: var(--cfp-dark-blue);
    text-align: center;
}

.booking-home-portals {
    border-top: 1px solid var(--cfp-border);
    margin-top: 4rem;
    padding-top: 4rem;
    text-align: center;
}

.booking-home-portals h2 {
    color: var(--cfp-dark-blue);
    margin-bottom: 1rem;
}

.booking-home-section-intro {
    margin: 0 auto 2.5rem;
    max-width: 65rem;
}

.booking-home-portal-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: left;
}

.booking-home-portal-grid article {
    background: #fff;
    border: 1px solid var(--cfp-border);
    border-radius: 0.6rem;
    display: flex;
    flex-direction: column;
    padding: 2.4rem;
}

.booking-home-portal-grid h3 {
    color: var(--cfp-blue);
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.booking-home-portal-grid .button {
    align-self: flex-start;
    margin-top: auto;
}

.portal-label {
    color: #60727c;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.booking-home-note {
    color: #60727c;
    font-size: 1.4rem;
    margin: 2rem 0 0;
}

.booking-home-service-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
}

.booking-home-service-grid article {
    border: 1px solid var(--cfp-border);
    border-radius: 0.6rem;
    padding: 2.4rem;
}

.booking-home-service-grid h3 {
    color: var(--cfp-blue);
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.booking-progress {
    align-items: center;
    color: #60727c;
    display: flex;
    font-size: 1.35rem;
    gap: 0.8rem;
    margin: -0.6rem 0 1.8rem;
}

.booking-progress-dots {
    display: inline-flex;
    gap: 0.45rem;
}

.booking-progress-steps {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.booking-progress-dots > span {
    background: #fff;
    border: 1px solid #7c8d98;
    border-radius: 50%;
    height: 0.8rem;
    width: 0.8rem;
}

.booking-progress-dots > .is-filled {
    background: var(--cfp-blue);
    border-color: var(--cfp-blue);
}

@media (max-width: 1100px) {
    .top-nav {
        gap: 1.5rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .top-nav-links {
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
        justify-content: flex-end;
    }

    .booking-home-service-grid,
    .booking-home-portal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-home-service-grid article:nth-child(3):last-child,
    .booking-home-portal-grid article:nth-child(3):last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .top-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 2rem;
    }

    .booking-home-hero {
        padding: 4rem 2rem;
    }

    .job-request-step-1,
    .job-request-step-2,
    .job-request-step-3 {
        padding: 2.5rem 2rem 3rem;
    }

    .booking-home-hero h1 {
        font-size: 3.2rem;
    }

    .booking-home-service-grid {
        grid-template-columns: 1fr;
    }

    .booking-home-portal-grid {
        grid-template-columns: 1fr;
    }

    .top-nav-links {
        flex-wrap: wrap;
    }
}

/* Shared visual language for customer and operations pages. */
body:not(.cfp-homepage) .top-nav {
    background: #102d40;
    border-bottom: 0;
    padding: 2rem 5%;
}

body:not(.cfp-homepage) .top-nav-title a {
    color: #fff;
}

body:not(.cfp-homepage) .top-nav-links a {
    color: #e7f2f5;
    font-size: 1.4rem;
}

body:not(.cfp-homepage) .top-nav-links a:hover,
body:not(.cfp-homepage) .top-nav-links a:focus {
    color: #8de1e4;
}

body:not(.cfp-homepage) .top-nav-links a.is-active {
    color: #8de1e4;
    box-shadow: inset 0 -2px 0 #8de1e4;
}

@media (max-width: 1250px) {
    body:not(.cfp-homepage) .top-nav {
        flex-wrap: wrap;
        gap: 1.2rem 2rem;
    }

    body:not(.cfp-homepage) .top-nav-links {
        flex-wrap: wrap;
        gap: 1rem 1.6rem;
        justify-content: flex-end;
    }
}

body:not(.cfp-homepage) .main {
    background:
        radial-gradient(circle at 94% 8%, rgba(141, 225, 228, 0.23), transparent 23rem),
        linear-gradient(180deg, #eaf4f8 0%, #f4f8fa 100%);
    padding: 4.5rem 0 6rem;
}

body:not(.cfp-homepage) .main > .container {
    max-width: 124rem;
    padding: 0 3rem;
    width: 100%;
}

.job-request-step-1,
.job-request-step-2,
.job-request-step-3 {
    border: 0;
    border-radius: 1.2rem;
    box-shadow: 0 1.8rem 5rem rgba(16, 45, 64, 0.12);
    max-width: 108rem;
    overflow: hidden;
    padding: 0;
}

.booking-step-header {
    background:
        radial-gradient(circle at 88% 35%, rgba(141, 225, 228, 0.23), transparent 18rem),
        #102d40;
    color: #fff;
    min-height: 22rem;
    padding: 4.2rem 5rem 3.4rem;
    position: relative;
}

.booking-step-header::after {
    border: 1px solid rgba(141, 225, 228, 0.38);
    border-radius: 50%;
    content: '';
    height: 12rem;
    position: absolute;
    right: 6rem;
    top: 4.5rem;
    width: 12rem;
}

.booking-step-eyebrow {
    color: #8de1e4;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .16em;
    margin: 0 0 1.2rem;
    text-transform: uppercase;
}

.job-request-step-1 .booking-step-header h1,
.job-request-step-2 .booking-step-header h1,
.job-request-step-3 .booking-step-header h1 {
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: clamp(3.2rem, 4vw, 5rem);
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1.08;
    margin: 0 0 1.2rem;
    max-width: 70rem;
    position: relative;
    z-index: 1;
}

.booking-step-intro {
    color: #d7e7ed;
    font-size: 1.55rem;
    line-height: 1.6;
    margin: 0;
    max-width: 62rem;
    position: relative;
    z-index: 1;
}

.booking-step-header .booking-progress {
    color: #d7e7ed;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    margin: 2.4rem 0 0;
    position: relative;
    z-index: 1;
}

.booking-progress-current {
    font-size: 1.25rem;
}

.booking-step-header .booking-progress-steps {
    clip: auto;
    clip-path: none;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: auto;
    list-style: none;
    margin: 0;
    max-width: 54rem;
    overflow: visible;
    padding: 0;
    position: static;
    white-space: normal;
    width: 100%;
}

.booking-step-header .booking-progress-steps li {
    border-top: 3px solid rgba(255, 255, 255, 0.22);
    color: #9db3be;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    padding-top: 0.9rem;
}

.booking-step-header .booking-progress-steps li.is-complete,
.booking-step-header .booking-progress-steps li.is-current {
    border-top-color: #8de1e4;
    color: #e7f4f7;
}

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

.booking-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    min-width: 0;
}

.booking-field-full {
    grid-column: 1 / -1;
}

.booking-step-form .booking-field label {
    margin-bottom: 0.6rem;
}

.booking-step-form .booking-field input,
.booking-step-form .booking-field select,
.booking-step-form .booking-field textarea {
    margin-bottom: 0;
    width: 100%;
}

.booking-step-form .booking-field .error-message {
    margin: 0.6rem 0 0;
}

.booking-optional {
    color: #7a909a;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.booking-field-hint {
    color: #657b86;
    font-size: 1.25rem;
    margin: -0.2rem 0 0.8rem;
}

.booking-step-form input[type="file"] {
    background: #f4fafb;
    border-style: dashed;
    cursor: pointer;
    min-height: 5.6rem;
    padding: 1.2rem;
}

.booking-step-form {
    background: #fff;
    padding: 4rem 5rem 4.5rem;
}

.booking-step-form label {
    color: #17384c;
    font-size: 1.35rem;
    letter-spacing: .01em;
    margin-bottom: .7rem;
}

.booking-step-form input,
.booking-step-form select,
.booking-step-form textarea {
    background: #f8fbfc;
    border: 1px solid #cddde4;
    border-radius: .65rem;
    margin-bottom: 2rem;
    min-height: 4.8rem;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.booking-step-form input:focus,
.booking-step-form select:focus,
.booking-step-form textarea:focus {
    background: #fff;
    border-color: #3b899c;
    box-shadow: 0 0 0 .3rem rgba(59, 137, 156, .12);
}

.booking-form-actions {
    align-items: center;
    border-top: 1px solid #dbe7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1.4rem;
    padding-top: 2.4rem;
}

.booking-form-actions-end {
    justify-content: space-between;
}

.booking-form-note {
    color: #657b86;
    font-size: 1.25rem;
}

.booking-form-actions .button,
.booking-form-actions button {
    border-radius: .55rem;
    height: auto;
    line-height: 1.3;
    margin: 0;
    min-height: 4.6rem;
    padding: 1.3rem 2rem;
}

.booking-form-actions button {
    background: #174f78;
    border-color: #174f78;
}

.booking-review-grid {
    background: #f7fafb;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4rem 5rem 2rem;
}

.review-section {
    background: #fff;
    border: 1px solid #d8e5ea;
    border-radius: .85rem;
    min-height: 18rem;
    padding: 2.4rem;
}

.review-section.is-primary {
    background: #f4fbfb;
    border: 1px solid #bfe1e0;
    border-left: .4rem solid #0f6e6a;
    box-shadow: 0 .6rem 1.6rem rgba(15, 110, 106, .1);
}

.review-section.is-secondary {
    background: #fafbfc;
    box-shadow: none;
    min-height: 0;
}

.review-section.is-secondary h3 {
    color: #4b6572;
    font-size: 1.6rem;
}

.review-section.is-secondary .review-section-number {
    color: #90a3ab;
}

.review-section-number {
    color: #3b899c;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .12em;
    margin: 0 0 1.8rem;
}

.review-section.is-primary .review-section-number {
    color: #0f6e6a;
}

.review-section h3 {
    color: #102d40;
    font-family: Arial, sans-serif;
    font-size: 2rem;
    margin: 0 0 1.5rem;
}

.review-section.is-primary h3 {
    font-size: 2.2rem;
}

.review-section p:not(.review-section-number) {
    color: #425c69;
    display: grid;
    font-size: 1.35rem;
    gap: .2rem;
    margin: 0 0 1rem;
}

.review-section.is-secondary p:not(.review-section-number) {
    font-size: 1.2rem;
}

.review-section p strong {
    color: #71858e;
    font-size: 1rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.job-request-step-3 > form {
    background: #f7fafb;
    padding: 0 5rem 4rem;
}

.booking-review-actions {
    margin-top: 0;
}

.booking-confirmation-actions {
    gap: 1.6rem;
    justify-content: center;
    padding: 2.8rem 0 2rem;
}

.booking-confirmation-actions .button {
    margin: 0;
    min-width: 21rem;
    padding-left: 2.6rem;
    padding-right: 2.6rem;
    text-align: center;
}

.site-footer {
    background: #0b2231;
    color: #cedee5;
    padding: 2.2rem 5%;
}

.site-footer-inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 124rem;
}

.cfp-homepage .site-footer {
    display: none;
}

body:not(.cfp-homepage) .message {
    border-radius: 0.7rem;
    margin: 0 auto 2rem;
    max-width: 108rem;
    padding: 1.4rem 1.8rem;
}

body.account-page .main {
    align-items: center;
    display: flex;
}

.login-page {
    margin: 0 auto;
    max-width: 52rem;
    width: 100%;
}

.login-hero {
    background:
        radial-gradient(circle at 88% 30%, rgba(141, 225, 228, 0.24), transparent 16rem),
        #102d40;
    border-radius: 1.2rem;
    box-shadow: 0 1.5rem 4rem rgba(16, 45, 64, .14);
    color: #fff;
    margin-bottom: 2rem;
    padding: 3.4rem 3.6rem;
}

.login-eyebrow {
    color: #8de1e4;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .16em;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.login-hero h1 {
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: clamp(2.8rem, 4vw, 3.6rem);
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin: 0 0 1rem;
}

.login-intro {
    color: #d7e7ed;
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 0;
}

.login-card {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 .8rem 2.6rem rgba(16, 54, 79, .08);
    padding: 3rem 3.6rem;
}

.login-card form > button[type='submit'] {
    margin-top: .5rem;
    text-align: center;
    width: 100%;
}

.login-password-field {
    position: relative;
}

.login-password-field input {
    padding-right: 4rem;
    width: 100%;
}

.login-card .login-password-toggle {
    align-items: center;
    background: none;
    border: 0;
    border-radius: 50%;
    color: #6b7d88;
    cursor: pointer;
    display: flex;
    justify-content: center;
    margin-top: 0;
    min-width: 0;
    padding: 0.5rem;
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
}

.login-card .login-password-toggle:hover,
.login-card .login-password-toggle:focus {
    color: var(--cfp-blue);
}

@media (max-width: 720px) {
    .login-hero,
    .login-card { padding: 2.4rem; }
    body:not(.cfp-homepage) .top-nav { padding: 1.7rem 6%; }
    body:not(.cfp-homepage) .main > .container { padding: 0 1.5rem; }
    .booking-step-header { min-height: 0; padding: 3.2rem 2.4rem; }
    .booking-step-header::after { display: none; }
    .booking-step-header .booking-progress-steps { max-width: none; }
    .booking-form-grid { grid-template-columns: 1fr; }
    .booking-step-form { padding: 3rem 2.4rem; }
    .booking-review-grid { grid-template-columns: 1fr; padding: 2.5rem 2.4rem 1.5rem; }
    .job-request-step-3 > form { padding: 0 2.4rem 3rem; }
    .review-section { min-height: 0; }
    .booking-confirmation-actions {
        align-items: stretch;
        gap: 1rem;
    }
    .booking-confirmation-actions .button {
        min-width: 0;
        width: 100%;
    }
}
