:root {
    --primary-color: #009FE3;
    --hover-color: #007bb0;
    --text-dark: #333;
    --font-main: 'Montserrat', sans-serif;
    --banner-height: 220px; 
}

html, body, #wrapwrap, main, .o_main_content, .wrap, #wrap {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    background-color: #fff !important;
    overflow-x: hidden;
    max-width: 100% !important;
    box-shadow: none !important;
}

body.o_connected_user { padding-top: 0 !important; }

header, nav.navbar, 
.navbar-static-top, .o_survey_header, 
p.float-right, .page-header .float-right {
    display: none !important;
    height: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

.embention-header {
    background-color: #050a10;
    background-image: var(--bg-header);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute !important; 
    top: 0; left: 0;
    width: 100%;
    height: var(--banner-height);
    z-index: 1000; 
    display: flex;
    justify-content: center;
    padding: 20px 0; 
    margin: 0;
}

#oe_main_menu_navbar, .o_main_navbar {
    display: flex !important; 
    position: absolute !important;
    top: var(--banner-height) !important; 
    left: 0;
    width: 100%;
    background-color: var(--primary-color) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1010; 
    min-height: 46px;
}

.dropdown-menu, 
.o_main_navbar .dropdown-menu,
#oe_main_menu_navbar .dropdown-menu {
    top: 100% !important; 
    margin-top: 0px !important; 
    border-top: none !important;
    border-radius: 0 0 4px 4px;
    max-height: calc(100vh - 280px); 
    overflow-y: auto;
    z-index: 3000;
    box-shadow: 0 6px 12px rgba(0,0,0,0.175);
}

#oe_main_menu_navbar > ul:first-child > li > .dropdown-menu,
.o_main_navbar > ul:first-child > li > .dropdown-menu {
    margin-top: -40px !important; 
}

#oe_main_menu_navbar > ul:nth-child(2) > li:nth-child(1) > .dropdown-menu,
.o_main_navbar > ul:nth-child(2) > li:nth-child(1) > .dropdown-menu,
#oe_main_menu_navbar > ul:nth-child(2) > li:nth-child(2) > .dropdown-menu,
.o_main_navbar > ul:nth-child(2) > li:nth-child(2) > .dropdown-menu {
    margin-top: 0px !important;
}

#promote-menu .dropdown-menu,
.oe_promote_menu {
    position: absolute !important;
    top: 100% !important;
    margin-top: 0px !important;
    left: 0 !important;
    transform: none !important; 
    will-change: auto !important;
    background-color: #fff;
    min-width: 200px;
    display: none;
}

#promote-menu.show .dropdown-menu,
.oe_promote_menu.show {
    display: block !important;
}

#promote-menu .dropdown-menu a,
.oe_promote_menu a {
    color: #333;
    padding: 10px 15px;
    display: block;
}
#promote-menu .dropdown-menu a:hover,
.oe_promote_menu a:hover {
    background-color: #f5f5f5;
}

#oe_main_menu_navbar .o_menu_systray,
.o_main_navbar .o_menu_systray {
    margin-left: auto !important; 
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
}

#mobile-menu {
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 15px;
    margin-left: 15px;
}

.o_menu_systray > li {
    display: flex;
    align-items: center;
    height: 100%;
}

.o_menu_systray > li > a {
    padding: 0 10px;
    display: block;
}

#oe_main_menu_navbar > ul > li > a, 
#oe_main_menu_navbar > ul > li > label,
.o_main_navbar > ul > li > a, 
.o_main_navbar > ul > li > label {
    color: #fff !important; 
    background-color: transparent !important;
}
#oe_main_menu_navbar > ul > li > a:hover, .o_main_navbar > ul > li > a:hover {
    background-color: var(--hover-color) !important;
}

.wrap > .container {
    padding-top: 300px !important; 
    max-width: 1200px;
    width: 100%;
}

.header-inner {
    width: 100%; max-width: 100%;
    display: flex; flex-direction: column; align-items: center; 
    padding: 0 20px;
    justify-content: center; height: 100%;
}
.logo-img { max-height: 80px; display: block; margin: 0 auto 15px auto; }
.main-separator-line {
    display: block;
    width: 60%; max-width: 600px; height: 2px;
    background-color: #fff; margin-bottom: 15px; opacity: 0.8;
    flex-shrink: 0;
}
.form-title h2 {
    margin: 0; font-family: var(--font-main);
    font-size: 24px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; color: #fff; text-align: center;
}

.js_surveyform {
    padding: 0 40px 40px 40px !important;
    min-height: 60vh;
    width: 100%;
    overflow: visible !important; 
}

.js_question-wrapper { 
    margin-bottom: 30px; 
    overflow: visible !important;
}

.js_surveyform h2, .js_surveyform h3, .js_surveyform h4,
.js_question-wrapper > div:not(h2):not(h3):not(h4),
.js_surveyform .form-group, .js_surveyform .input-group, 
.form-check, .o_survey_form_choice, label {
    margin: 0 !important; padding: 0 !important;
}
.js_surveyform h2, .js_surveyform h3, .js_surveyform h4 {
    font-family: var(--font-main); font-weight: 600; font-size: 18px; line-height: 1.4; clear: both;
}

.form-control {
    border-radius: 2px; padding: 6px 10px;
    background-color: #f5f5f5; border: 1px solid #ccc; height: auto;
}
.form-control:focus {
    border-color: var(--primary-color); background-color: #fff;
    box-shadow: 0 0 0 2px rgba(0, 159, 227, 0.2);
}
textarea.form-control { min-height: 80px; resize: vertical; }

.page-header, .o_page_header {
    background: transparent !important;
    border-bottom: 1px solid #e6e6e6 !important;
    padding: 0 40px 10px 40px !important;
    margin: 0 0 40px 0 !important; 
    width: 100%;
}

.page-header h1, .o_page_header h1 {
    font-family: var(--font-main); font-weight: 700; color: var(--text-dark);
    margin: 10px 0 0; font-size: 30px; line-height: 1.2;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    z-index: 99999 !important;
    position: absolute !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    width: auto !important;
    min-width: 300px !important;
    height: auto !important;
    min-height: 280px !important; 
    max-height: none !important;
    border: 1px solid #ccc !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    margin-top: 5px !important;
    padding: 0 !important;
    overflow: visible !important;
}

.bootstrap-datetimepicker-widget table {
    background-color: #ffffff !important;
    width: 100%; margin: 0;
}

.bootstrap-datetimepicker-widget table thead tr:first-child th {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-radius: 0;
}
.bootstrap-datetimepicker-widget table thead tr:first-child th:hover {
    background-color: var(--hover-color) !important;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    text-shadow: none;
}

.bootstrap-datetimepicker-widget table td,
.bootstrap-datetimepicker-widget table th {
    color: #333 !important;
    font-size: 14px;
    border-radius: 0;
}

.bootstrap-datetimepicker-widget .picker-switch a,
.bootstrap-datetimepicker-widget .prev,
.bootstrap-datetimepicker-widget .next {
    color: #fff !important;
    background: transparent !important;
}

.js_surveyform .text-center {
    text-align: right !important;
    margin: 100px 0 50px 0 !important;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    position: relative; 
    z-index: 1;
}

.js_surveyform button[type="submit"], .btn-primary, .wrap > .container > .float-right > a.btn.btn-secondary {
    background-color: var(--primary-color) !important; 
    border-color: var(--primary-color) !important;
    color: #fff !important; 
    font-weight: bold; text-transform: uppercase;
    padding: 10px 25px; border-radius: 4px; box-shadow: none;
}
.js_surveyform button[type="submit"]:hover, .btn-primary:hover, .wrap > .container > .float-right > a.btn.btn-secondary:hover {
    background-color: var(--hover-color) !important; 
    border-color: var(--hover-color) !important;
}
.js_surveyform .btn-default, button[value="previous"] {
    background-color: #fff !important; color: #666; border: 1px solid #ddd;
    font-weight: bold; text-transform: uppercase; padding: 10px 25px;
    border-radius: 4px; order: 1; display: inline-block;
}

.embention-footer-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: flex-end; align-items: center;
    padding: 0 40px 60px 40px; 
    position: relative; z-index: 20;
}
.embention-pagination {
    display: flex; gap: 8px; font-family: 'Roboto', sans-serif; font-weight: bold; font-size: 14px;
}
.page-square {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 2px; 
    color: var(--primary-color); 
    background-color: #fff;
    border: 1px solid #eee; 
    cursor: default; transition: all 0.2s; text-decoration: none;
}
.page-square.active {
    background-color: var(--primary-color); 
    color: #fff; 
    border-color: var(--primary-color);
}
.page-arrow { color: var(--primary-color); font-size: 18px; padding: 0 5px; cursor: pointer; }
.page-arrow:hover { color: var(--hover-color); }

@media (max-width: 768px) {
    .header-inner { padding: 0 20px; text-align: center; }
    .form-title { margin-top: 10px; }
    .wrap > .container { padding-top: 300px !important; }
    .js_surveyform { padding-left: 20px; padding-right: 20px; }
    .embention-footer-container { padding: 0 20px 30px 20px; justify-content: center; }
    .js_surveyform .text-center { flex-direction: column; gap: 10px; margin-top: 50px !important; }
    .js_surveyform button { width: 100%; }
    .main-separator-line { width: 80%; }
}
