.hm-phone-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    min-height: 48px;
    background: #fff;
}

.hm-country-code {
    padding: 0 16px;
    font-weight: 600;
    border-right: 1px solid #ddd;
    white-space: nowrap;
}

#hm-login-mobile,
#otpInput {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100%;
    padding: 12px 15px;
    min-height: 48px;
}

#hm-login-mobile:focus,
#otpInput:focus {
    box-shadow: none;
}

.hm-form__stack {
    margin-top: 20px;
}

.mobile-error,
.otp-error,
.hm-form-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #d93025;
}

.hm-card .hm-btn,
.hm-blog-content a,
.hm-footer a,
.hm-inline-search button {
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.hm-card .hm-btn:hover,
.hm-blog-content a:hover,
.hm-footer a:hover,
.hm-inline-search button:hover {
    transform: translateY(-1px);
}

.hm-requirement-form input,
.hm-requirement-form select,
.hm-form input,
.hm-form select,
.hm-form textarea {
    min-height: 48px;
}

.hm-form textarea {
    min-height: 120px;
}

.hm-mega-menu__sidebar .hm-mega-menu__sidebar-tab {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 42px;
    padding: 9px 12px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #17324d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hm-mega-menu__sidebar .hm-mega-menu__sidebar-tab:hover,
.hm-mega-menu__sidebar .hm-mega-menu__sidebar-tab.is-active {
    color: #d96a15;
    background: rgba(244, 124, 32, 0.11);
}

.hm-mega-menu__sidebar .hm-mega-menu__sidebar-tab:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 124, 32, 0.16);
}

.hm-modal {
    align-items: center;
    padding: 20px;
}

.hm-modal__dialog--form {
    width: calc(100% - 32px);
    max-width: 850px;
    max-height: calc(100vh - 40px);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hm-modal__header {
    position: relative;
    flex: 0 0 auto;
    padding: 30px 32px 18px;
    background: #ffffff;
    border-bottom: 1px solid #eef3f8;
    z-index: 2;
}

.hm-modal__header .hm-modal__brand {
    margin-bottom: 0;
    padding-right: 64px;
}

.hm-modal__header .hm-modal__close {
    position: absolute;
    top: 24px;
    right: 24px;
}

.hm-modal__body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 32px 32px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.hm-form--modal {
    gap: 20px;
    padding-bottom: 12px;
}

.hm-form--modal .hm-form__grid {
    gap: 18px 16px;
}

.hm-form--modal .hm-form__group {
    min-width: 0;
}

.hm-form--modal .hm-form__group input,
.hm-form--modal .hm-form__group select,
.hm-form--modal .hm-form__group textarea,
.hm-form--modal .hm-upload-ui,
.hm-form--modal .select2-container .select2-selection--single,
.hm-form--modal .select2-container .select2-selection--multiple {
    width: 100%;
    min-height: 56px;
    border: 1px solid #d9e3ef;
    border-radius: 18px;
    background: #f6f8fb;
    color: #17324d;
    font-size: 15px;
    line-height: 1.35;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hm-form--modal .hm-form__group input,
.hm-form--modal .hm-form__group select,
.hm-form--modal .hm-form__group textarea,
.hm-form--modal .hm-upload-ui {
    padding: 14px 18px;
}

.hm-form--modal .hm-form__group textarea {
    min-height: 132px;
    resize: vertical;
}

.hm-form--modal .hm-form__group input::placeholder,
.hm-form--modal .hm-form__group textarea::placeholder,
.hm-form--modal .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #8a97a8;
}

.hm-form--modal .hm-form__group input:focus,
.hm-form--modal .hm-form__group select:focus,
.hm-form--modal .hm-form__group textarea:focus,
.hm-form--modal .hm-upload-ui:focus,
.hm-form--modal .select2-container--default.select2-container--focus .select2-selection--single,
.hm-form--modal .select2-container--default.select2-container--open .select2-selection--single {
    border-color: rgba(244, 124, 32, 0.55);
    box-shadow: 0 0 0 4px rgba(244, 124, 32, 0.12);
    background: #ffffff;
    outline: none;
}

.hm-form--modal .select2-container {
    width: 100% !important;
}

.hm-form--modal .select2-container .selection {
    display: block;
}

.hm-form--modal .select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    padding: 0 48px 0 18px;
}

.hm-form--modal .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    color: #17324d;
    line-height: 1.35;
}

.hm-form--modal .select2-container--default .select2-selection--single .select2-selection__arrow {
    width: 16px;
    height: 16px;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
}

.hm-form--modal .select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin: 0;
    left: 0;
    top: 0;
    border-width: 6px 5px 0 5px;
    border-color: #7f8ea3 transparent transparent transparent;
}

.hm-modal__dialog--form .select2-dropdown {
    border: 1px solid #d9e3ef;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(16, 32, 51, 0.12);
}

.hm-modal__dialog--form .select2-search--dropdown {
    padding: 12px;
    background: #ffffff;
}

.hm-modal__dialog--form .select2-search--dropdown .select2-search__field {
    min-height: 44px;
    border: 1px solid #d9e3ef;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
}

.hm-modal__dialog--form .select2-results__option {
    padding: 10px 14px;
    font-size: 14px;
}

.hm-form--modal .hm-form__submit {
    position: relative;
    z-index: 1;
    margin-top: 4px;
}

@media (max-width: 767px) {
    .hm-modal {
        align-items: stretch;
        padding: 16px;
    }

    .hm-modal__dialog--form {
        width: calc(100% - 24px);
        max-height: calc(100vh - 32px);
    }

    .hm-modal__header {
        padding: 24px 22px 16px;
    }

    .hm-modal__header .hm-modal__brand {
        padding-right: 52px;
    }

    .hm-modal__header .hm-modal__close {
        top: 18px;
        right: 18px;
    }

    .hm-modal__body {
        padding: 20px 22px 28px;
    }

    .hm-form--modal .hm-form__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hm-btn,
    .hm-inline-search button {
        min-height: 46px;
    }
}

@media (max-width: 575px) {
    .hm-modal {
        padding: 12px;
    }

    .hm-modal__dialog--form {
        width: calc(100% - 16px);
        max-height: calc(100vh - 24px);
        border-radius: 18px;
    }

    .hm-modal__header {
        padding: 20px 16px 14px;
    }

    .hm-modal__header .hm-modal__brand {
        gap: 12px;
        padding-right: 44px;
    }

    .hm-modal__header .hm-modal__brand img {
        max-width: 56px;
    }

    .hm-modal__header .hm-modal__brand h3 {
        font-size: 22px;
    }

    .hm-modal__header .hm-modal__close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .hm-modal__body {
        padding: 18px 16px 24px;
    }

    .hm-form--modal .hm-form__group input,
    .hm-form--modal .hm-form__group select,
    .hm-form--modal .hm-form__group textarea,
    .hm-form--modal .hm-upload-ui,
    .hm-form--modal .select2-container .select2-selection--single {
        min-height: 52px;
        border-radius: 16px;
        font-size: 14px;
    }

    .hm-form--modal .hm-form__group textarea {
        min-height: 120px;
    }
}
