/* ================================
   GLOBAL BACKGROUND + FONT
   ================================ */
body {
    background-color: #172a53 !important;
    font-family: 'Segoe UI', Arial, sans-serif;
    padding-top: 0 !important;
    margin: 0 !important;
}



/* ================================
   REMOVE DEFAULT POWER PAGES NAVBAR
   ================================ */
.navbar,
.navbar-default,
.navbar-dark,
.navbar-static-top,
.navbar-fixed-top {
    display: none !important;
}



/* ================================
   HEADER LOGO (Centered)
   ================================ */
.header-area {
    width: 100% !important;
    text-align: center !important;
    padding-top: 40px !important;
    padding-bottom: 10px !important;
}

.header-area img {
    max-height: 90px !important;
    width: auto !important;
    display: inline-block !important;
}



/* ================================
   TITLE + INTRO SECTION (White text)
   ================================ */
.content-area {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 30px 20px !important;
}

.page-title,
.content-area h2.page-title {
    color: #ffffff !important;
    font-size: 32px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    text-align: left !important;
}

.intro-text,
.content-area p.intro-text {
    color: #ffffff !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
    margin-bottom: 30px !important;
    text-align: left !important;
}



/* ================================
   WHITE FORM BOX (ONLY AROUND INPUTS)
   ================================ */
.form-wrapper {
    max-width: 1100px !important;
    margin: 20px auto 60px auto !important;
    background: #ffffff !important;
    padding: 50px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12) !important;
}



/* ================================
   FORM INPUTS STYLING
   ================================ */
.crmEntityFormView .cell,
.cell {
    margin-bottom: 22px !important;
}

input.form-control,
select.form-control,
textarea.form-control {
    border-radius: 6px !important;
    border: 1px solid #ccc !important;
    padding: 12px !important;
    background: #ffffff !important;
}



/* ================================
   LABELS
   ================================ */
.control-label,
.crmEntityFormView label {
    font-weight: 600 !important;
    color: #000000 !important;
}



/* ================================
   SUBMIT BUTTON
   ================================ */
button[type="submit"],
.btn-primary {
    background-color: #172a53 !important;
    border-color: #172a53 !important;
    padding: 12px 28px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
    color: #ffffff !important;
}

button[type="submit"]:hover,
.btn-primary:hover {
    background-color: #1f3c78 !important;
    border-color: #1f3c78 !important;
}



/* ================================
   RESPONSIVE FIXES
   ================================ */
@media (max-width: 768px) {

    .header-area img {
        max-height: 60px !important;
    }

    .form-wrapper {
        padding: 25px !important;
        max-width: 95% !important;
    }

    .content-area {
        padding: 20px !important;
    }
/* === FINAL WORKING FIX FOR LOOKUP BUTTON === */
.btn.btn-default.launchentitylookup {
    background-color: #1C60DF !important; /* blue */
    border-color: #1C60DF !important;
    color: #ffffff !important;
}

/* icon inside lookup button */
.btn.btn-default.launchentitylookup .fa,
.btn.btn-default.launchentitylookup .glyphicon {
    color: #ffffff !important;
}

/* keep it blue on hover/focus */
.btn.btn-default.launchentitylookup:hover,
.btn.btn-default.launchentitylookup:focus,
.btn.btn-default.launchentitylookup:active {
    background-color: #1C60DF !important;
    border-color: #1C60DF !important;
    color: #ffffff !important;
}

/* align input + button */
.crmEntityFormView .input-group .form-control {
    border-right: 0 !important;
    box-shadow: none !important;
}

/* stop big white input box from sourcing hover borders */
input.form-control:hover,
input.form-control:focus {
    border-color: #ccc !important;
    box-shadow: none !important;
}
}