﻿/* Base Styles */
body, html {
    font-size: 16px !important;
    font-family: "Open Sans", sans-serif;
    overflow-x: hidden; /* Prevent horizontal scroll */
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
header,
header.slim-header {
    margin: 0 auto;
}

/* Notification Bar */
.notification-bar {
    display: none;
    color: #fff;
    margin-bottom: 20px;
    padding: 5px 10px;
}

/* Grid / Layout Container */
.grid-container {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    padding: 8px 10px;
    box-sizing: border-box;
}

    .grid-container a {
        color: #fff;
    }

    .grid-container p {
        margin-bottom: 0;
    }

    .grid-container img {
        padding-left: 0;
        max-width: 100%;
        height: auto;
    }

/* Login Box */
.login {
    width: 100%;
    max-width: 470px;
    margin: 30px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(0,0,0,0.15);
    box-sizing: border-box;
}

fieldset legend {
    font-size: 1.5em;
}

.login fieldset .btn {
    width: 135px;
}

.login-footer div,
.twofa-login div {
    margin-top: 20px;
}

/* Modal Header */
.modal-header {
    padding: 8px 10px !important;
    color: #fff !important;
    border-bottom: 1px solid #e5e5e5 !important;
    font-size: 1.2em !important;
    background-color: #363940 !important;
}

    .modal-header .close {
        margin: 2px 7px 0 0 !important;
        color: #fff !important;
        opacity: 1;
    }

.grid-container a {
    cursor: pointer;
}
/* Popover Notification */
.popover-notification {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #5f895f;
    color: #fff;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.24);
    z-index: 1000;
    font-size: 14px;
    max-width: 90%; /* Make responsive */
    word-wrap: break-word;
}

.popover-message {
    margin-right: 10px;
}

.popover-close {
    cursor: pointer;
    font-weight: bold;
    position: absolute;
    top: 4px;
    right: 9px;
}

/* Notification Box */
.notification-parent {
    display: none;
    width: 90%; /* Responsive */
    max-width: 470px;
    padding: 4px 10px;
    margin: 20px auto 0;
    text-align: center;
    border: 2px solid black;
    border-radius: 9px;
    box-sizing: border-box;
}

/* Alerts */
.error {
    color: red;
}

.success {
    color: green;
}

/* Loading Mask */
.k-loading-mask {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    z-index: 99999999;
}

/* Footer */
.page-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    font-size: 12px !important;
    padding: 12px 16px;
    box-sizing: border-box;
    height: auto; /* allow dynamic height */
    min-height: 37px; /* optional: ensure a minimum height */
}

    .page-footer .footer {
        max-width: 1200px;
        margin: 0 auto;
    }

    .page-footer a {
        color: #fff;
        margin-right: 12px;
        text-decoration: none;
    }

        .page-footer a:last-child {
            margin-right: 0;
        }

.footer-links a {
    padding: 0 .5rem;
    text-decoration: none;
    display: inline-block; /* default horizontal */
    margin-right: 12px;
    cursor: pointer;
}

    .footer-links a:last-child {
        margin-right: 0;
    }

/* Collapsible / Expandable */
.collapsible {
    cursor: pointer;
}

.content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease-out;
}

/* Required Field */
i.required:after,
span.required:after {
    content: "*";
    color: #D32F2F;
    margin-left: 3px;
    font-size: 18px;
    position: absolute;
}

/* Input Styles */
[type='tel'] {
    height: 2.1rem;
}

.iti {
    width: 100% !important;
}

.iti__country-list {
    max-height: 200px;
    overflow-y: auto;
}

.iti__flag-container + input {
    color: #404040;
    border: 1px solid #ccc;
    padding: 8px 0;
}

.k-dropdown-wrap .k-input {
    line-height: 1.9em !important;
}

#loginForm a {
    cursor: pointer;
}
/* Labels */
label {
    display: block;
    font-size: .875rem;
    font-weight: 700 !important;
    color: #0a0a0a;
    line-height: 1.8;
}

#frmLogin .danger {
    color: red;
    margin: -16px 0 5px -1px;
}
/* Disabled Buttons */
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Space between username and password */
#UserName,
#Password {
    margin-bottom: 1.5rem;
}

.m-10 {
    margin: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-25 {
    margin-top: 25px;
}

.ml-16 {
    margin-left: 16px;
}

.me-5 {
    margin-right: 5px;
}

.me-10 {
    margin-right: 10px;
}

.mb-10 {
    margin-bottom: 10px;
}

#help-window .modal-dialog {
    margin-top: 8vh !important; /* push it down */
}

.flex-end-mt10 {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.confirm-email-modal-title {
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
    font-style: normal;
    text-rendering: optimizeLegibility;
    padding-bottom: 10px;
    color: #000;
    font-size: 1.5625rem;
    line-height: 1.4;
}

.confirm-email-modal-message {
    color: #6c757d !important;
    padding-bottom: 1.5rem !important;
    font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-size: 0.875rem;
}

.confirm-email-buttons-section {
    max-width: 250px;
    margin: 0 auto;
    padding-bottom: 15px;
}

    .confirm-email-buttons-section button {
        display: block;
        margin: 0 auto;
        margin-bottom: 10px;
    }

    .confirm-email-buttons-section a {
        cursor: pointer;
    }
/* Media Queries */
@media (max-width: 915px) and (orientation: landscape) {
    .grid-container {
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .row, .columns, .large-12.columns {
        width: 100% !important;
        margin: 0 auto !important;
    }

    .login-footer {
        padding-top: 25px;
    }

    #pgeAccount-Login {
        padding-bottom: 50px;
    }
}

@media (max-width: 767px) {

    .page-footer .footer .row, .page-footer .footer .row .footer-links {
        text-align: center;
    }

    #help-window .modal-dialog {
        width: 95% !important;
        margin: 20vh auto !important; /* center on small screens */
        top: 0px !important;
    }

    .modal-dialog {
        margin: 0 auto !important;
        position: relative !important;
        top: 50% !important;
        transform: translateY(-50%) !important; /* vertically center */
        width: 90% !important; /* keep good spacing */
        max-width: 90% !important;
    }

    .modal-content {
        border-radius: 8px;
        margin-top: 10vh;
    }
}

@media (max-width: 667px) {
    .grid-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .footer-links a {
        display: block;
        margin: 6px 0;
    }
}

@media (max-width: 576px) {
    .footer-links a {
        display: block;
        margin: 6px 0;
    }
}

@media (max-width: 493px) {
    .page-footer {
        position: static;
    }

    .password-message-container {
        max-width: 84%;
    }
}

@media (max-width: 400px) {
    .login {
        width: 84%;
    }
}
