/*
    Smart Consultations
*/

:root {
    --ss-font: "Inter";
    --ss-white: #fff;
    --ss-black: #222222;
    --ss-black-secondary: #424242;
    --ss-grey: #ccc;
    --spacing-base: 4px;
    --box-shadow-default: 0px 12px 20px 0px #0000000D;
    --ss-space-1: calc(var(--spacing-base) * 1);
    --ss-space-2: calc(var(--spacing-base) * 2);
    --ss-space-3: calc(var(--spacing-base) * 3);
    --ss-space-4: calc(var(--spacing-base) * 4);
    --ss-space-5: calc(var(--spacing-base) * 5);
    --ss-space-6: calc(var(--spacing-base) * 6);
    --ss-space-7: calc(var(--spacing-base) * 7);
    --ss-space-8: calc(var(--spacing-base) * 8);
    --ss-space-9: calc(var(--spacing-base) * 9);
    --ss-space-10: calc(var(--spacing-base) * 10);
}

.ss-gap-1 {
    gap: var(--ss-space-1) !important;
}

.ss-gap-2 {
    gap: var(--ss-space-2) !important;
}

.ss-gap-3 {
    gap: var(--ss-space-3) !important;
}

.ss-mb-3 {
    margin-bottom: var(--ss-space-3) !important;
}

.ss-mb-4 {
    margin-bottom: var(--ss-space-4) !important;
}

.ss-mb-5 {
    margin-bottom: var(--ss-space-5) !important;
}

.ss-mb-6 {
    margin-bottom: var(--ss-space-6) !important;
}

.ss-mb-10 {
    margin-bottom: var(--ss-space-10) !important;
}

.ss-mt-1 {
    margin-top: var(--ss-space-1) !important;
}

.ss-mt-6 {
    margin-top: var(--ss-space-6) !important;
}

.ss-mt-10 {
    margin-top: var(--ss-space-10) !important;
}

/* Survey page */
.consultation-survey {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--ss-space-6);
    align-items: start;
}

.consultation-survey__sidebar-card {
    background: var(--ss-white);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: var(--ss-space-6);
    box-shadow: var(--box-shadow-default);
}

.consultation-survey__sidebar-title {
    margin: 0 0 var(--ss-space-2) 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ss-black-secondary);
}

.consultation-survey__sidebar-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--ss-black);
}

.survey-iframe {
    width: 100%;
    min-height: 600px;
}

@media (max-width: 992px) {
    .consultation-survey {
        grid-template-columns: 1fr;
    }
}

html, body {
    font-family: var(--ss-font), sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 14px;
}

/* Sticky Footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #FBFCFD;
}

.container-fluid {
    max-width: 1392px;
}

.wrapper {
    flex: 1;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* Header */
.header {
    background-color: var(--ss-white);
    padding: var(--ss-space-6) var(--ss-space-6) var(--ss-space-3) var(--ss-space-6);
    border-bottom: 1px solid #eee;

    .btn {
        height: 40px;
    }

    .btn-outline-secondary {
        background-color: var(--ss-white);
        border: 1px solid var(--ss-grey);
        color: var(--ss-black-secondary);
    }

    .ss-search-bar .form-control {
        width: 320px;
    }
}

    .header .form-control {
        width: 100%;
        max-width: 320px;
    }

.header__bottom {
    border-top: 1px solid var(--ss-grey);
    margin-top: var(--ss-space-3);
    padding-top: var(--ss-space-3);
}

.header__nav-list {
    display: flex;
    gap: 32px;
    margin: 0;
}

.header__nav-link {
    position: relative;
    display: block;
    line-height: 40px;
    text-decoration: none;
    color: var(--ss-black);
    font-weight: 500;
    font-size: 16px;

    &:after {
        content: '';
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        opacity: 0;
        width: 100%;
        height: 1px;
        background-color: var(--consultations-primary);
        transition: opacity 0.3s;
    }
}

    .header__nav-link--active,
    .header__nav-link:hover,
    .header__nav-link:focus-within,
    .header__nav-link:hover:active {
        &::after {
            opacity: 100%;
        }
    }

/* Search Bar */
.ss-search-bar {
    position: relative;

    .fa-search {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 16px;
        font-size: 12px;
    }

    .form-control {
        padding-left: var(--ss-space-10);
    }
}

/* Home */
.hero {
    position: relative;
    height: 500px;
    background-position: center;
    background-size: cover;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.hero__content {
    max-width: 740px;
    width: 100%;
    position: absolute;
    bottom: -66px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--ss-white);
    padding: var(--ss-space-10);
    box-shadow: var(--box-shadow-default);
    border-radius: 8px;

    .ss-search-bar {
        width: 100%;
    }

    .btn-square.btn-lg {
        flex: 0 0 52px !important;
    }
}

.hero__heading {
    font-size: 40px;
    line-height: 120%;
    font-weight: 600;
    margin-bottom: var(--ss-space-3);
}

.hero__copy {
    font-size: 18px;
    line-height: 150%;
    font-weight: 400;
    margin-bottom: var(--ss-space-3);
}

/* Consultations List */
.consultations-list {
    padding: 0 0 var(--ss-space-10) 0;
    margin-top: 106px;
}

.consultations-list__tabs {
    display: flex;
    position: relative;
    margin-bottom: var(--ss-space-6);
    z-index: 1;

    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        border-bottom: 3px solid var(--ss-grey);
        z-index: -1;
    }
}

.consultations-list__tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 150%;
    height: 62px;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    color: var(--ss-black);
    cursor: pointer;
    transition: border-bottom 0.3s;
}

    .consultations-list__tab:hover,
    .consultations-list__tab--active {
        border-bottom: 3px solid var(--consultations-primary);
    }

.category-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.category-button {
    padding: 0 12px;
    background-color: white;
    border: 1px solid var(--ss-grey);
    border-radius: 4px;
    color: var(--ss-black-secondary);
    height: 32px;
    line-height: 31px;
    transition: all 0.3s;
    text-decoration: none;
}

.category-button:not([disabled]) {
    cursor: pointer;
}

    .category-button:not([disabled]):hover,
    .category-button--active:not([disabled]) {
        background-color: #EEEEEE;
    }

.consultations-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

/* Consultation Card */
.consultation-card {
    background: white;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 10.7px 0 #00000012;
}

.consultation-card__header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: var(--ss-space-6);
    flex-wrap: wrap;
}

.consultation-card__status {
    font-size: 12px;
    font-weight: 600;
}

.button-category {
    font-size: 12px;
    font-weight: 500;
}

.consultation-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.consultation-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--ss-space-6);
    color: #212529;
    line-height: 120%;
}

.consultation-card__description {
    font-size: 14px;
    line-height: 150%;
    margin-bottom: var(--ss-space-6);
    flex: 1;
    min-height: 104px;
}

.stat-list {
    display: flex;
    flex-direction: column;
    gap: var(--ss-space-4);
    margin-bottom: var(--ss-space-6);
    font-size: 14px;
    color: var(--ss-black-secondary);
}

.stat-list__item {
    display: flex;
    align-items: center;
    gap: var(--ss-space-2);
    font-weight: 500;

    p {
        margin: 0;
    }

    a {
        text-decoration: none;
        color: var(--consultations-primary);
    }
}

.stat-list__item--lg {
    font-size: 16px;
}

.stat-list__item i {
    width: 20px;
    transform: translateY(1px);
}

.contact {
    color: var(--ss-black-secondary);
    display: flex;
    flex-direction: column;
    gap: var(--ss-space-2);
}

.contact__name {
    font-size: 16px;
    font-weight: 600;
}

.contact__title {
    font-size: 14px;
    font-weight: 400;
}

.consultation-card__footer .btn {
    width: 100%;
    justify-content: center;
}

/*  Divider */
.divider {
    position: relative;
    z-index: 1;
    text-align: center;

    &::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 1px;
        transform: translateY(-50%);
        background-color: #C1C4D1;
        z-index: -1;
    }

    span {
        background-color: var(--ss-white);
        padding: 0 var(--ss-space-2);
    }
}

/* Item List */
.item-list {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--ss-space-2);

    li {
        list-style: none;
        line-height: 150%;
        font-size: 14px;
        color: var(--ss-black-secondary);
        font-weight: 400;
    }
}

/* Login */
.login-container {
    min-height: 100vh;
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: #fbfcfd;
    display: flex;
    align-items: center;
    justify-content: center;

    .login-form {
        display: flex;
        flex-direction: column;
        gap: var(--ss-space-6);
        background-color: var(--ss-white);
        box-shadow: 0 6px 10.7px 0 #00000012;
        padding: var(--ss-space-6);
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .logo {
        display: block;
        text-align: center;

        img {
            max-height: 64px;
            max-width: 100%;
        }
    }

    h1 {
        font-size: 20px;
        line-height: 120%;
        font-weight: 600;
        text-align: center;
        margin: 0;
    }

    p {
        text-align: center;
        margin-bottom: 0;
    }

    .form-group {
        .form-label {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: var(--ss-space-2);
            color: var(--ss-black-secondary);
        }
    }

    a.signup {
        text-decoration: none;
        color: var(--consultations-primary);
    }

    a:not(.btn) {
        text-decoration: underline;
        color: var(--ss-black);
    }
}

/* Interests Buttons */
.interests-buttons {
    display: flex;
    gap: var(--ss-space-3);
    flex-wrap: wrap;

    .interests-button {
        display: block;
        line-height: 30px;
        padding: 0 var(--ss-space-3);
        background-color: white;
        border: 1px solid var(--ss-grey);
        border-radius: 4px;
        color: var(--ss-black-secondary);
        cursor: pointer;
        transition: all 0.3s;
    }

        .interests-button:hover,
        .interests-button--active {
            border-color: var(--consultations-primary);
            outline: 1px solid var(--consultations-primary);
            background-color: transparent;
        }
}

/* Detail Sidebar */
.detail-sidebar {
    position: sticky;
    top: var(--ss-space-6);
}

/* Password Field */
.form-field-password {
    position: relative;
}

    .form-field-password .form-field-password__icon {
        position: absolute;
        top: 50%;
        right: 16px;
        transform: translateY(-50%);
        cursor: pointer;
    }

    .form-field-password [data-lastpass-icon-root] + .form-field-password__icon {
        right: 50px;
    }

/* Survey Iframe */
.survey-iframe {
    width: 100%;
    height: 800px;
}

/* Footer */
.footer {
    padding: var(--ss-space-6);
    background-color: var(--ss-white);
}
