.consult-page {
    background: #f7f7f7;
    min-height: 70vh;
    padding-bottom: 48px;
}
.consult-hero {
    background: #fff;
    border-bottom: 1px solid #d9d9d9;
    padding: 28px 0 22px;
}
.consult-hero h1 {
    margin: 0 0 8px;
    color: #2d2d2d;
}
.consult-wrap {
    margin-top: 24px;
}
.consult-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 22px 20px;
    margin-bottom: 18px;
}
.consult-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #00447a;
}
.consult-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.consult-summary-row:last-child {
    border-bottom: 0;
    font-weight: 700;
    color: #ce021d;
}
.consult-label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #2d2d2d;
}
.consult-hint {
    display: block;
    color: #777;
    font-size: 13px;
    margin: 4px 0 10px;
    font-weight: 400;
}
.consult-input,
.consult-select,
.consult-textarea {
    width: 100%;
    height: 46px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 14px;
}
.consult-input.join-counted,
.consult-textarea.join-counted {
    margin-bottom: 0;
}
.join-char-count {
    display: block;
    clear: both;
    margin: 4px 0 14px;
    color: #777;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}
.consult-page .cms-date-field .cms-date-text {
    padding-right: 12px;
    padding-left: 2.4rem;
}
.consult-page .cms-date-field .cms-date-btn {
    right: auto;
    left: 0;
}
.join-page .cms-date-field .cms-date-btn {
    left: 12px;
    width: 16px;
}
.join-page .cms-date-field .cms-date-text {
    padding-right: 12px;
    padding-left: 40px;
}
.consult-textarea {
    height: auto;
    min-height: 90px;
}
.qm-join-select {
    position: relative;
    margin-bottom: 14px;
}
.qm-join-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}
.qm-join-select-btn,
.qm-join-select-menu li {
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    color: #333;
    line-height: 46px;
}
.qm-join-select-btn {
    position: relative;
    display: block;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 34px 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    text-align: start;
    cursor: pointer;
}
.qm-join-select-btn:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    pointer-events: none;
}
.qm-join-select.is-open .qm-join-select-btn:after {
    margin-top: -2px;
    transform: rotate(225deg);
}
html[dir="rtl"] .qm-join-select-btn {
    padding: 0 12px 0 34px;
}
html[dir="rtl"] .qm-join-select-btn:after {
    right: auto;
    left: 14px;
}
.qm-join-select-menu {
    position: absolute;
    z-index: 40;
    top: 50px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    max-height: 240px;
    overflow: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.qm-join-select-menu li {
    margin: 0;
    padding: 0 12px;
    text-align: start;
    cursor: pointer;
    white-space: nowrap;
}
.qm-join-select-menu li:hover,
.qm-join-select-menu li.is-on {
    background: #f4f5f6;
}
.join-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
.join-spec {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
}
.join-spec input {
    width: 16px !important;
    height: 16px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    appearance: auto;
    -webkit-appearance: checkbox;
}
.join-spec.is-all {
    border-color: #ce021d;
    color: #ce021d;
}
.join-spec input:disabled + span {
    opacity: 0.45;
}
.consult-check {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: -4px 0 16px;
    font-weight: 600;
    cursor: pointer;
}
.consult-check input {
    margin: 0;
    flex: 0 0 auto;
}
.consult-input:disabled,
.consult-input.is-off {
    background: #ececec;
    color: #8a8a8a;
    cursor: not-allowed;
    opacity: 0.75;
}
.consult-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.consult-option {
    display: block;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 12px 14px;
    cursor: pointer;
    margin: 0;
    font-weight: 600;
}
.consult-option input {
    margin-left: 8px;
    margin-right: 8px;
}
.consult-option.is-on,
.consult-option:has(input:checked) {
    border-color: #ce021d;
    background: #fdf4f8;
}
.consult-minutes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.consult-min-btn {
    min-width: 92px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid #ce021d;
    background: #fff;
    color: #ce021d;
    border-radius: 4px;
    font-weight: 700;
}
.consult-min-btn.is-on {
    background: #ce021d;
    color: #fff;
}
.consult-alert {
    background: #fff4f4;
    border: 1px solid #f3c0c0;
    color: #8a1f1f;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
}
.consult-ok {
    background: #f1f8f4;
    border: 1px solid #b7dfc4;
    color: #1d6b3a;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
}
.consult-pay-box {
    background: #f6f8fb;
    border: 1px dashed #00447a;
    padding: 14px;
    border-radius: 6px;
    margin: 12px 0 18px;
    font-size: 15px;
}
.consult-choice-list,
.consult-pay-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.consult-choice,
.consult-pay-option {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    padding: 6px 10px;
    min-height: 38px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}
.consult-choice input,
.consult-pay-option input {
    margin: 0;
    flex: 0 0 auto;
}
.consult-choice img,
.consult-pay-option img {
    height: 22px;
    width: auto;
    max-width: 78px;
    object-fit: contain;
    flex: 0 0 auto;
}
.consult-choice span,
.consult-pay-option span {
    display: inline-block;
    white-space: nowrap;
}
.consult-choice.is-on,
.consult-choice:has(input:checked),
.consult-pay-option.is-on,
.consult-pay-option:has(input:checked) {
    border-color: #ce021d;
    background: #fdf4f8;
}
.consult-actions {
    margin-top: 8px;
}
.consult-login-link {
    display: inline-block;
    margin: 12px 12px 0;
    font-weight: 700;
    color: #00447a;
}
.consult-page input[type="file"].consult-input {
    height: auto;
    padding: 10px;
}
.join-page {
    background: #f3f4f6;
}
.join-page .consult-hero {
    background: #fff;
    border-bottom: 0;
    padding: 40px 0 8px;
}
.join-page .consult-hero h1 {
    font-size: 32px;
    line-height: 1.35;
    color: #1a1a1a;
}
.join-page .consult-hero p {
    max-width: 760px;
    margin-top: 10px;
    color: #5e636b;
    line-height: 1.8;
}
.join-page .consult-wrap {
    margin-top: 18px;
}
.join-page .consult-card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.06);
    padding: 28px 26px 22px;
}
.join-page .consult-card .row > [class*="col-"] {
    margin-bottom: 4px;
}
.join-page .consult-card .row > .join-location-block {
    margin-top: 6px;
    margin-bottom: 4px;
}
.join-page .consult-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}
.join-page .consult-hint {
    color: #8a8f98;
    margin-top: 0;
}
.join-page .consult-input,
.join-page .consult-select,
.join-page .consult-textarea,
.join-page .qm-join-select-btn,
.join-page .qm-join-select-menu,
.join-page .cms-date-field .cms-date-text {
    border: 1px solid #e6e6e6;
    border-radius: 0;
    background: #fafafa;
    color: #1a1a1a;
}
.join-page .join-loc-level .consult-label {
    margin-bottom: 8px;
}
.join-page .join-loc-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: flex-end;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}
.join-page .join-loc-level {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}
.join-page .join-loc-filters .consult-select,
.join-page .join-loc-filters .join-loc-select {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-bottom: 14px;
    height: 48px;
    min-height: 48px;
    box-sizing: border-box;
    padding: 0 36px 0 12px;
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
    background-color: #fafafa;
    border: 1px solid #e6e6e6;
    border-radius: 0;
    font-family: "Cairo", sans-serif;
    font-size: 13px;
    color: #333;
    line-height: 46px;
}
html[dir="rtl"] .join-page .join-loc-filters .consult-select,
html[dir="rtl"] .join-page .join-loc-filters .join-loc-select {
    padding: 0 12px 0 36px;
    text-align: right;
}
html[dir="ltr"] .join-page .join-loc-filters .consult-select,
html[dir="ltr"] .join-page .join-loc-filters .join-loc-select {
    text-align: left;
}
.join-page .join-loc-filters .qm-join-select {
    width: 100%;
    margin-bottom: 14px;
}
.join-page .join-loc-filters .qm-join-select-btn {
    height: 48px;
    border-radius: 0;
    border-color: #e6e6e6;
    background: #fafafa;
    line-height: 46px;
}
.join-page .join-loc-filters .qm-join-select-btn:after {
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
}
.join-page .join-loc-filters .qm-join-select.is-open .qm-join-select-btn:after {
    margin-top: -2px;
    transform: rotate(225deg);
}
@media (max-width: 575px) {
    .join-page .join-loc-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .join-page .join-loc-level {
        width: 100%;
        flex: 0 0 auto;
    }
}
.join-page .join-five {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
}
.join-page .join-five > div {
    flex: 1 1 0;
    min-width: 0;
}
.join-page .join-five .consult-label {
    line-height: 1.4;
}
.join-page .join-five .cms-date-field,
.join-page .join-five .consult-input,
.join-page .join-five .qm-join-select {
    max-width: 100%;
}
.join-page .join-five .qm-join-select {
    margin-bottom: 0;
}
.join-page .join-five .qm-join-select-menu {
    top: 100%;
    margin-top: 4px;
}
.join-page .join-five .cms-date-text {
    padding-right: 12px;
    padding-left: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
}
html[dir="ltr"] .join-page .cms-date-field .cms-date-btn {
    left: auto;
    right: 12px;
}
html[dir="ltr"] .join-page .cms-date-field .cms-date-text,
html[dir="ltr"] .join-page .join-five .cms-date-text {
    padding-left: 12px;
    padding-right: 40px;
}
.join-page .consult-input,
.join-page .qm-join-select-btn,
.join-page .cms-date-field .cms-date-text,
.join-page .join-five .consult-input,
.join-page .join-five .qm-join-select-btn,
.join-page .join-five .cms-date-field .cms-date-text {
    box-sizing: border-box;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 46px;
}
.join-page .consult-textarea {
    min-height: 120px;
    padding-top: 12px;
}
.join-page .consult-textarea.join-address {
    min-height: 76px;
    height: 76px;
}
.join-page .consult-input:focus,
.join-page .consult-select:focus,
.join-page .consult-textarea:focus,
.join-page .qm-join-select.is-open .qm-join-select-btn {
    border-color: #ce021d;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(206, 2, 29, 0.12);
}
.join-page .join-char-count {
    margin-top: 6px;
    font-size: 12px;
    color: #8a8f98;
}
.join-page .join-field-error {
    display: block;
    clear: none;
    width: 100%;
    position: static;
    color: #ce021d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 8px 0 20px;
    text-align: start;
}
.join-page .join-field-error:has(+ .join-char-count) {
    margin-bottom: 4px;
}
.join-page .join-field-error + .join-char-count {
    margin-bottom: 20px;
}
.join-page .cms-date-field .cms-date-text,
.join-page .cms-date-field .consult-input {
    margin-bottom: 0;
}
.join-page .consult-card .row > [class*="col-"]:has(.join-field-error) {
    margin-bottom: 0;
}
@media (min-width: 992px) {
    .join-page .join-pair {
        clear: both;
    }
}
.join-page .join-five > div {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.join-page .join-five .consult-input,
.join-page .join-five .qm-join-select,
.join-page .join-five .cms-date-field,
.join-page .consult-input:has(+ .join-field-error),
.join-page .consult-textarea:has(+ .join-field-error),
.join-page .qm-join-select:has(+ .join-field-error),
.join-page .cms-date-field:has(+ .join-field-error),
.join-page .join-specs:has(+ .join-field-error),
.join-page .join-pass:has(+ .join-field-error) {
    margin-bottom: 0;
}
.join-page .consult-input.is-invalid,
.join-page .consult-textarea.is-invalid,
.join-page .qm-join-select.is-invalid .qm-join-select-btn,
.join-page .cms-date-field .consult-input.is-invalid {
    border-color: #ce021d;
    background: #fff;
}
.join-page .join-specs.is-invalid {
    outline: 1px solid #ce021d;
    outline-offset: 6px;
}
.join-page .join-pass {
    position: relative;
}
.join-page .join-pass .consult-input {
    margin-bottom: 0;
    padding-right: 4.8rem;
    padding-left: 12px;
}
html[dir="rtl"] .join-page .join-pass .consult-input {
    direction: rtl;
    text-align: right;
    padding-right: 12px;
    padding-left: 4.8rem;
}
.join-page .join-pass-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 48px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: #ce021d;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
html[dir="rtl"] .join-page .join-pass-toggle {
    right: auto;
    left: 0;
}
.join-page .join-specs {
    gap: 10px;
    margin: 0 0 24px;
}
.join-page #join_spec {
    margin-bottom: 28px;
}
.join-page .join-spec {
    border-radius: 0;
    background: #fafafa;
    border-color: #e6e6e6;
    padding: 8px 14px;
}
.join-page .join-spec:hover {
    border-color: #ce021d;
    background: #fff;
}
.join-page .join-spec.is-all {
    background: #fff5f6;
}
.join-page .consult-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
    padding-top: 8px;
}
.join-page .consult-actions .QM_primary-btn {
    min-width: 190px;
    font-weight: 700;
}
.join-page .consult-login-link {
    margin: 0;
    color: #2d2d2d;
}
.join-page input[type="file"].consult-input {
    background: #fff;
    padding: 12px;
}
.join-page .join-file-gap {
    margin-top: 28px;
}
.join-page .join-file-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.join-page .join-file-side {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 132px);
}
.join-page .join-file-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 120px;
    border: 1px solid #e6e6e6;
    background: #fafafa;
    box-sizing: border-box;
}
.join-page .join-file-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    padding: 0 16px;
    text-align: center;
    pointer-events: none;
}
.join-page .join-file-box input[type="file"].consult-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.join-page .join-file-browse {
    display: block;
    background: transparent;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}
.join-page .join-file-box .consult-hint {
    display: block;
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}
.join-page .join-file-box:has(input:focus) {
    border-color: #ce021d;
    box-shadow: 0 0 0 3px rgba(206, 2, 29, 0.12);
}
.join-page .join-file-box:has(.is-invalid) {
    border-color: #ce021d;
    background: #fafafa;
}
.join-page .join-file-preview {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    border: 1px solid #e6e6e6;
    background: #fafafa;
    overflow: hidden;
    box-sizing: border-box;
}
.join-page .join-file-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 767px) {
    .join-page .consult-hero {
        padding-top: 24px;
    }
    .join-page .consult-hero h1 {
        font-size: 24px;
    }
    .join-page .consult-card {
        padding: 18px 14px 16px;
        border-radius: 14px;
    }
    .join-page .join-five > div {
        flex: 1 1 100%;
    }
    .join-page .join-file-line {
        flex-direction: column;
        align-items: center;
    }
    .join-page .join-file-side {
        max-width: none;
        width: 100%;
        align-self: stretch;
    }
}
