body {
    margin: 0;
    padding: 0;
    background: #eef2f6;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: #2d3748;
}

.site-brand {
    background: radial-gradient(425px at 50% 50%, #286088 0%, #1c3a5a 100%);
    padding: 18px 16px 20px;
    text-align: center;
}

.site-brand-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    max-width: 1024px;
    margin: 0 auto;
}

.site-brand-logo {
    height: 96px;
    width: auto;
    display: block;
    margin-bottom: 8px;
    mix-blend-mode: lighten;
}

.site-brand-title {
    display: block;
    color: #ffffff;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.site-brand-subtitle {
    display: block;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    font-weight: 600;
    margin-top: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.page-main {
    padding: 24px 16px 32px;
}

.back-to-site {
    display: block;
    width: 1024px;
    max-width: 100%;
    margin: 16px auto 0;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background: #1b3a5c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(27, 58, 92, 0.25);
}

.back-to-site:hover {
    background: #16304c;
    color: #ffffff;
}

.ec-qms-registrator {
    position: relative;
    width: 1024px;
    height: 840px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #d4dde8;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(26, 54, 93, 0.12);
    overflow: hidden;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

/* ---------- Stepper ---------- */
.navigationHeader {
    width: 100%;
    height: 52px;
    margin: 0 !important;
    padding: 0 !important;
    background: #1b3a5c;
}

.navigationHeader ul {
    display: table;
    width: 100%;
    height: 100%;
    table-layout: fixed;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.navigationHeader ul li {
    display: table-cell;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    height: 52px;
    line-height: 52px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin: 0 !important;
    padding: 0 8px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    vertical-align: middle;
}

.navigationHeader ul li:last-child {
    border-right: none;
}

.navPage {
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
}

.currentNavPage {
    background: #16304c !important;
    color: #ffffff !important;
    box-shadow: inset 0 -3px 0 #3b82c4;
}

/* ---------- Work area ---------- */
.WorkArea {
    height: 718px;
    overflow: auto;
    padding: 20px 20px 12px;
    box-sizing: border-box;
    background: #f7f9fc;
}

/* ---------- Service / group cards ---------- */
.service,
.groupservice {
    margin: 10px;
    width: 30%;
    min-height: 132px;
    height: auto;
    vertical-align: middle;
    display: inline-table;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: #1b3a5c;
    text-align: left;
    background: #ffffff;
    border: 1px solid #d4dde8;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.06);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.service:hover,
.groupservice:hover {
    border-color: #3b82c4;
    box-shadow: 0 6px 16px rgba(27, 58, 92, 0.14);
    transform: translateY(-2px);
}

.service > div:first-child,
.groupservice > div:first-child {
    height: 100%;
    display: table-cell;
    vertical-align: middle;
    position: relative;
    background: #1b3a5c;
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    text-align: center;
    border-radius: 7px 0 0 7px;
}

.serviceName {
    width: 100%;
    vertical-align: middle;
    position: relative;
    font-size: 16px;
    font-weight: 700;
    color: #1b3a5c;
    line-height: 1.35;
}

.serviceDescription {
    width: 100%;
    vertical-align: middle;
    position: relative;
    font-size: 12px;
    color: #5a6a7e;
    font-weight: 400;
}

.serviceImg {
    vertical-align: middle;
    position: relative;
    padding-left: 12px;
    padding-right: 12px;
    max-width: 40px;
    max-height: 40px;
}

.service .tst,
.groupservice .tst {
    padding: 16px 16px 16px 12px;
    box-sizing: border-box;
}

/* ---------- Branch cards ---------- */
.branch {
    vertical-align: middle;
    display: inline-table;
    margin: 10px;
    width: 31%;
    min-height: 132px;
    height: auto;
    border: 1px solid #d4dde8;
    background: #ffffff;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.06);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.branch:hover {
    border-color: #3b82c4;
    box-shadow: 0 6px 16px rgba(27, 58, 92, 0.14);
    transform: translateY(-2px);
}

.branch div {
    height: 100%;
    display: table-cell;
    vertical-align: middle;
    position: relative;
}

.branchName {
    color: #1b3a5c;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    padding-bottom: 8px;
    float: left;
    width: 100%;
}

.branchAddress {
    color: #5a6a7e;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 13px;
    text-align: left;
    float: left;
    width: 100%;
}

/* ---------- Time picker dialog ---------- */
.minuteSelected {
    text-align: center;
    width: 200px;
    background: #1b3a5c !important;
    color: #ffffff;
    border: 1px solid #1b3a5c;
    margin: 2px;
    border-radius: 6px;
}

.minutes {
    width: 208px;
    text-align: center;
}

.minute0,
.minute1,
.minute2 {
    display: inline-block;
    text-align: center;
    width: 92px;
    height: 42px;
    line-height: 42px;
    margin: 4px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    box-sizing: border-box;
}

.minute0 {
    background: #ffffff;
    border: 1px solid #d4dde8;
    color: #1b3a5c;
    cursor: pointer;
}

.minute0:hover {
    background: #e8f1fa;
    border-color: #3b82c4;
}

.minute1 {
    background: #fde8e8;
    border: 1px solid #f0c4c4;
    color: #9b3b3b;
    cursor: default;
}

.minute2 {
    background: #e8edf3 !important;
    border: 1px solid #d4dde8;
    color: #8a97a8;
    cursor: default;
}

/* ---------- Calendar ---------- */
.calend {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 812px;
    border: 1px solid #d4dde8;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.06);
    font-size: 0;
}

.calendDay,
.calendDate {
    text-align: center;
    border: none;
    color: #ffffff;
    background: #1b3a5c;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 600;
}

.calendDay {
    padding-top: 8px;
    line-height: 1.2;
}

.calendDate {
    padding-bottom: 8px;
    font-weight: 400;
    opacity: 0.85;
}

.calendColumn {
    display: inline-block;
    width: 116px;
    box-sizing: border-box;
    vertical-align: top;
    font-size: 13px;
}

.hour0,
.hour1,
.hour2 {
    text-align: center;
    height: 38px;
    line-height: 38px;
    box-sizing: border-box;
    font-size: 13px;
    border-bottom: 1px solid #eef2f6;
    border-right: 1px solid #eef2f6;
}

.hour0 {
    background: #ffffff;
    color: #1b3a5c;
    font-weight: 600;
    cursor: pointer;
}

.hour0:hover {
    background: #e8f1fa;
    color: #16304c;
}

.hour1 {
    background: #fde8e8;
    color: #9b3b3b;
    border: 1px solid #f0c4c4;
    border-bottom: 1px solid #f0c4c4;
    border-right: 1px solid #f0c4c4;
    cursor: default;
}

.hour2 {
    background: #eef2f6 !important;
    color: #9aa6b4;
    cursor: default;
}

/* ---------- jQuery UI dialog ---------- */
.ui-icon-closethick {
    background-image: none !important;
    background-position: center !important;
    margin: 0 !important;
    outline: none !important;
}

.ui-dialog .ui-dialog-content {
    border: 0 none;
    position: relative;
    padding: 12px !important;
    margin: 0 !important;
}

.ui-dialog-titlebar {
    height: 44px;
    padding: 0 16px;
    margin: 0;
    border: 0 none;
    border-radius: 8px 8px 0 0;
    background: #1b3a5c;
}

.ui-dialog {
    left: 0;
    outline: 0 none;
    padding: 0 !important;
    position: absolute;
    top: 0;
    border: 1px solid #d4dde8 !important;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(26, 54, 93, 0.22) !important;
    overflow: hidden;
}

.ui-dialog-buttonpane {
    height: auto;
    min-height: 64px;
    background: #f7f9fc;
    padding: 8px 12px !important;
    margin: 0 !important;
    border-top: 1px solid #e4ebf3;
}

.ui-dialog-title {
    position: relative;
    top: 50%;
    -ms-transform: translateY(-50%);
    -webkit-transform: translate(0%, -50%);
    transform: translate(0%, -50%);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
}

.ui-button {
    font-size: 15px !important;
    color: #ffffff !important;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
    height: 40px !important;
    border: none !important;
    border-radius: 6px !important;
    background: #1b3a5c !important;
    outline: none;
    margin: 8px;
    cursor: pointer;
}

.ui-button:hover {
    background: #16304c !important;
}

.ui-dialog-titlebar-close {
    background: transparent !important;
    background-image: none !important;
    border: 0 none !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    top: 8px !important;
    right: 10px !important;
}

.ui-dialog-titlebar-close:before {
    content: "\00d7";
    color: #ffffff;
    font-size: 22px;
    line-height: 28px;
    display: block;
    text-align: center;
}

.ui-widget-header .ui-icon {
    display: none;
}

#dialog {
    background: #ffffff;
    padding: 8px !important;
}

/* ---------- Footer navigation ---------- */
.navigationPanel {
    width: 100%;
    height: 70px;
    box-sizing: border-box;
    padding: 12px 24px 0;
    background: #ffffff;
    border-top: 1px solid #e4ebf3;
}

.back,
.next {
    width: 180px;
    height: 40px;
    line-height: 40px;
    position: relative;
    border: none;
    border-radius: 6px;
    display: inline-block;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.back:before,
.back:after,
.next:before,
.next:after {
    display: none;
}

.back {
    background-color: #ffffff;
    color: #1b3a5c;
    margin-left: 0;
    border: 1px solid #c5d0de;
}

.back:hover {
    background: #e8f1fa;
    border-color: #3b82c4;
}

.next {
    background-color: #1b3a5c;
    color: #ffffff;
    margin-right: 0;
    float: right;
    box-shadow: 0 2px 6px rgba(27, 58, 92, 0.25);
}

.next:hover {
    background-color: #16304c;
}

.saveTicket {
    width: 180px;
    height: 40px;
    line-height: 40px;
    background-color: #ffffff;
    color: #1b3a5c;
    border: 1px solid #c5d0de;
    border-radius: 6px;
    display: inline-block;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    float: right;
    margin-right: 12px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.saveTicket:hover {
    background: #e8f1fa;
    border-color: #3b82c4;
}

/* ---------- Week navigation ---------- */
.calendNav {
    text-align: center;
    width: 100%;
    padding-top: 20px;
}

.prevWeek,
.nextWeek,
.curWeek {
    width: 200px;
    height: 36px;
    line-height: 36px;
    background-color: #ffffff;
    color: #1b3a5c;
    position: relative;
    border: 1px solid #c5d0de;
    border-radius: 6px;
    display: inline-block;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.prevWeek:before,
.prevWeek:after,
.nextWeek:before,
.nextWeek:after {
    display: none;
}

.prevWeek {
    margin-right: 8px;
}

.nextWeek {
    margin-left: 8px;
}

.curWeek {
    right: 0;
    left: 0;
    margin: auto;
    background-color: #1b3a5c;
    color: #ffffff;
    border-color: #1b3a5c;
}

.prevWeek:hover,
.nextWeek:hover {
    background: #e8f1fa;
    border-color: #3b82c4;
}

.curWeek:hover {
    background-color: #16304c;
}

/* ---------- Language ---------- */
.locales {
    position: absolute;
    width: 140px;
    height: 40px;
    bottom: 14px;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 2;
}

.localesCombobox {
    height: 36px;
    width: 140px;
    border: 1px solid #c5d0de;
    border-radius: 6px;
    background: #ffffff;
    color: #1b3a5c;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 13px;
    padding: 0 8px;
    cursor: pointer;
}

.localesCombobox:focus {
    outline: none;
    border-color: #3b82c4;
}

/* ---------- Ticket / messages ---------- */
.ticket {
    height: 695px;
    width: 280px;
    position: absolute;
    right: 0;
    left: 0;
    margin: auto;
    border: 1px solid #c5d0de;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(26, 54, 93, 0.12);
    overflow: hidden;
}

@media print {
    body * {
        visibility: hidden;
    }

    .ticket,
    .ticket * {
        visibility: visible;
    }

    .ticket {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
        box-shadow: none;
        overflow: visible;
    }
}

.endRegistrationMsg,
.errorMsg {
    max-width: 640px;
    margin: 48px auto;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid #d4dde8;
    border-radius: 8px;
    color: #1b3a5c;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.errorMsg {
    border-color: #f0c4c4;
    background: #fff6f6;
    color: #9b3b3b;
}

/* ---------- Additional info form ---------- */
.WorkArea > div:has(.additionlInfoCaption) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    max-width: 640px;
    margin: 0 auto 12px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #e4ebf3;
    border-radius: 8px;
}

.WorkArea > div:has(.confirmationCaption) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 720px;
    margin: 0 auto;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid #e4ebf3;
    border-bottom: none;
    border-radius: 0;
}

.WorkArea > div:has(.confirmationCaption):first-child {
    border-radius: 8px 8px 0 0;
}

.WorkArea > div:has(.confirmationCaption):last-child {
    border-bottom: 1px solid #e4ebf3;
    border-radius: 0 0 8px 8px;
}

.additionalInfoInput {
    display: inline-block;
    height: auto;
    margin: 0;
    flex: 0 0 280px;
}

.additionalInfoInput input,
.PreRegCancelContainer input,
#tiket.input {
    height: 40px;
    width: 100%;
    max-width: 320px;
    border: 1px solid #c5d0de;
    border-radius: 6px;
    padding: 0 12px;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 14px;
    color: #2d3748;
    background: #ffffff;
}

.additionalInfoInput input:focus,
.PreRegCancelContainer input:focus,
#tiket.input:focus {
    outline: none;
    border-color: #3b82c4;
    box-shadow: 0 0 0 3px rgba(59, 130, 196, 0.18);
}

.additionlInfoCaption {
    height: auto;
    min-width: 220px;
    width: auto;
    font-size: 15px;
    font-weight: 700;
    display: inline-block;
    margin: 4px 8px 4px 0;
    color: #1b3a5c;
}

.additionlInfoCaption span {
    float: none;
    line-height: 40px;
    margin-top: 0;
}

.requiredFieldStar {
    color: #c0392b;
    margin-left: 4px;
}

/* ---------- Confirmation ---------- */
.confirmAdditionalInfoContainer {
    margin-left: 0;
    width: 100%;
    display: flex;
    padding: 6px 0 6px 8px;
}

.confirmAdditionalInfoCaption,
.confirmationCaption {
    display: inline-block;
    line-height: 1.4;
    font-size: 15px;
    font-weight: 700;
    padding: 4px 12px 4px 0;
    color: #1b3a5c;
    min-width: 220px;
}

.confirmAdditionalInfoValue,
.confirmationValue {
    display: inline-block;
    font-size: 15px;
    font-weight: 400;
    padding: 4px 8px 4px 0;
    color: #2d3748;
}

.sendMailContainer {
}

/* ---------- Cancel pre-registration ---------- */
.preRegCancelBtn {
	display:none;
    position: absolute;
    top: 60px;
    right: 24px;
    z-index: 3;
    color: #3b82c4;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.preRegCancelBtn:hover {
    color: #1b3a5c;
    text-decoration: underline;
}

.PreRegCancelContainer {
    max-width: 480px;
    margin: 40px auto;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e4ebf3;
    border-radius: 8px;
}

.PreRegCancelHeader {
    font-size: 16px;
    font-weight: 700;
    color: #1b3a5c;
    margin-bottom: 12px;
}

/* ---------- Legend / hints ---------- */
.preRegLegend {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px 0 8px;
}

.legendItem {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #5a6a7e;
}

.legendItem:before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border-radius: 4px;
    border: 1px solid #d4dde8;
}

.legendItem.busyTime:before {
    background: #fde8e8;
    border-color: #f0c4c4;
}

.legendItem.unavailableTime:before {
    background: #eef2f6;
}

.legendHint {
    background: #1b3a5c;
    color: #ffffff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.25);
    z-index: 10;
    white-space: nowrap;
}

/* ---------- Combobox fallbacks ---------- */
.serviceComboBox,
.branchComboBox {
    display: block;
    width: 360px;
    max-width: 100%;
    height: 42px;
    margin: 16px auto;
    padding: 0 12px;
    border: 1px solid #c5d0de;
    border-radius: 6px;
    background: #ffffff;
    color: #1b3a5c;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 14px;
}

.dateTime {
    display: inline-block;
    margin: 6px;
}

.hours {
    padding: 12px;
    text-align: center;
}
