@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@500;700&display=swap');

/* Order Page layout adjustments */
.content-wrapper {
    overflow: visible !important;
}

.content {
    overflow: visible !important;
}

.content section.page-wrapper {
    margin-top: 100px; /* clear bottom header overlap */
    margin-bottom: 60px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-flow: row wrap;
    gap: 40px;
    justify-content: space-between;
}

.content section.page-wrapper main {
    flex: 0 0 734px;
    max-width: 734px;
    width: 734px;
}

.content section.page-wrapper aside {
    flex: 0 0 424px;
    max-width: 424px;
}

/* Header wrapper with vertical decorative bar */
.order-header-wrap {
    position: relative;
    max-width: 734px;
    width: 100%;
    margin-bottom: 30px; /* отступ к полям: 30px */
}

.order-header-wrap::after {
    content: "";
    position: absolute;
    right: 0;
    top: 6px; /* align with the top of the title text */
    width: 6px;
    height: 143px;
    background: #E1ECF5;
    border-radius: 3px;
}

@media (max-width: 767px) {
    .order-header-wrap::after {
        display: none;
    }
}

/* Title Section */
.order-form .title {
    font-family: 'Geologica', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 48px;
    letter-spacing: -2.21px;
    color: #073248;
    margin-bottom: 48px; /* 48px offset to customer data */
    display: flex;
    align-items: center;
}

.order-form .title .order-number {
    font-family: 'Geologica', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 48px;
    letter-spacing: -2.21px;
    color: #748E9E;
    margin-left: 14px; /* 14px offset before order number */
}

.basket-toggle-handle {
    display: none;
}

/* Sidebar Basket Card */
.content .page-wrapper .aside-basket-info {
    display: flex;
    flex-direction: column;
    width: 424px;
    max-width: 100%;
    box-shadow: 10px 10px 30px 0px #D1D9EB;
    border: 1px solid rgba(209, 217, 235, 0.4);
    background-color: #fff;
    margin-bottom: 30px;
    border-radius: 30px;
    padding: 16px 32px 30px; /* Отступ от верха до итого: 16px, горизонтальные: 32px */
    box-sizing: border-box;
}

.content .page-wrapper .aside-basket-info .total {
    font-family: 'Geologica', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 48px;
    letter-spacing: -1.38px;
    color: #073248;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.content .page-wrapper .aside-basket-info .total .amount {
    font-family: 'Geologica', sans-serif;
    font-weight: 800;
    font-size: 22px;
    line-height: 22px;
    letter-spacing: -0.28px;
    text-align: right;
    color: #073248;
}

.content .page-wrapper .aside-basket-info .description {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 13px;
    letter-spacing: -0.15px;
    color: #578297;
    text-align: left;
    margin-bottom: 0;
}

.content .page-wrapper .aside-basket-info .divider {
    border-top: 2px dashed #D3DAEA; /* Стили линии: border: 2px dashed #D3DAEA */
    margin-top: 22px; /* Отступ от описания до линии: 22px */
    margin-bottom: 16px; /* Далее отступ ниже от линии: 16px */
    margin-left: -32px; /* Stretch border-to-border */
    margin-right: -32px;
}

.content .page-wrapper .aside-basket-info .school-name {
    font-family: 'Geologica', sans-serif;
    font-weight: 700;
    font-size: 23px;
    line-height: 30px;
    letter-spacing: -1.06px;
    vertical-align: middle;
    color: #EF6860;
    margin-bottom: 20px;
}

.content .page-wrapper .aside-basket-info .item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.content .page-wrapper .aside-basket-info .item-title {
    font-family: 'Geologica', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -0.14px;
    color: #073248;
    margin-right: 15px;
}

.content .page-wrapper .aside-basket-info .item-cost {
    font-family: 'Geologica', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: -0.22px;
    text-align: right;
    color: #0083DA;
    white-space: nowrap;
}

.content .page-wrapper .aside-basket-info .item-details {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: -0.6px;
    color: #073248;
    margin-top: 6px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.content .page-wrapper .aside-basket-info .item-details .detail-label {
    flex: 1 1 auto;
    text-align: left;
    opacity: 0.7;
}

.content .page-wrapper .aside-basket-info .item-details .detail-value {
    flex: 0 0 auto;
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.7;
}

.content .page-wrapper .aside-basket-info .item-details span {
    font-family: 'Geologica', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: -0.6px;
    color: #073248;
    opacity: 0.7;
}

.content .page-wrapper .aside-basket-info .item + .item-details {
    margin-top: 30px; /* Отступ до даты поездки: 30px */
}

.content .page-wrapper .aside-basket-info .sub-item + .sub-details {
    margin-top: 4px; /* Отступ от проживания/материалов вниз к деталям: 4px */
}

.content .page-wrapper .aside-basket-info .item-details + .item {
    margin-top: 25px; /* Отступ между блоками корзины */
}

/* Spacing for sub-items in the basket */
.content .page-wrapper .aside-basket-info .sub-item {
    margin-top: 14px;
}

.content .page-wrapper .aside-basket-info .sub-details + .sub-item {
    margin-top: 14px;
}

/* Maintain a larger gap from the main course details to the first sub-item */
.content .page-wrapper .aside-basket-info .item-details + .sub-item {
    margin-top: 25px;
}

/* Subtitle / Sub-item styles */
.content .page-wrapper .aside-basket-info .sub-item .item-title {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.65px;
    color: #073248;
}

.content .page-wrapper .aside-basket-info .sub-item .item-cost {
    font-family: 'Geologica', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: -0.2px;
    text-align: right;
    color: #0083DA;
}

.content .page-wrapper .aside-basket-info .sub-details {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 16px;
    letter-spacing: -0.6px;
    color: #073248;
    margin-top: 6px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.content .page-wrapper .aside-basket-info .sub-details .detail-label {
    flex: 1 1 auto;
    text-align: left;
    font-weight: 500;
    opacity: 0.7;
}

.content .page-wrapper .aside-basket-info .sub-details .detail-value {
    flex: 0 0 auto;
    text-align: right;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.7;
}

.content .page-wrapper .aside-basket-info .sub-details span {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 13px;
    line-height: 16px;
    letter-spacing: -0.6px;
    color: #073248;
    opacity: 0.7;
}

/* Responsiveness */
@media (max-width: 1279px) {
    .content section.page-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
}

@media (max-width: 1199px) {
    .content {
        padding-bottom: 110px !important; /* Space for the sticky bottom basket bar, layout level */
    }
    .content section.page-wrapper {
        justify-content: center;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .content section.page-wrapper main {
        max-width: 100%;
        width: 100%;
        flex: 1 1 100%;
    }
    .content section.page-wrapper aside {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
        z-index: 10000;
        margin: 0;
    }
    .content .page-wrapper .aside-basket-info {
        border-radius: 28px 28px 0 0;
        box-shadow: 10px 10px 30px 0px #D1D9EB;
        background-color: #fff;
        border: 1px solid rgba(209, 217, 235, 0.4);
        border-bottom: none;
        padding: 36px 16px 24px;
        max-height: 103px; /* height of collapsed drawer */
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        position: relative;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 0;
    }
    .content .page-wrapper .aside-basket-info.expanded {
        max-height: 80vh;
        overflow-y: auto;
    }
    .content .page-wrapper .basket-toggle-handle {
        display: block;
        width: 100%;
        height: 24px;
        cursor: pointer;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        margin-bottom: 0;
    }
    .content .page-wrapper .basket-toggle-chevron {
        display: block;
        width: 24px;
        height: 12px;
        background-image: url("data:image/svg+xml,%3Csvg width='24' height='12' viewBox='0 0 24 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 9L12 3L22 9' stroke='%23E1ECF5' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        margin: 10px auto 0;
        transition: transform 0.3s ease;
        border: none;
        transform: none;
    }
    .content .page-wrapper .aside-basket-info.expanded .basket-toggle-chevron {
        transform: rotate(180deg);
    }
    .content .page-wrapper .aside-basket-info .total {
        font-family: 'Geologica', sans-serif;
        font-weight: 800;
        font-size: 22px;
        line-height: 22px;
        letter-spacing: -0.28px;
        color: #073248;
        margin-bottom: 8px;
    }
    .content .page-wrapper .aside-basket-info .total .amount {
        font-family: 'Geologica', sans-serif;
        font-weight: 800;
        font-size: 22px;
        line-height: 22px;
        letter-spacing: -0.28px;
        text-align: right;
        color: #073248;
    }
    .content .page-wrapper .aside-basket-info .description {
        font-family: 'Geologica', sans-serif;
        font-weight: 500;
        font-size: 12px;
        line-height: 13px;
        letter-spacing: -0.15px;
        color: #578297;
        text-align: left;
        margin-bottom: 0;
    }
    .content .page-wrapper .aside-basket-info .divider {
        margin-left: -16px;
        margin-right: -16px;
    }
    .content .page-wrapper .aside-basket-info .sub-item {
        margin-top: 16px;
    }
    .content .page-wrapper .aside-basket-info .sub-details + .sub-item {
        margin-top: 16px;
    }
    .content .page-wrapper .aside-basket-info .item-details + .sub-item {
        margin-top: 16px;
    }
    .order-header-wrap::after {
        display: none;
    }
    #back-to-top {
        bottom: 100px !important; /* layout level */
    }
}

@media (max-width: 767px) {
    .content .page-wrapper .aside-basket-info {
        padding: 36px 16px 24px;
        border-radius: 28px 28px 0 0;
        max-height: 103px; /* height of collapsed drawer on mobile */
    }
    .content .page-wrapper .aside-basket-info.expanded {
        max-height: 80vh;
    }
    .content .page-wrapper .basket-toggle-chevron {
        margin: 10px auto 0;
    }
    .order-form .title {
        display: block;
        font-size: 32px;
        line-height: 36px;
        letter-spacing: -1.5px;
        margin-bottom: 24px;
    }
    .order-form .title .order-number {
        display: block;
        margin-left: 0;
        margin-top: 8px;
        font-size: 32px;
        line-height: 36px;
        letter-spacing: -1.5px;
    }
}

/* Success Modal Backdrop */
.order-form .success-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 50, 72, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.order-form .success-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Success Modal Content Box */
.order-form .success-modal-content {
    background: #fff;
    width: 90%;
    max-width: 484px; /* Размер модалки на макете: 484x581 */
    height: 581px;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(7, 50, 72, 0.25);
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.order-form .success-modal-backdrop.active .success-modal-content {
    transform: translateY(0);
}

@media (max-width: 1199px) {
    .order-form .success-modal-backdrop {
        align-items: flex-end;
        justify-content: center;
        padding: 0;
        overflow: hidden;
    }
    .order-form .success-modal-content {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 95vh;
        border-radius: 28px 28px 0 0;
        margin: 0;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 0 -10px 30px rgba(7, 50, 72, 0.15);
        overflow-y: auto;
    }
    .order-form .success-modal-backdrop.active .success-modal-content {
        transform: translateY(0);
    }
    .order-form .success-modal-close {
        top: 20px;
        right: 20px;
    }
}

/* Close Button */
.order-form .success-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #748E9E;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10;
}

.order-form .success-modal-close:hover {
    color: #073248;
}

/* Top Half */
.order-form .success-modal-top {
    padding: 50px 40px 30px;
    text-align: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 500px) {
    .order-form .success-modal-top {
        padding: 40px 20px 24px;
    }
}

.order-form .success-modal-thanks {
    font-family: 'Geologica', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 48px;
    letter-spacing: -2.21px;
    color: #073248;
    margin: 0 0 16px 0; /* Отступ от заголовка к инфо: 16px */
    text-transform: none;
}

@media (max-width: 500px) {
    .order-form .success-modal-thanks {
        font-size: 32px;
        line-height: 36px;
        margin: 0 0 12px 0;
    }
}

.order-form .success-modal-sent {
    font-family: 'Geologica', sans-serif;
    font-weight: 700;
    font-size: 23px;
    line-height: 30px;
    letter-spacing: -1.06px;
    text-align: center;
    vertical-align: middle;
    color: #073248;
    margin: 0 0 42px 0; /* Далее отступ до дождитесь: 42px */
    text-transform: none;
    max-width: 327px; /* Для текстов поставь max-width: 327px */
}

@media (max-width: 500px) {
    .order-form .success-modal-sent {
        font-size: 20px;
        line-height: 26px;
        margin: 0 0 20px 0;
    }
}

.order-form .success-modal-text {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.74px;
    text-align: center;
    color: #073248;
    margin: 0 0 35px 0; /* Отступ до номера заказа: 35px */
    max-width: 327px; /* Для текстов поставь max-width: 327px */
}

@media (max-width: 500px) {
    .order-form .success-modal-text {
        font-size: 14px;
        line-height: 18px;
        margin: 0 0 20px 0;
    }
}

.order-form .success-modal-order-badge {
    background: rgba(239, 104, 96, 0.1); /* #EF6860 с прозрачностью 0.1 */
    color: #EF6860;
    width: 210px;
    height: 48px;
    border-radius: 16px;
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.17px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Bottom Half */
.order-form .success-modal-bottom {
    position: relative;
    padding: 48px 40px; /* Отступ в нижнем блоке до подпишитесь: 48px */
    text-align: center;
    background-image: url('/images/consultation/photo-students.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* Fill remaining height naturally */
}

@media (max-width: 500px) {
    .order-form .success-modal-bottom {
        padding: 30px 20px;
    }
}

/* Blur/Tint Overlay for Bottom Half */
.order-form .success-modal-bottom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(225, 236, 245, 0.9); /* light blue-gray tint overlay matching #E1ECF5 */
    z-index: 1;
}

.order-form .success-modal-promo {
    position: relative;
    z-index: 2;
    font-family: 'Geologica', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.74px;
    text-align: center;
    color: #0083DA;
    margin: 0 0 40px 0; /* Отступ до иконок соцсетей: 40px */
    max-width: 327px; /* Для текстов поставь max-width: 327px */
}

.order-form .success-modal-socials {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 36px; /* отступ между иконками соцсетей: 36px */
    justify-content: center;
    align-items: center;
}

.order-form .success-modal-socials a {
    display: block;
    transition: transform 0.2s ease;
}

.order-form .success-modal-socials a:hover {
    transform: scale(1.1);
}

.order-form .success-modal-socials img {
    width: 42px; /* Размер иконок 42х42 */
    height: 42px;
    display: block;
}

.order-form .dob-selectors select,
.order-form select#dob-day.form-control,
.order-form select#dob-month.form-control,
.order-form select#dob-year.form-control {
    height: 54px !important;
    min-height: 54px !important;
}

/* Custom Dropdown replacements for Checkout Page */
.order-form .select-wrap {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 54px !important;
  position: relative !important;
  box-sizing: border-box !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.order-form .select-wrap .select-value {
  background-color: #E1ECF5 !important;
  border: none !important;
  border-radius: 16px !important;
  height: 54px !important;
  padding: 12px 40px 12px 16px !important;
  font-family: 'Geologica', sans-serif !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  line-height: 30px !important;
  color: rgba(7, 50, 72, 0.5) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  outline: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}
.order-form .select-wrap .select-value:hover {
  background-color: #E1ECF5 !important;
}
.order-form .select-wrap .select-value.selected {
  color: #073248 !important;
}
.order-form .select-wrap .select-value::after {
  background: none !important;
  content: "" !important;
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M7 10L12 15L17 10' stroke='%23073248' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
  opacity: 0.5 !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  padding-right: 0 !important;
}
.order-form .select-wrap .select-value.selected::after {
  opacity: 1 !important;
}
.order-form .select-wrap.clicked .select-value::after {
  transform: translateY(-50%) rotate(180deg) !important;
}
.order-form .select-wrap .select-options {
  background-color: #FFFFFF !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08) !important;
  font-family: 'Geologica', sans-serif !important;
  font-size: 16px !important;
  line-height: 20px !important;
  margin-top: 4px !important;
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  padding: 0 !important;
  max-height: 240px !important;
  overflow-y: auto !important;
  z-index: 999 !important;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top left;
  transition: opacity 0.16s ease-in-out, transform 0.16s ease-in-out !important;
}
.order-form .select-wrap .select-options.mCustomScrollbar {
  overflow: hidden !important;
}
.order-form .select-wrap .select-options .option {
  background-color: #FFFFFF !important;
  color: #073248 !important;
  font-family: 'Geologica', sans-serif !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  line-height: 30px !important;
  letter-spacing: -0.74px !important;
  padding: 8px 40px 8px 16px !important;
  vertical-align: middle !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
  position: relative !important;
}
.order-form .select-wrap .select-options .option:first-child {
  padding-top: 16px !important;
}
.order-form .select-wrap .select-options .option:last-child {
  padding-bottom: 16px !important;
}
.order-form .select-wrap .select-options .option:hover {
  background-color: #FFF0EE !important;
  color: #EF6860 !important;
}
.order-form .select-wrap .select-options .option.selected {
  background-color: #FFF0EE !important;
  color: #EF6860 !important;
}
.order-form .select-wrap .select-options .option.selected::after {
  content: "" !important;
  display: block !important;
  width: 14px !important;
  height: 10px !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' fill='none'><path d='M1 5L5 9L13 1' stroke='%23EF6860' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.order-form .select-wrap.clicked .select-options {
  opacity: 1 !important;
  transform: translateY(0) scaleY(1) !important;
  transition-delay: 0s !important;
  visibility: visible !important;
}
.order-form .select-wrap select {
  display: none !important;
}
.order-form .select-wrap:focus,
.order-form .select-wrap.form-control:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  background: transparent !important;
}

@media (max-width: 1199px) {
  .select-wrap .select-options,
  .aside-basket .select-wrap .select-options,
  .order-form .select-wrap .select-options {
    -webkit-transform: none !important;
    transform: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.16s ease-in-out, visibility 0.16s ease-in-out !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 0px !important;
    max-height: 220px !important;
    overflow-y: auto !important;
  }
  
  .select-wrap.clicked .select-options,
  .aside-basket .select-wrap.clicked .select-options,
  .order-form .select-wrap.clicked .select-options {
    -webkit-transform: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Validation Highlights & Error States */
.order-form .form-control.input-validation-error:not(.select-wrap) {
    border: 1.5px solid #dc3545 !important;
}

.order-form .select-wrap:has(select.input-validation-error) .select-value {
    border: 1.5px solid #dc3545 !important;
}

.order-form .DateOfBirth-group:has(#dob-hidden.input-validation-error) .select-value {
    border: 1.5px solid #dc3545 !important;
}

.order-form .text-danger.field-validation-error,
.order-form label.error {
    font-family: 'Geologica', sans-serif !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    color: #dc3545 !important;
    margin-top: 4px !important;
    display: block !important;
}

/* International Phone Input Custom Styles */
.order-form .iti {
    display: block;
    width: 100%;
}

.order-form .iti__country-list {
    z-index: 99999 !important;
    background-color: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Geologica', sans-serif;
}

.order-form .iti__selected-flag,
.order-form .iti__selected-country {
    border-radius: 16px 0 0 16px !important;
    background-color: #E1ECF5 !important;
    transition: background-color 0.2s ease;
}

.order-form .iti__selected-flag:hover,
.order-form .iti__selected-country:hover {
    background-color: #E1ECF5 !important;
}

.order-form .iti__selected-dial-code {
    font-family: 'Geologica', sans-serif !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    color: #073248 !important;
    margin-left: 8px !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

.order-form .iti__search-input {
    width: calc(100% - 16px) !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    border: 1px solid #E9F0F8 !important;
    font-family: 'Geologica', sans-serif !important;
    font-size: 14px !important;
    outline: none !important;
    margin: 8px !important;
    box-sizing: border-box !important;
    background-color: #F8FAFD !important;
    color: #073248 !important;
}

.order-form .iti__search-input:focus {
    border-color: #0083DA !important;
    background-color: #fff !important;
}

/* Custom jQuery UI Datepicker Styles */
.ui-datepicker {
  background: #ffffff !important;
  border: none !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(7, 50, 72, 0.08) !important;
  padding: 24px !important;
  width: 320px !important;
  box-sizing: border-box !important;
  font-family: 'Geologica', 'Inter', sans-serif !important;
  z-index: 999999 !important;
}

.ui-datepicker .ui-datepicker-header {
  background: transparent !important;
  border: none !important;
  position: relative !important;
  padding: 0 !important;
  margin-bottom: 20px !important;
  height: 30px !important;
  display: block !important;
}

.ui-datepicker .ui-datepicker-title {
  color: #EF6860 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

.ui-datepicker .ui-datepicker-title select {
  font-size: 1em !important;
  margin: 1px 0 !important;
}

.ui-datepicker .ui-datepicker-year {
  display: none !important;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  position: absolute !important;
  top: 0 !important;
  width: 24px !important;
  height: 30px !important;
  cursor: pointer !important;
  border: none !important;
  background: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 5 !important;
}

.ui-datepicker .ui-datepicker-prev {
  left: 55px !important;
}

.ui-datepicker .ui-datepicker-next {
  right: 55px !important;
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
  display: block !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  width: 20px !important;
  height: 20px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  position: static !important;
  margin: 0 !important;
  transition: background-image 0.2s ease !important;
}

.ui-datepicker .ui-datepicker-prev span {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23748F9F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M15 19l-7-7 7-7'/></svg>") !important;
}

.ui-datepicker .ui-datepicker-next span {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23748F9F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M9 5l7 7-7 7'/></svg>") !important;
}

.ui-datepicker .ui-datepicker-prev-hover span,
.ui-datepicker .ui-datepicker-prev.ui-state-hover span {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EF6860' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M15 19l-7-7 7-7'/></svg>") !important;
}

.ui-datepicker .ui-datepicker-next-hover span,
.ui-datepicker .ui-datepicker-next.ui-state-hover span {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EF6860' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M9 5l7 7-7 7'/></svg>") !important;
}

.ui-datepicker .ui-datepicker-close-icon {
  position: absolute !important;
  top: 14px !important;
  right: 18px !important;
  transform: none !important;
  background: none !important;
  border: none !important;
  font-size: 30px !important;
  color: #BCC8D3 !important;
  cursor: pointer !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-weight: 300 !important;
  outline: none !important;
  transition: color 0.2s ease !important;
  z-index: 10 !important;
}

.ui-datepicker .ui-datepicker-close-icon:hover {
  color: #EF6860 !important;
}

.ui-datepicker table {
  width: 100% !important;
  margin: 0 0 12px !important;
  border-collapse: collapse !important;
}

.ui-datepicker th {
  padding: 8px 0 !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  color: #073248 !important;
  text-transform: uppercase !important;
  border: none !important;
}

.ui-datepicker td {
  padding: 2px !important;
  text-align: center !important;
  border: none !important;
}

.ui-datepicker td a,
.ui-datepicker td span {
  display: inline-block !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  text-align: center !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #073248 !important;
  border-radius: 50% !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

.ui-datepicker td a.ui-state-hover {
  background: #FFF0EE !important;
  color: #EF6860 !important;
}

.ui-datepicker td a.ui-state-active {
  background: #EF6860 !important;
  color: #ffffff !important;
}

/* Other month days styling */
.ui-datepicker td.ui-datepicker-other-month a,
.ui-datepicker td.ui-datepicker-other-month span {
  color: #BCC8D3 !important;
  font-weight: 400 !important;
}

.ui-datepicker td.ui-datepicker-other-month a.ui-state-hover {
  background: #FFF0EE !important;
  color: #EF6860 !important;
}

/* Hide unselectable/disabled day default styles and style them */
.ui-datepicker td.ui-datepicker-unselectable span {
  color: #8296A9 !important;
  font-weight: 400 !important;
}

/* Bottom Button Pane Customization */
.ui-datepicker .ui-datepicker-buttonpane {
  margin: 16px 0 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  display: flex !important;
  justify-content: center !important;
}

.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
  display: none !important;
}

.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-close {
  width: 100% !important;
  height: 48px !important;
  line-height: 48px !important;
  background: #EF6860 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  text-align: center !important;
  opacity: 1 !important;
  transition: background-color 0.2s ease, transform 0.1s ease !important;
}

.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-close:hover {
  background: #e55951 !important;
}

.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-close:active {
  transform: scale(0.98) !important;
}

/* Custom Calendar Icon for text inputs */
.order-form input[name="ArrivalDate"],
.order-form input[name="DepartureDate"] {
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27%23748F9F%27%3E%3Ccircle cx=%277.5%27 cy=%273.5%27 r=%272%27/%3E%3Ccircle cx=%2716.5%27 cy=%273.5%27 r=%272%27/%3E%3Crect x=%273%27 y=%276%27 width=%2718%27 height=%274.5%27 rx=%272%27 ry=%272%27/%3E%3Crect x=%273%27 y=%2712.5%27 width=%2718%27 height=%279.5%27 rx=%273.5%27 ry=%273.5%27/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 20px !important;
  padding-right: 40px !important;
  position: relative !important;
  cursor: pointer !important;
}

.order-form input[name="ArrivalDate"]:focus,
.order-form input[name="DepartureDate"]:focus {
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27%23EF6860%27%3E%3Ccircle cx=%277.5%27 cy=%273.5%27 r=%272%27/%3E%3Ccircle cx=%2716.5%27 cy=%273.5%27 r=%272%27/%3E%3Crect x=%273%27 y=%276%27 width=%2718%27 height=%274.5%27 rx=%272%27 ry=%272%27/%3E%3Crect x=%273%27 y=%2712.5%27 width=%2718%27 height=%279.5%27 rx=%273.5%27 ry=%273.5%27/%3E%3C/svg%3E") !important;
}

/* Custom Dropdown Clear Cross */
.select-wrap .select-value.selected {
  padding-right: 60px !important;
}

.select-wrap .select-value .select-clear {
  position: absolute !important;
  right: 40px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 16px !important;
  height: 16px !important;
  font-size: 20px !important;
  line-height: 16px !important;
  color: #8296A9 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
  transition: color 0.2s ease !important;
}

.select-wrap .select-value .select-clear:hover {
  color: #EF6860 !important;
}

@media (min-width: 1200px) {
  .content .page-wrapper .aside-basket-info {
    position: sticky !important;
    top: 200px !important;
    max-height: calc(100vh - 250px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  @supports (-moz-appearance: none) {
    .content .page-wrapper .aside-basket-info {
      scrollbar-width: thin !important;
      scrollbar-color: rgba(7, 50, 72, 0.15) transparent !important;
    }
  }

  .content .page-wrapper .aside-basket-info::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
  }

  .content .page-wrapper .aside-basket-info::-webkit-scrollbar-track {
    background: transparent !important;
  }

  .content .page-wrapper .aside-basket-info::-webkit-scrollbar-thumb {
    background-color: rgba(7, 50, 72, 0.2) !important;
    border-radius: 10px !important;
    transition: background-color 0.2s ease !important;
  }

  .content .page-wrapper .aside-basket-info::-webkit-scrollbar-thumb:hover {
    background-color: rgba(7, 50, 72, 0.35) !important;
  }
}