/* =========================================
   APEX AGED CARE
   BOOK AN APPOINTMENT PAGE
========================================= */

.apex-book-page,
.apex-book-page * {
    box-sizing: border-box;
}

.apex-book-page {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    background: #ffffff;
    color: #17314f;
    font-family: Arial, sans-serif;
}

.apex-book-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

.apex-book-page a {
    text-decoration: none;
}

.apex-book-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.apex-book-section {
    padding: 80px 0;
}

.apex-book-center {
    text-align: center;
}

.apex-book-label,
.apex-book-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #c2964c;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.apex-book-page h1,
.apex-book-page h2,
.apex-book-page h3,
.apex-book-page p {
    margin-top: 0;
}

.apex-book-page h1,
.apex-book-page h2,
.apex-book-page h3 {
    color: #073766;
    font-weight: 800;
}

.apex-book-page h1 {
    max-width: 650px;
    margin-bottom: 20px;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.06;
}

.apex-book-page h2 {
    margin-bottom: 16px;
    font-size: clamp(30px, 3.5vw, 43px);
    line-height: 1.13;
}

.apex-book-page h3 {
    margin-bottom: 10px;
    font-size: 19px;
    line-height: 1.3;
}

.apex-book-page p {
    color: #526171;
    font-size: 16px;
    line-height: 1.75;
}


/* =========================================
   HERO
========================================= */

.apex-book-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(194, 150, 76, .13),
            transparent 28%
        ),
        #f4ecdd;
}

.apex-book-hero-grid {
    min-height: 570px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.apex-book-hero-content {
    position: relative;
    z-index: 2;
    padding: 70px 0;
}

.apex-book-hero-content > p {
    max-width: 590px;
    margin-bottom: 25px;
    font-size: 17px;
}

.apex-book-hero-points {
    display: grid;
    gap: 12px;
    margin-bottom: 30px;
}

.apex-book-hero-points div {
    color: #17314f;
    font-size: 15px;
    font-weight: 700;
}

.apex-book-hero-points div::first-letter {
    color: #c2964c;
}

.apex-book-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 30px;
    background: #f26100;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(242, 97, 0, .17);
    transition: all .25s ease;
}

.apex-book-phone-link:hover {
    background: #d95500;
    transform: translateY(-2px);
}

.apex-book-phone-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.apex-book-hero-image {
    position: relative;
    align-self: stretch;
    height: 100%;
    min-height: 570px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.apex-book-hero-image img {
    width: 100% !important;
    height: 100% !important;
    min-height: 570px;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* =========================================
   INTRO
========================================= */

.apex-book-intro {
    background: #ffffff;
}

.apex-book-intro .apex-book-container {
    max-width: 850px;
}

.apex-book-intro p {
    max-width: 760px;
    margin: 0 auto;
}


/* =========================================
   FORM SECTION
========================================= */

.apex-book-form-section {
    background: #fbf7f0;
}

.apex-book-form-grid {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    align-items: start;
    gap: 70px;
}

.apex-book-form-info {
    padding-top: 25px;
}

.apex-book-form-info h2 {
    max-width: 470px;
}

.apex-book-form-info > p {
    max-width: 480px;
}


/* =========================================
   CONTACT INFO
========================================= */

.apex-book-contact-list {
    display: grid;
    gap: 15px;
    margin-top: 35px;
}

.apex-book-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 17px 18px;
    border: 1px solid #eadfcf;
    border-radius: 12px;
    background: #ffffff;
}

.apex-book-contact-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5ead7;
}

.apex-book-contact-icon svg {
    width: 19px;
    height: 19px;
    fill: #073766;
}

.apex-book-contact-item strong {
    display: block;
    margin-bottom: 4px;
    color: #073766;
    font-size: 14px;
}

.apex-book-contact-item a,
.apex-book-contact-item span {
    color: #596574;
    font-size: 14px;
    line-height: 1.55;
}

.apex-book-contact-item a:hover {
    color: #f26100;
}


/* =========================================
   FORM BOX
========================================= */

.apex-book-form-box {
    width: 100%;
    padding: 38px;
    border: 1px solid #eee4d6;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(7, 55, 102, .08);
}


/* =========================================
   WPFORMS RESET
========================================= */

.apex-book-form-box .wpforms-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.apex-book-form-box .wpforms-form {
    width: 100% !important;
}

.apex-book-form-box .wpforms-field {
    padding: 0 0 20px !important;
}

.apex-book-form-box .wpforms-field-label {
    display: block !important;
    margin: 0 0 8px !important;
    color: #073766 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

.apex-book-form-box .wpforms-required-label {
    color: #f26100 !important;
}


/* =========================================
   NAME FIRST / LAST
========================================= */

.apex-book-form-box .wpforms-field-row {
    display: flex !important;
    gap: 16px !important;
    max-width: none !important;
}

.apex-book-form-box .wpforms-field-row-block {
    width: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.apex-book-form-box .wpforms-field-sublabel {
    margin-top: 6px !important;
    color: #8a9098 !important;
    font-size: 12px !important;
}


/* =========================================
   INPUTS
========================================= */

.apex-book-form-box input[type="text"],
.apex-book-form-box input[type="email"],
.apex-book-form-box input[type="tel"],
.apex-book-form-box input[type="number"],
.apex-book-form-box input[type="url"],
.apex-book-form-box input[type="date"],
.apex-book-form-box input[type="time"],
.apex-book-form-box select,
.apex-book-form-box textarea {
    width: 100% !important;
    max-width: none !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 11px 14px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 7px !important;
    outline: none !important;
    background: #ffffff !important;
    color: #17314f !important;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    box-shadow: none !important;
    transition:
        border-color .2s ease,
        box-shadow .2s ease !important;
}

.apex-book-form-box textarea {
    min-height: 130px !important;
    resize: vertical;
}

.apex-book-form-box input:focus,
.apex-book-form-box select:focus,
.apex-book-form-box textarea:focus {
    border-color: #c2964c !important;
    box-shadow: 0 0 0 3px rgba(194, 150, 76, .12) !important;
}


/* =========================================
   APPOINTMENT FOR CHECKBOXES
========================================= */

.apex-book-form-box .wpforms-field-checkbox {
    margin-top: 2px;
    padding: 18px 20px 20px !important;
    border: 1px solid #eadfcf;
    border-radius: 12px;
    background: #fbf7f0;
}

.apex-book-form-box
.wpforms-field-checkbox
.wpforms-field-label {
    margin-bottom: 13px !important;
}

.apex-book-form-box
.wpforms-field-checkbox
ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.apex-book-form-box
.wpforms-field-checkbox
li {
    margin: 0 !important;
    padding: 0 !important;
}

.apex-book-form-box
.wpforms-field-checkbox
label {
    color: #33475b !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer;
}

.apex-book-form-box input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    margin: 0 8px 0 0 !important;
    accent-color: #073766;
    vertical-align: middle;
}


/* =========================================
   SUBMIT BUTTON
========================================= */

.apex-book-form-box .wpforms-submit-container {
    margin-top: 5px !important;
    padding: 0 !important;
}

.apex-book-form-box button[type="submit"],
.apex-book-form-box .wpforms-submit {
    width: auto !important;
    min-width: 150px !important;
    min-height: 49px !important;
    margin: 0 !important;
    padding: 0 28px !important;

    border: 0 !important;
    border-radius: 30px !important;

    background: #f26100 !important;
    color: #ffffff !important;

    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;

    box-shadow: 0 9px 22px rgba(242, 97, 0, .17) !important;
    cursor: pointer !important;

    transition: all .25s ease !important;
}

.apex-book-form-box button[type="submit"]:hover,
.apex-book-form-box .wpforms-submit:hover {
    background: #d95500 !important;
    transform: translateY(-2px);
}


/* =========================================
   WPFORMS ERRORS
========================================= */

.apex-book-form-box
.wpforms-error-container {
    padding: 14px 16px !important;
    margin-bottom: 18px !important;
    border-radius: 8px !important;
}

.apex-book-form-box label.wpforms-error {
    margin-top: 6px !important;
    color: #c93535 !important;
    font-size: 12px !important;
}

.apex-book-form-box
input.wpforms-error,
.apex-book-form-box
select.wpforms-error,
.apex-book-form-box
textarea.wpforms-error {
    border-color: #c93535 !important;
}


/* =========================================
   WHAT HAPPENS NEXT
========================================= */

.apex-book-next {
    background: #ffffff;
}

.apex-book-heading {
    max-width: 760px;
    margin: 0 auto 45px;
}

.apex-book-heading > p {
    margin-left: auto;
    margin-right: auto;
}

.apex-book-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.apex-book-step {
    position: relative;
    padding: 35px 28px;
    text-align: center;
    border: 1px solid #eee5d9;
    border-radius: 16px;
    background: #ffffff;
    transition: all .25s ease;
}

.apex-book-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(7, 55, 102, .08);
}

.apex-book-step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #073766;
    color: #ffffff;

    font-size: 18px;
    font-weight: 800;
}

.apex-book-step p {
    margin-bottom: 0;
    font-size: 14px;
}


/* =========================================
   SUPPORT OPTIONS
========================================= */

.apex-book-support {
    background: #fbf7f0;
}

.apex-book-support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.apex-book-support-card {
    min-height: 170px;
    padding: 28px 25px;

    border: 1px solid #eadfcf;
    border-radius: 14px;
    background: #ffffff;

    transition: all .25s ease;
}

.apex-book-support-card:hover {
    transform: translateY(-5px);
    border-color: #c2964c;
    box-shadow: 0 14px 30px rgba(7, 55, 102, .07);
}

.apex-book-support-card h3 {
    transition: color .2s ease;
}

.apex-book-support-card:hover h3 {
    color: #c2964c;
}

.apex-book-support-card p {
    margin-bottom: 0;
    color: #596574;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================
   FINAL CTA
========================================= */

.apex-book-final-cta {
    width: 100%;
    padding: 65px 0;
    background: #073766;
}

.apex-book-final-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 50px;
}

.apex-book-final-cta .apex-book-label {
    color: #d7b36e;
}

.apex-book-final-cta h2 {
    margin-bottom: 12px;
    color: #ffffff;
}

.apex-book-final-cta p {
    max-width: 650px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .78);
}

.apex-book-final-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.apex-book-btn,
.apex-book-email-btn {
    min-height: 48px;
    padding: 0 23px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 30px;

    font-size: 14px;
    font-weight: 700;

    transition: all .25s ease;
}

.apex-book-btn {
    background: #f26100;
    color: #ffffff !important;
}

.apex-book-btn:hover {
    background: #db5700;
    transform: translateY(-2px);
}

.apex-book-email-btn {
    border: 1px solid rgba(255, 255, 255, .5);
    background: transparent;
    color: #ffffff !important;
}

.apex-book-email-btn:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #073766 !important;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 980px) {

    .apex-book-hero-grid {
        gap: 30px;
    }

    .apex-book-form-grid {
        grid-template-columns: .9fr 1.1fr;
        gap: 35px;
    }

    .apex-book-support-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apex-book-final-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .apex-book-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .apex-book-section {
        padding: 55px 0;
    }

    .apex-book-hero-grid,
    .apex-book-form-grid {
        grid-template-columns: 1fr;
    }

    .apex-book-hero-grid {
        min-height: 0;
    }

    .apex-book-hero-content {
        padding: 55px 0 20px;
        text-align: center;
    }

    .apex-book-page h1 {
        margin-left: auto;
        margin-right: auto;
        font-size: 40px;
    }

    .apex-book-hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .apex-book-hero-points {
        max-width: 430px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .apex-book-hero-image {
    position: relative;
    align-self: stretch;
    min-height: 570px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    background: #f4ecdd;
}

    .apex-book-form-info {
        padding-top: 0;
        text-align: center;
    }

    .apex-book-form-info h2,
    .apex-book-form-info > p {
        margin-left: auto;
        margin-right: auto;
    }

    .apex-book-contact-list {
        text-align: left;
    }

    .apex-book-form-box {
        padding: 28px 22px;
    }

    .apex-book-steps {
        grid-template-columns: 1fr;
    }

    .apex-book-support-grid {
        grid-template-columns: 1fr;
    }

    .apex-book-final-cta {
        padding: 55px 0;
        text-align: center;
    }

    .apex-book-final-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 520px) {

    .apex-book-page h1 {
        font-size: 35px;
    }

    .apex-book-page h2 {
        font-size: 29px;
    }

    .apex-book-form-box {
        padding: 24px 17px;
        border-radius: 16px;
    }

    .apex-book-form-box .wpforms-field-row {
        display: block !important;
    }

    .apex-book-form-box .wpforms-field-row-block {
        width: 100% !important;
        margin-bottom: 12px !important;
    }

    .apex-book-form-box
    .wpforms-field-checkbox
    ul {
        grid-template-columns: 1fr;
    }

    .apex-book-form-box button[type="submit"],
    .apex-book-form-box .wpforms-submit {
        width: 100% !important;
    }

    .apex-book-final-actions {
        flex-direction: column;
    }

    .apex-book-btn,
    .apex-book-email-btn {
        width: 100%;
    }
}
.apex-book-form-box .apex-option-selected {
    color: #073766 !important;
    font-weight: 700 !important;
}

.apex-book-support-card.apex-card-focus {
    outline: 2px solid #c2964c;
    outline-offset: 3px;
}

.apex-book-page img.apex-image-error {
    visibility: hidden;
}

.apex-book-form-box .apex-form-submitting {
    opacity: .8;
    cursor: wait !important;
}
@media (max-width: 767px) {

    .apex-book-hero-image {
        min-height: auto;
        width: 100%;
    }

    .apex-book-hero-image img {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

}
/* ==========================================================
   APEX BOOK APPOINTMENT - FINAL HERO IMAGE FIX
   Paste this at the VERY END of the CSS
========================================================== */

/* Desktop Hero */
.apex-book-hero .apex-book-hero-grid {
    min-height: 570px;
    align-items: stretch;
}

.apex-book-hero .apex-book-hero-image {
    position: relative !important;
    align-self: stretch !important;

    width: 100% !important;
    height: auto !important;
    min-height: 570px !important;

    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;

    overflow: hidden !important;

    background: #f4ecdd !important;
}

/* IMPORTANT:
   Full photo will be visible.
   No left/right cropping.
*/
.apex-book-hero .apex-book-hero-image img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: 100% !important;
    max-height: 570px !important;

    object-fit: contain !important;
    object-position: center bottom !important;

    margin: auto 0 0 !important;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 980px) and (min-width: 768px) {

    .apex-book-hero .apex-book-hero-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
        min-height: 520px !important;
    }

    .apex-book-hero .apex-book-hero-image {
        min-height: 520px !important;
    }

    .apex-book-hero .apex-book-hero-image img {
        width: 100% !important;
        height: 100% !important;
        max-height: 520px !important;

        object-fit: contain !important;
        object-position: center bottom !important;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .apex-book-hero .apex-book-hero-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;

        min-height: 0 !important;
        gap: 0 !important;
    }

    .apex-book-hero .apex-book-hero-content {
        padding: 55px 0 35px !important;
    }

    .apex-book-hero .apex-book-hero-image {
        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;

        display: block !important;

        overflow: visible !important;
        background: #f4ecdd !important;
    }

    .apex-book-hero .apex-book-hero-image img {
        display: block !important;

        width: 100% !important;
        height: auto !important;

        min-width: 0 !important;
        min-height: 0 !important;

        max-width: 100% !important;
        max-height: none !important;

        object-fit: contain !important;
        object-position: center center !important;

        margin: 0 auto !important;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 520px) {

    .apex-book-hero .apex-book-hero-image,
    .apex-book-hero .apex-book-hero-image img {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

}
/* =========================================
   APEX BOOKING HERO - PREMIUM FINAL LAYOUT
========================================= */

.apex-book-hero {
    background: #f4ecdd !important;
}

.apex-book-hero .apex-book-hero-grid {
    min-height: 600px !important;
    display: grid !important;
    grid-template-columns: 46% 54% !important;
    gap: 0 !important;
    align-items: stretch !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 1180px !important;
}

.apex-book-hero .apex-book-hero-content {
    align-self: center !important;
    padding: 55px 55px 55px 24px !important;
}

.apex-book-hero .apex-book-hero-content h1 {
    max-width: 520px !important;
    margin-bottom: 20px !important;
    font-size: clamp(46px, 4.6vw, 66px) !important;
    line-height: 1.02 !important;
}

.apex-book-hero .apex-book-hero-content > p {
    max-width: 520px !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin-bottom: 24px !important;
}

.apex-book-hero .apex-book-hero-points {
    margin-bottom: 28px !important;
}

.apex-book-hero .apex-book-hero-image {
    position: relative !important;
    width: 100% !important;
    min-height: 600px !important;
    height: 600px !important;
    overflow: hidden !important;
    display: block !important;
    background: transparent !important;
}

.apex-book-hero .apex-book-hero-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;

    object-fit: cover !important;
    object-position: 48% center !important;

    margin: 0 !important;
}

/* Soft blend between content and image */
.apex-book-hero .apex-book-hero-image::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 85px;
    z-index: 2;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        #f4ecdd 0%,
        rgba(244,236,221,.88) 25%,
        rgba(244,236,221,0) 100%
    );
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 980px) and (min-width: 768px) {

    .apex-book-hero .apex-book-hero-grid {
        grid-template-columns: 48% 52% !important;
        min-height: 540px !important;
    }

    .apex-book-hero .apex-book-hero-content {
        padding: 45px 30px 45px 20px !important;
    }

    .apex-book-hero .apex-book-hero-image {
        min-height: 540px !important;
        height: 540px !important;
    }

    .apex-book-hero .apex-book-hero-content h1 {
        font-size: 48px !important;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .apex-book-hero .apex-book-hero-grid {
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
    }

    .apex-book-hero .apex-book-hero-content {
        padding: 50px 18px 35px !important;
        text-align: center !important;
    }

    .apex-book-hero .apex-book-hero-content h1 {
        font-size: 38px !important;
        line-height: 1.06 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .apex-book-hero .apex-book-hero-content > p {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .apex-book-hero .apex-book-hero-points {
        max-width: 420px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: left !important;
    }

    .apex-book-hero .apex-book-hero-image {
        width: 100% !important;
        height: 370px !important;
        min-height: 370px !important;
    }

    .apex-book-hero .apex-book-hero-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .apex-book-hero .apex-book-hero-image::before {
        display: none !important;
    }
}