/* 
 * PROFESSIONALS PAGE STYLES
 */

.pro-page-wrapper {
    background-color: #0d2c38;
    /* Uses theme dark teal base */
    color: #fff;
    padding-bottom: 80px;
}

.bg-dark {
    background-color: #0d2c38;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 25px;
    font-weight: 500;
    color: #fff;
}

.section-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5d8;
    margin-bottom: 20px;
}

.btn-orange {
    background-color: #FF5E1E;
    /* Primary orange */
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: background 0.3s;
}

.btn-orange:hover {
    background-color: #e5531a;
    color: #fff;
}


/* SECTION 1: HERO */
.pro-hero {
    background-color: #042E3D;
    background-size: cover;
    background-position: center center;
    padding: 180px 20px 100px;
    position: relative;
}

.pro-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* COMMON GRID LAYOUT (used in Enhancing Care and Partner with us) */
.pro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Text col is slightly wider in design */
    gap: 60px;
    align-items: center;
}

.pro-text-col,
.pro-image-col {
    width: 100%;
}

.rounded-img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.with-credit .credit-text {
    position: absolute;
    bottom: 15px;
    right: 20px;
    color: #fff;
    font-size: 0.8rem;
    text-align: right;
    line-height: 1.3;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* SECTION PADDINGS */
.pro-enhancing {
    padding: 100px 0 50px;
}

.pro-partner {
    padding: 80px 0 100px;
}

.pro-contact {
    padding: 100px 0 120px;
    position: relative;
}


.pro-contact .field-wrap textarea {
    height: auto;
}


/* =========================================================================
   RESPONSIVE DESIGN
   ========================================================================= */
@media (max-width: 991px) {
    .pro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pro-hero .hero-title {
        font-size: 2.5rem;
    }

}

/* =========================================================================
   CONTACT OVERLAP AND FORM STYLES
   ========================================================================= */

.pro-contact-grid {
    display: flex;
    /* flex layout since we only have the left column in the grid now */
    align-items: center;
}

/* Form container */
.form-white-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px 40px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #1a1a1a;
    width: 100%;
    max-width: 650px;
    margin-right: -100px;
    /* Pulls form over the image */
    position: relative;
    z-index: 2;
    /* Sits on top */
}

/* Titles */
.contact-title {
    font-weight: 800;
    font-size: 2.2rem;
    color: #042E3D;
    margin-bottom: 20px;
}

.contact-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}

/* Right col image wrapper */
.contact-image-col {
    position: absolute;
    right: 0;
    top: -50px;
    /* Offset it higher than the container slightly */
    height: calc(100% + 100px);
    /* Overshoot the form height to preserve ratio */
    width: 75%;
    /* Take up just over half the container width */
    z-index: 1;
    /* Sits underneath the white box relative index */
}

.contact-img {
    height: 100%;
    object-fit: cover;
    width: 100%;
    border-radius: 12px;
    /* Restore unified rounding since it no longer mounts against the viewport edge */
}

/* Ninja Forms Overrides */
.form-white-box .nf-field-label label {
    font-weight: 700 !important;
    color: #042E3D !important;
}

.form-white-box .nf-form-fields-required {
    padding: 0 0 10px 0;
    font-size: 12px;
}

.form-white-box input[type="text"],
.form-white-box input[type="email"],
.form-white-box input[type="tel"],
.form-white-box select,
.form-white-box textarea {
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    padding: 12px 15px !important;
    background-color: #fff !important;
}

.form-white-box input[type="button"],
.form-white-box input[type="submit"] {
    background-color: #FF5E1E !important;
    color: #fff !important;
    padding: 15px 30px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}

.form-white-box input[type="button"]:hover,
.form-white-box input[type="submit"]:hover {
    background-color: #e5531a !important;
}

/* Responsive adjustment */
@media (max-width: 991px) {
    .pro-contact-grid {
        gap: 40px;
    }

    .form-white-box {
        margin-right: 0;
        padding: 40px 30px;
    }

    .contact-image-col {
        position: relative;
        top: 0;
        width: 100%;
        height: 300px;
        margin-top: 30px;
    }
}