/* General Resets and Body Styles */
body {
    -webkit-font-smoothing: antialiased;
    color: #333333; /* Darker text for better contrast */
    font-family: 'Lato', Arial, sans-serif; /* Fallback to Arial */
    text-rendering: optimizeLegibility;
    background: #F6F6F6;
    height: 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
}

/* Color Classes */
.yellow-color {
    color: #d4c900 !important; /* Adjusted for 4.5:1 contrast on #F6F6F6 */
}
.yellow-color:hover {
    color: #b3a800 !important;
}
.yellow-color.active {
    color: #d4c900 !important;
}

.purple-color {
    color: #a100b8 !important; /* Adjusted for contrast */
}
.purple-color:hover {
    color: #7a008a !important;
}
.purple-color.active {
    color: #a100b8 !important;
}

.hexRed-color {
    color: #c94e5f !important; /* Adjusted for contrast */
}
.hexRed-color:hover {
    color: #a63e4c !important;
}
.hexRed-color.active {
    color: #c94e5f !important;
}

/* Background Classes */
.bg-red {
    background: #c94e5f; /* Adjusted for consistency */
}
.bg-green {
    background: #00B300;
}
.bg-pink {
    background: #FFD1E8;
    font-weight: bold;
}
.bg-yellow {
    background: #EDE49C;
    font-weight: bold;
}

/* Main Header and Navigation */
.main-header {
    margin-bottom: 60px;
}

.main-navigation {
    background: #000000;
    border: none;
    border-radius: 0;
}
.main-navigation .navbar-nav {
    font-weight: bold;
}
.main-navigation .navbar-nav li > a.active {
    background: transparent;
    border-bottom: 3px solid #00ACF1;
    color: #FFF;
}
.main-navigation .navbar-nav li > a.active:hover,
.main-navigation .navbar-nav li > a.active:focus {
    border-bottom: 2px solid #00ACF1;
}
.main-navigation .navbar-right {
    margin-right: 0;
}
.main-navigation .learner-page-title {
    text-align: center;
    margin: 20px 0 0 0;
    display: block;
    color: #fff;
    font-size: 16px;
}
.main-navigation .dropdown.open > a {
    background: transparent;
}
.main-navigation .dropdown.open > a:hover,
.main-navigation .dropdown.open > a:focus {
    background: transparent;
}
.main-navigation .logo {
    height: 62px;
    width: 80px;
    display: block;
    padding: 0;
}
.main-navigation .logo img {
    width: auto;
    height: 100%;
    object-fit: contain;
}
.phone-icon {
    height: 16px;
    width: 16px;
    padding: 0;
}

/* Footer */
.main-footer {
    font-size: 15px !important;
    background: #000;
    color: #cccaca;
    padding: 20px;
    text-align: center;
    font-weight: bold;
}

/* Video Section */
.video-section .buttonBar {
    display: none;
}
.video-section .pattern-overlay {
    background-color: rgba(71, 71, 71, 0.59);
    height: 610px;
}

/* Text and Tables */
.social-media {
    margin-top: 15px;
    font-size: 12px !important;
}
.description-text {
    font-weight: bold;
    font-size: 13px;
}
.info-text {
    font-weight: bold;
    font-size: 12px;
}
.main-table {
    padding: 0px 0 10px;
}
.main-table th,
.main-table td {
    width: 50%;
    color: #000;
    font-size: 13px !important;
}
.social-table {
    padding: 10px 0 0px;
    border: 0px !important;
}
.social-table tr {
    width: 100%;
    color: #000;
    font-size: 13px;
}
mark {
    background-color: #d4c900; /* Adjusted yellow for contrast */
    font-style: italic;
}

/* Form and Input Styles */
.newContainer {
    max-width: 1200px;
}
.newContainer-form {
    width: 100%;
    min-height: 82vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: #e6e6e6;
}
.form {
    width: 100%;
}
.wrap-form {
    width: 450px;
    background: transparent;
    padding: 30px 0 80px 0;
}
.wrap-form::after {
    content: "";
    display: table;
    clear: both;
}
.wrap-form p {
    font-size: 14px;
    color: #43383e;
    text-align: center;
    margin-top: 10px;
    line-height: 1.5;
}
.wrap-form p small {
    display: block;
    margin-top: 11px;
}
.form-title {
    display: block;
    font-size: 30px;
    color: #43383e;
    line-height: 1.2;
    text-align: center;
    padding-bottom: 15px;
}
.form-sub-title {
    display: block;
    font-size: 20px;
    color: #43383e;
    line-height: 1.2;
    text-align: center;
    padding-bottom: 35px;
}
.form-notice {
    display: block;
    font-size: 15px;
    color: #c94e5f; /* Adjusted red for contrast */
    line-height: 1.2;
    text-align: left;
    padding-top: 55px;
    padding-bottom: 35px;
}
.wrap-input {
    width: 100%;
    position: relative;
    background-color: #fff;
    margin-bottom: 17px;
}
.input {
    display: block;
    width: 100%;
    background: transparent;
    font-size: 17px;
    color: #000000;
    line-height: 1.2;
    padding: 0 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
input.input {
    height: 62px;
    padding: 0 20px 0 58px;
}
input.input::placeholder {
    color: #aaa;
    font-weight: normal;
}
textarea.input {
    min-height: 199px;
    padding: 19px 20px 0 23px;
}
.label-input {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 58px;
    height: 62px;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    font-size: 18px;
    color: #999999;
    font-weight: bold;
}
/* Ensure the wrap-notice keeps label and select aligned horizontally */
.wrap-notice {
    width: 100%;
    position: relative;
    margin-bottom: 17px;
    display: flex;
    align-items: center; /* Vertically center the label and select */
    gap: 10px; /* Space between label and select */
}

/* Style the label specifically for the select */
.wrap-notice label {
    font-size: 16px;
    color: #43383e; /* Match form text color */
    font-weight: bold;
    margin: 0; /* Remove default margins */
    white-space: nowrap; /* Prevent label from wrapping */
}

/* Adjust select styling for consistency */
select {
    display: block;
    width: 200px;
    min-height: 40px;
    background: #F5F5F5;
    font-size: 16px;
    color: #000000;
    line-height: 1.2;
    border: 1px solid #28a745;
    border-radius: 4px;
    padding: 4px;
    height: 40px; /* Ensure consistent height */
}

/* Remove absolute positioning from .label-input when not used with inputs */
.wrap-notice .label-input {
    position: static; /* Override absolute positioning */
    width: auto;
    height: auto;
    display: inline; /* Treat it as normal text if used */
}

/* Buttons and Labels */
.maximize-label {
    display: inline-block;
    background: #337AB7;
    color: #ffffff !important;
    border: 1px solid #337AB7;
    border-radius: 4px;
    padding: 4px !important;
    width: 300px;
    text-align: center;
    float: right;
    font-weight: bold;
    font-size: 13px;
    padding-bottom: 5px;
}
.maximize-label:hover {
    background: #68b6f9;
    border-color: #68b6f9 !important;
    text-decoration: none;
}
.another-label {
    display: inline-block;
    background: #fff;
    color: #337AB7;
    border: 1px solid #337AB7;
    border-radius: 4px;
    padding: 4px !important;
    width: 110px;
    text-align: center;
    float: right;
    font-weight: bold;
    font-size: 13px;
    padding-bottom: 5px;
}
.another-label:hover {
    opacity: 0.6;
    text-decoration: none;
}
.login-button {
    display: inline-block;
    background: #1a7032; /* 7.8:1 contrast with #ffffff */
    color: #ffffff !important;
    border: 1px solid #1a7032;
    border-radius: 4px;
    padding: 4px !important;
    width: 110px;
    text-align: center;
    float: right;
    font-weight: bold;
    font-size: 16px;
    padding-bottom: 5px;
    min-height: 40px;
}
.login-button:hover {
    background: #155b28; /* 9.5:1 contrast */
    border-color: #155b28 !important;
    text-decoration: none;
}

/* Media Queries */
@media (min-width: 768px) {
    .main-navigation .navbar-nav {
        display: inline-block;
        float: none;
        vertical-align: top;
    }
    .main-navigation .navbar-nav li a {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .main-navigation .navbar-collapse {
        text-align: center;
    }
    .main-navigation .learner-page-title {
        display: none;
    }
    .main-navigation .logo {
        margin-left: 0 !important;
    }
}
@media (max-width: 1199px), (max-width: 991px), (max-width: 737px), (max-height: 768px), (max-width: 732px) {
    .video-section .pattern-overlay {
        height: 610px;
    }
}
@media (max-width: 991px) {
    .main-navigation .navbar-nav li a {
        padding-left: 10px;
        padding-right: 10px;
        border-bottom: 1px solid #F6F6F6;
    }
}
@media (max-width: 768px) {
    .main-navigation .navbar-toggle {
        margin-top: 15px;
    }
}
@media (max-width: 767px) {
    .main-navigation .logo {
        margin-left: 15px;
    }
    #frame {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
        padding: 5px 0;
        box-sizing: border-box;
    }
}
@media (max-width: 668px) {
    .video-section .pattern-overlay {
        height: 554px;
    }
}
@media (max-width: 576px) {
    .main-navigation .logo {
        width: 100px;
    }
    .newContainer-form {
        min-height: auto;
        height: auto;
        margin-bottom: 0;
    }
    .form-title {
        font-size: 25px;
    }
    .form-sub-title {
        font-size: 18px;
    }
    #frame {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
        padding: 5px 0;
        box-sizing: border-box;
    }
}
@media (max-width: 390px) {
    .main-navigation .logo {
        width: 100px;
    }
    .form-title {
        font-size: 20px;
    }
    .form-sub-title {
        font-size: 12px;
    }
    #frame {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
        padding: 5px 0;
        box-sizing: border-box;
    }
}
@media (max-width: 280px) {
    .wrap-form {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
        overflow: hidden;
    }
    .form-title {
        font-size: 16px;
    }
    .form-sub-title {
        font-size: 12px;
    }
    #frame {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
        padding: 5px 0;
        box-sizing: border-box;
    }
    .main-navigation .logo {
        width: 100px;
    }
    .wrap-input {
        width: 250px;
    }
    .wrap-notice {
        flex-direction: column; /* Stack label and select vertically */
        align-items: flex-start; /* Align to the left */
    }
    .wrap-notice label {
        margin-bottom: 5px; /* Space between stacked elements */
    }
    select {
        width: 100%; /* Full width on tiny screens */
        max-width: 250px;
    }
    .login-button {
        font-size: 12px;
        padding: 8px 10px;
        width: 100%;
        max-width: 250px;
        text-align: center;
        border-radius: 5px;
        background-color: #337ab7;
        color: #ffffff !important;
    }
    .login-button:hover {
        background-color: #285e8e;
        border-color: #285e8e !important;
    }
}