/*
 * Prisma Technologies SRL - Core CSS Overrides
 * Modernizes the visual appearance of HESK customer-facing pages.
 * This file loads AFTER all core CSS files, so it overrides any core rule.
 */

/* ============================================================
   1. GLOBAL TYPOGRAPHY & BASE
   ============================================================ */

.wrapper {
    font-family: 'Inter', Lato, Arial, sans-serif;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

.search__title,
.select__title,
.article__heading,
.navlink .navlink__title,
.preview .preview__title,
h1, h2, h3 {
    font-family: 'Inter', Lato, Arial, sans-serif;
}

a {
    transition: color 150ms ease, background-color 150ms ease;
}


/* ============================================================
   2. HEADER
   ============================================================ */

.cust-help .header {
    border-bottom: none;
    box-shadow: 0 2px 12px 0 rgba(27, 42, 91, 0.12);
    position: relative;
    z-index: 10;
}

.cust-help .header__inner {
    padding: 10px 0;
}

.cust-help .header__logo {
    display: inline-flex;
    align-items: center;
    font-size: 0;
}

.cust-help .header__logo img {
    height: 40px;
    width: auto;
    display: block;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 6px;
}

.header .user__ava {
    width: 36px;
    height: 36px;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: border-color 150ms ease;
}

.header .user__ava:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.header .profile__user .profile__menu {
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(27, 42, 91, 0.15);
    border: 1px solid rgba(27, 42, 91, 0.08);
    overflow: hidden;
    margin-top: 8px;
}


/* ============================================================
   3. BREADCRUMBS
   ============================================================ */

.breadcrumbs {
    background-color: rgba(27, 42, 91, 0.03);
    border-bottom: 1px solid rgba(27, 42, 91, 0.06);
}

.breadcrumbs__inner {
    padding: 10px 0;
    font-size: 13px;
}

.breadcrumbs__inner a {
    font-weight: 500;
}


/* ============================================================
   4. HERO SEARCH SECTION
   ============================================================ */

.help-search {
    background: linear-gradient(135deg, #1B2A5B 0%, #2E4A8A 60%, #3A6BA8 100%);
    border-radius: 14px;
    padding: 48px 40px 44px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.help-search::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(77, 184, 217, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.help-search::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232, 97, 26, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

h1.search__title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.search__form {
    position: relative;
    z-index: 1;
}

.search__form .form-group {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.search__form .form-group input.form-control {
    border: none;
    background: transparent;
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    color: #1B2A5B;
}

.search__form .form-group input.form-control::placeholder {
    color: #8A95AA;
}

.search__form .form-group input.form-control:focus {
    outline: none;
    box-shadow: none;
    color: #1B2A5B;
}

.search__form .search__submit {
    background: transparent;
}

.search__form .search__submit .icon-search {
    fill: #E8611A;
    font-size: 18px;
}

.search__form #search-button {
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kb-suggestions.boxed {
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(27, 42, 91, 0.12);
    border: 1px solid rgba(27, 42, 91, 0.06);
    margin-top: 12px;
}


/* ============================================================
   5. NAVIGATION CARDS (.navlink)
   ============================================================ */

.nav {
    gap: 20px;
    margin: 24px 0;
}

.navlink {
    max-width: 380px;
    margin: 0;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(27, 42, 91, 0.08);
    border: 1px solid rgba(27, 42, 91, 0.06);
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.navlink::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #E8611A 0%, #F5A623 50%, #4DB8D9 100%);
    opacity: 0;
    transition: opacity 250ms ease;
}

.navlink:hover {
    box-shadow: 0 8px 25px rgba(27, 42, 91, 0.14);
    transform: translateY(-2px);
    border-color: rgba(77, 184, 217, 0.2);
}

.navlink:hover::before {
    opacity: 1;
}

.navlink .navlink__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.navlink .navlink__descr {
    font-size: 13px;
    line-height: 1.5;
    margin-top: 4px;
    color: #6B7A94;
}

.navlink .icon-in-circle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    margin-right: 16px;
    border-radius: 50%;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.navlink .icon-in-circle .icon {
    font-size: 22px;
}

.navlink:hover > .icon-in-circle {
    transform: scale(1.08);
}

.navlink-condensed {
    margin: 0;
    padding: 14px 18px;
    border-radius: 6px;
}


/* ============================================================
   6. KNOWLEDGE BASE TABS
   ============================================================ */

.tabbed__head {
    border-bottom: 2px solid #E2E8F0;
    margin-bottom: 0;
}

.tabbed__head .tabbed__head_tabs li {
    border-radius: 6px 6px 0 0;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 200ms ease;
    background-color: transparent;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
}

.tabbed__head .tabbed__head_tabs li:not(.current):hover {
    background-color: rgba(46, 74, 138, 0.06);
    color: #1B2A5B;
    border-bottom-color: rgba(46, 74, 138, 0.3);
}

.tabbed__head .tabbed__head_tabs li.current {
    background-color: #ffffff;
    border-bottom-color: #E8611A;
    color: #1B2A5B;
    box-shadow: 0 -2px 8px rgba(27, 42, 91, 0.06);
}


/* ============================================================
   7. ARTICLE PREVIEW CARDS
   ============================================================ */

.preview {
    padding: 20px;
    border-bottom: 1px solid #EDF2F7;
    transition: all 200ms ease;
    border-radius: 0;
}

.tabbed__tabs_tab .preview:last-child {
    border-bottom: none;
}

.preview:hover {
    background-color: #F0F7FF;
}

.preview .preview__title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin-bottom: 4px;
}

.preview .icon-in-circle {
    margin-right: 14px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    flex-shrink: 0;
}

.preview .icon-in-circle .icon {
    font-size: 16px;
}


/* ============================================================
   8. ARTICLE SECTION
   ============================================================ */

.article {
    margin-top: 40px;
    margin-bottom: 36px;
}

.article__heading {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.article__footer {
    margin: 28px 0 8px;
    text-align: center;
}

.topics__block {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(27, 42, 91, 0.06);
}


/* ============================================================
   9. BUTTONS
   ============================================================ */

.btn {
    border-radius: 6px;
    font-weight: 500;
    font-family: 'Inter', Lato, Arial, sans-serif;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-full {
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    padding: 5px 20px;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-full:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 97, 26, 0.3);
}

.btn--blue-border {
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--blue-border:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 74, 138, 0.2);
}

.btn-border {
    border-radius: 6px;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-border:hover {
    transform: translateY(-1px);
}


/* ============================================================
   10. FORM INPUTS, SELECTS & DROPDOWNS
   ============================================================ */

/* --- Text inputs & textareas --- */
.form-control {
    border-radius: 8px;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form input.form-control,
.form textarea.form-control {
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    padding: 8px 14px;
    font-size: 14px;
    background-color: #F8FAFF;
}

.form textarea.form-control {
    padding: 12px 14px;
    font-family: 'Inter', Lato, Arial, sans-serif;
}

.form input.form-control:hover,
.form textarea.form-control:hover {
    border-color: #94A3B8;
}

.form input.form-control:focus,
.form textarea.form-control:focus {
    border-color: #4DB8D9;
    box-shadow: 0 0 0 3px rgba(77, 184, 217, 0.15);
    background-color: #ffffff;
}

/* Error state inputs */
.form.invalid .form-control.isError,
.form-group.error input {
    border-color: #E53E3E;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* --- Selectize.js dropdowns --- */
.selectize-input {
    border-radius: 8px;
}

.selectize-control .selectize-input {
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    background-color: #F8FAFF;
}

.selectize-control .selectize-input:hover {
    border-color: #94A3B8;
}

.selectize-control .selectize-input.focus,
.selectize-control .selectize-input.input-active {
    border-color: #4DB8D9 !important;
    box-shadow: 0 0 0 3px rgba(77, 184, 217, 0.15);
    background-color: #ffffff !important;
}

.selectize-input.dropdown-active {
    border-radius: 8px 8px 0 0;
}

.selectize-control .selectize-dropdown {
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 16px rgba(27, 42, 91, 0.12);
    border: 1px solid #CBD5E1;
    border-top: none;
    overflow: hidden;
}

.selectize-dropdown-content {
    border: none;
    border-radius: 0 0 8px 8px;
}

.selectize-control .selectize-dropdown .option {
    transition: background-color 150ms ease, color 150ms ease;
    padding: 0 16px;
}

.selectize-control .selectize-dropdown .option:last-child {
    border-radius: 0 0 8px 8px;
}

/* Category select (large dropdown) */
.cat-select {
    border-radius: 8px;
}

@media screen and (min-width: 900px) {
    .cat-select .selectize-input {
        border-radius: 8px;
    }
    .cat-select .selectize-input.dropdown-active {
        border-radius: 8px 8px 0 0;
    }
}

/* --- HESK custom dropdown-select --- */
.dropdown:not(.right) .label,
.dropdown-select:not(.right) .label,
.form-group .dropdown:not(.right) .label,
.form-group .dropdown-select:not(.right) .label,
.dropdown:not(.right) label,
.dropdown-select:not(.right) label,
.form-group .dropdown:not(.right) label,
.form-group .dropdown-select:not(.right) label {
    border-radius: 8px;
    border-color: #CBD5E1;
    background-color: #F8FAFF;
    transition: all 200ms ease;
}

.dropdown:not(.right):hover .label,
.dropdown-select:not(.right):hover .label,
.dropdown:not(.right):hover label,
.dropdown-select:not(.right):hover label {
    border-color: #94A3B8;
}

/* Header language dropdown: transparent on navy background */
.header__lang .dropdown:not(.right) .label,
.header__lang .dropdown-select:not(.right) .label,
.header__lang .dropdown:not(.right) label,
.header__lang .dropdown-select:not(.right) label {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.header__lang .dropdown:not(.right):hover .label,
.header__lang .dropdown-select:not(.right):hover .label,
.header__lang .dropdown:not(.right):hover label,
.header__lang .dropdown-select:not(.right):hover label {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.header__lang .dropdown:not(.right) .label span,
.header__lang .dropdown-select:not(.right) .label span {
    color: #ffffff;
}

.dropdown .dropdown-list,
.dropdown-select .dropdown-list,
.with-label .dropdown-list {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(27, 42, 91, 0.12);
    border: 1px solid #CBD5E1;
    overflow: hidden;
}

.dropdown .dropdown-list > li:first-child,
.dropdown-select .dropdown-list > li:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown .dropdown-list > li:last-child,
.dropdown-select .dropdown-list > li:last-child {
    border-radius: 0 0 8px 8px;
}

/* --- Native select fallback --- */
select.form-control {
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    background-color: #F8FAFF;
    padding: 8px 14px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234A5A7A' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    padding-right: 36px;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

select.form-control:hover {
    border-color: #94A3B8;
}

select.form-control:focus {
    border-color: #4DB8D9;
    box-shadow: 0 0 0 3px rgba(77, 184, 217, 0.15);
    outline: none;
}

/* --- Form labels refinement --- */
.form-group label,
.form .label {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

/* --- Form submit ticket container --- */
.form-submit-ticket {
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(27, 42, 91, 0.08);
    border: 1px solid rgba(27, 42, 91, 0.06);
    padding: 28px 32px 48px;
}

/* --- Captcha block --- */
.captcha-block .form-captcha img {
    border-radius: 6px;
}

/* --- Dropzone (file attachments) --- */
.wrapper .dropzone {
    border-radius: 8px;
    border: 2px dashed #CBD5E1;
    transition: border-color 200ms ease, background-color 200ms ease;
}

.wrapper .dropzone:hover {
    border-color: #4DB8D9;
    background-color: rgba(77, 184, 217, 0.03);
}


/* ============================================================
   11. NOTIFICATIONS & ALERTS
   ============================================================ */

.notification {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(27, 42, 91, 0.06);
    overflow: hidden;
}

.alert {
    border-radius: 6px;
}

.alert__inner {
    padding: 20px 24px;
}


/* ============================================================
   12. TABLE (MY TICKETS)
   ============================================================ */

.table-wrap {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(27, 42, 91, 0.06);
    border: 1px solid rgba(27, 42, 91, 0.06);
    overflow: hidden;
}

.table-wrap .table thead th {
    padding: 14px 16px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table-wrap .table tbody td {
    padding: 16px;
    font-size: 14px;
}


/* ============================================================
   13. CATEGORY SELECTION PAGE
   ============================================================ */

.select__title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}


/* ============================================================
   14. TICKET VIEW & SUBMIT FORMS
   ============================================================ */

.ticket__body_block {
    border-radius: 10px;
}

.article__heading.article__heading--form {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}


/* ============================================================
   15. FOOTER
   ============================================================ */

.footer {
    padding: 16px 0;
    font-size: 12px;
}

.footer a.link {
    font-weight: 500;
}


/* ============================================================
   16. LOADING OVERLAY
   ============================================================ */

.loading-message {
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(27, 42, 91, 0.15);
}

.spinner {
    border-top-color: #E8611A;
}


/* ============================================================
   17. KB SEARCH SUGGESTIONS
   ============================================================ */

.suggest-preview {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: background-color 150ms ease;
}


/* ============================================================
   18. ICON CIRCLES (global)
   ============================================================ */

.icon-in-circle {
    border-radius: 50%;
    transition: all 200ms ease;
}


/* ============================================================
   19. RESPONSIVE
   ============================================================ */

@media screen and (max-width: 900px) {
    .help-search {
        padding: 32px 24px 28px;
    }

    h1.search__title {
        font-size: 22px;
    }

    .nav {
        gap: 12px;
    }

    .navlink {
        max-width: 100%;
        padding: 18px;
    }

    .table-wrap {
        border-radius: 6px;
    }
}

@media screen and (max-width: 640px) {
    .help-search {
        padding: 24px 16px 20px;
        border-radius: 10px;
    }

    h1.search__title {
        font-size: 20px;
    }

    .navlink .icon-in-circle {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    .navlink .navlink__title {
        font-size: 15px;
    }

    .select__title {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .help-search {
        padding: 20px 12px 16px;
        border-radius: 8px;
    }
}
