/* ==========================================================================
   Campaign Partner Admin — Global Styles
   Ported from Campaign.master and page-level <style> blocks
   ========================================================================== */

/* ---------- Reset & Base ---------- */
body, html {
    margin: 0;
    padding: 0;
    font-family: canada-type-gibson, sans-serif;
    font-style: normal;
    color: #4e5457;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    transition: all .2s;
    color: #1d6daf;
    text-decoration: none;
}
a:hover { color: #2E91DA; }

/* ---------- Header ---------- */
header {
    position: fixed;
    top: 0;
    z-index: 999;
    color: #fff;
    width: 100%;
    font-family: canada-type-gibson, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
    margin-bottom: 0 !important;
    background-color: #1c53a3;
    height: 80px;
}
header img { margin-right: auto; }

.scrolled {
    background-color: #153d77;
    transition: all .1s;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
}

#top-wrap { background-color: #1c53a3; }

#int-header {
    max-width: 1280px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* ---------- Nav ---------- */
header ul { list-style: none; padding-left: 0; }
header ul li { display: inline-block; margin-right: 20px; }
header a { text-decoration: none; }
nav ul li a { color: #fff; }
nav ul li a:hover {
    text-decoration: underline;
    color: #fff;
    text-underline-offset: 10px;
    text-decoration-thickness: 2px !important;
}

.nav-highlight {
    border-radius: 9999px;
    border-width: 2px;
    color: #203a45;
    background-color: #FBD445;
    border-color: #FBD445;
    padding: 0.75rem 2rem 0.5rem;
    line-height: 1em;
}
.nav-highlight:hover { text-decoration: none !important; background-color: #57AD47; color: #203a45; }

/* ---------- Main Content Area ---------- */
main {
    margin-top: 80px;
    min-height: calc(100vh - 300px);
}

/* ---------- Layout Helpers ---------- */
.row { display: flex; flex-direction: row; width: 100%; }
.column { display: flex; }
.int-column { width: 100%; padding: 2em; font-size:17px;}

/* ---------- Footer ---------- */
footer { background-color: #2e91da; width: 100%; margin: 0 auto; }

#int-footer {
    margin: 0 auto;
    max-width: 1280px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5em 20px;
}
#int-footer ul { list-style: none; padding-left: 0; }
#int-footer ul li { padding: 0.35rem 0; }
#int-footer ul li a {
    color: #fff;
    padding: 0.35rem 0;
    text-decoration: none;
    font-size: 1.125rem;
}
#int-footer ul li a:hover { color: #1c53a3; }

#sub-footer {
    font-size: .8em;
    text-align: center;
    margin: 30px auto 20px;
    color: #717679;
}

/* ---------- Mobile Overlay Menu ---------- */
.menu-open-button { display: none; }

.overlay {
    background-color: #2E91DA;
    display: none;
    text-align: center;
    position: fixed;
    top: 0;
    height: 100%;
    width: 100%;
    overflow: auto;
    z-index: 9999999;
}
.overlay-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3em;
}
.overlay-menu {
    margin-top: 30px !important;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-transform: uppercase !important;
}
.overlay-menu li { flex-grow: 1; margin-bottom: 2.2rem; }
.overlay-menu li a { color: #fff; font-size: 1.3rem; text-decoration: none; }
.overlay-close { color: #fff; font-size: 2rem; cursor: pointer; }
#top-close { text-align: right; padding: 20px; }
#close-overlay { font-size: 1rem; }
#campaignpartner-logo-mobile { max-width: 200px; margin: 20px auto; }

/* ---------- Form Styles (Login, Password pages) ---------- */
.form-group { margin-bottom: 8px; }
.form-unit { }

.form-field {
    width: 100%;
    height: 40px;
    font-size: 16px;
    color: #333;
    font-family: 'Open Sans', Helvetica, Arial, Verdana, sans-serif;
    padding: 4px 8px;
    border: 1px solid #C3CBD3;
    border-radius: 3px;
    box-sizing: border-box;
    margin: 0;
}
.form-field:focus { border-color: #7EB4EA; outline: none; }

.field-label {
    display: block;
    margin-bottom: 0;
    color: #2074B3;
}

.save-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: 'Open Sans', Helvetica, sans-serif;
    font-weight: 600;
    background-color: #1c53a3;
    color: #fff;
    padding: 12px 18px 13px;
    font-size: 15px;
    line-height: 20px;
    border: medium none;
    border-radius: 3px;
    box-shadow: 0px 2px 2px rgba(0,0,0,0.1);
    margin: 15px auto;
    width: 100%;
    display: block;
    cursor: pointer;
    box-sizing: border-box;
}
.save-button:hover {
    transition: all 0.25s ease 0s;
    background-color: #5dade2;
}
.save-button:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* ---------- Error / Status Messages ---------- */
.error-text { color: #ff0000; font-size: 14px; }

.error-message.locked-message {
    background-color: #FFF3CD;
    border: 1px solid #FFEEBA;
    border-radius: 4px;
    padding: 15px;
    color: #856404;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

.success-message {
    background-color: #D4EDDA;
    border: 1px solid #C3E6CB;
    border-radius: 4px;
    padding: 15px;
    color: #155724;
    text-align: center;
    font-size: 14px;
}

/* ---------- Login Page ---------- */
.login-wrapper {
    max-width: 900px;
    margin: 20px auto auto;
    display: flex;
    flex-direction: row;
    width: 100%;
}
.login-form-column {
    flex: 60%;
    display: flex;
    flex-wrap: wrap;
}
.login-sidebar-column {
    flex: 40%;
    display: flex;
    flex-wrap: wrap;
}

/* ---------- Password Reset Pages ---------- */
.password-card {
    margin: 20px auto;
    max-width: 600px;
    padding: 3rem;
    box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset,
                rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
                rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}
.password-card h1 {
    color: #2e91da;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1em;
    margin-top: 0;
}

.feature-wrapper {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    font-size: 1.2em;
    line-height: 2.1rem;
    font-weight: 300;
    color: #4e5457;
    padding-top:20px;
}

.blocked-notice {
    margin: 30px;
    font-size: 1.1em;
}

/* ---------- Validation ---------- */
.field-validation-error { color: #ff0000; font-size: 14px; }
.validation-summary-errors { color: #ff0000; font-size: 14px; }
.input-validation-error { border-color: #ff0000 !important; }

/* ---------- Responsive ---------- */
@media only screen and (max-width: 800px) {
    .login-wrapper { flex-flow: column wrap; }
    .login-form-column { order: 1; }
    .login-form-column .int-column { padding-bottom: 0; }
    .login-sidebar-column { order: 2; }
    .login-sidebar-column .int-column { padding-top: 0; margin-top: 0; text-align: center; }

    nav { display: none; }
    .menu-open-button { display: block; }
    .menu-open-button a { color: #fff; font-size: 1.8rem; text-decoration: none; }

    #int-footer { flex-direction: column; text-align: center; gap: 2em; padding: 3em 20px; }

    h1 { font-size: 1.3em !important; }
    h3 { font-size: 1.3em !important; }

    .password-card { padding: 1.5rem; margin: 10px; }
}

@media only screen and (max-width: 500px) {
    #int-header { padding: 0 15px; }
    #campaignpartner-logo { max-width: 180px; }
}
