/* =========================================
   MOODLE SAFE CONTACT PAGE
   Medical Rehab Theme (FINAL VERSION)
========================================= */

/* SAFE RESET (ONLY THIS PAGE) */
.contact-page-wrapper *{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* MAIN WRAPPER */
.contact-page-wrapper{
    max-width:1200px;
    margin:10px auto 40px auto;
    padding:20px;
    position:relative;
}

/* =========================================
   HIDE MOODLE TOP PAGE TITLE (IMPORTANT)
========================================= */

body#page-local-staticpage-view #page-header h1,
body#page-local-staticpage-view .page-header-headings h1{
    display:none !important;
}

/* =========================================
   MOODLE LAYOUT FIXES
========================================= */

body.pagelayout-standard #page,
body.pagelayout-incourse #page{
    padding-top:0 !important;
    margin-top:0 !important;
}

#page{
    padding-top:0 !important;
    margin-top:0 !important;
}

#page-wrapper{
    padding-top:0 !important;
    margin-top:0 !important;
}

#page-header{
    margin-bottom:0 !important;
    padding-bottom:0 !important;
}

#page-content{
    padding-top:0 !important;
}

#region-main{
    padding-top:0 !important;
    margin-top:0 !important;
}

/* =========================================
   TITLE SECTION
========================================= */

.contact-page-title{

    background:#2c6e73;

    color:#fff;

    text-align:center;

    padding:45px 20px;

    border-radius:10px 10px 0 0;

    margin-bottom:0;
}

.contact-page-title h1{

    font-size:42px;

    margin-bottom:12px;

    color:#fff;

    font-weight:700;
}

.contact-page-title p{

    font-size:18px;

    color:#d7f1f3;

    margin:0;

    letter-spacing:0.5px;
}

/* =========================================
   MAIN CONTACT BOX
========================================= */

.contact-parent{

    background:#fff;

    display:flex;

    flex-wrap:wrap;

    border-radius:0 0 10px 10px;

    overflow:hidden;

    box-shadow:0px 0px 20px rgba(0,0,0,0.12);
}

/* PANELS */
.contact-child{

    flex:1 1 500px;

    padding:50px;
}

/* =========================================
   LEFT PANEL (IMAGE SIDE)
========================================= */

.child1{

    background:
    linear-gradient(
        rgba(0,0,0,0.68),
        rgba(0,0,0,0.68)
    ),
    url("https://www.umsaz.org/wp-content/uploads/2023/06/Medical_Technology_-_MedTech_Market_-_Healthcare-scaled.jpg");

    background-size:cover;

    background-position:center;

    color:#fff;

    display:flex;

    flex-direction:column;

    justify-content:space-around;
}

.child1 p{

    margin-bottom:40px;

    line-height:30px;

    font-size:18px;
}

.child1 i{

    font-size:30px;

    margin-bottom:12px;

    color:#85e0e0;
}

/* =========================================
   RIGHT PANEL (FORM SIDE)
========================================= */

.child2{
    background:#fff;
}

.inside-contact{
    width:100%;
}

.inside-contact h2{

    text-align:center;

    margin-bottom:30px;

    color:#2c6e73;

    font-weight:700;

    letter-spacing:1px;
}

.inside-contact label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

    color:#333;
}

.inside-contact input,
.inside-contact textarea{

    width:100%;

    padding:14px;

    margin-bottom:20px;

    border:1px solid #cfd8dc;

    border-radius:6px;

    background:#f7f9fa;

    font-size:15px;

    transition:0.2s;
}

.inside-contact input:focus,
.inside-contact textarea:focus{

    outline:none;

    border-color:#2c6e73;

    background:#fff;

    box-shadow:0 0 6px rgba(44,110,115,0.2);
}

.inside-contact textarea{
    resize:vertical;
}

.inside-contact input[type=submit]{

    background:#2c6e73;

    color:#fff;

    border:none;

    cursor:pointer;

    font-weight:700;

    transition:0.3s;
}

.inside-contact input[type=submit]:hover{
    background:#1f5458;
}

#confirm{
    color:green;
    font-weight:bold;
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media screen and (max-width:991px){

    .contact-parent{
        flex-direction:column;
    }

    .contact-child{
        padding:30px;
    }

    .contact-page-wrapper{
        margin:10px auto 40px auto;
    }
}