﻿/* ==========================================
SurveyJS Custom Theme
Fixed Dropdown / Icon / Floating Label
========================================== */

.sd-question {
    border: none;
    transition: .3s;
}

    .sd-question:hover {
        border-color: #cbd5e1;
        box-shadow: 0 8px 24px rgba(0,0,0,.06);
    }

/* ==========================================
Inputs
========================================== */

.sd-input {
    height: 45px !important;
    /*padding: 18px 58px 6px 16px !important;*/
    border: 1px solid #dbe2ea !important;
    /*border-radius: 14px !important;*/
    background: #fff !important;
    transition: .25s;
    box-shadow: none !important;
}

    .sd-input:hover {
        border-color: #94a3b8 !important;
    }

    .sd-input:focus {
        border-color: #64748b !important;
        box-shadow: 0 0 0 4px rgba(100,116,139,.1) !important;
    }

/* ==========================================
Buttons
========================================== */

.sd-btn {
    background: #334155 !important;
    border: none !important;
    color: #fff !important;
    border-radius: 14px !important;
    padding: 12px 28px !important;
    font-weight: 600;
    transition: .3s;
}

    .sd-btn:hover {
        background: #1e293b !important;
        transform: translateY(-1px);
    }

/* ==========================================
Progress
========================================== */

.sd-progress {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}

.sd-progress__bar {
    background: #64748b;
}

/* ==========================================
Select / Choice
========================================== */

.sd-selectbase__item {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 16px;
    transition: .25s;
    background: #fff;
}

    .sd-selectbase__item:hover {
        border-color: #94a3b8;
        background: #f8fafc;
    }

.sd-item--checked {
    background: #f8fafc;
    border-color: #64748b;
}

/* ==========================================
Image Picker / Ranking
========================================== */

.sd-imagepicker__item,
.sd-ranking-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

/* ==========================================
Panels
========================================== */

.sd-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 24px;
    margin: 0 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    transition: .3s;
}

    .sd-panel:hover {
        border-color: #cbd5e1;
        box-shadow: 0 12px 30px rgba(0,0,0,.06);
    }

.sd-panel__title {
    background: #f1f5f9;
    color: #0f172a !important;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 19px;
    font-weight: 700;
    margin: -4px -4px 0 -4px;
    border: 1px solid #e2e8f0;
}

.sd-panel__description {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
}

.sd-panel__content {
    padding-top: 0 !important;
}

.sd-panel__header {
    padding: 10px 0 !important;
}

/* ==========================================
Dynamic Panel
========================================== */

.sd-paneldynamic {
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0,0,0,.03);
}

.sd-paneldynamic__panel {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
}

.sd-paneldynamic__btn-add,
.sd-matrixdynamic__btn-add {
    /*background: #475569 !important;*/
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
}

.sd-matrixdynamic__remove-btn {
    /*background: #dc2626 !important;*/
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
}

/* ==========================================
Matrix
========================================== */

.sd-table-wrapper {
    /*border-radius: 24px;*/
    overflow: hidden;
    /*border: 1px solid #e5e7eb;*/
    /*box-shadow: 0 4px 20px rgba(0,0,0,.03);*/
}

.sd-matrix {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff;
}

    .sd-matrix thead tr {
        background: #f1f5f9;
    }

    .sd-matrix thead th {
        color: #334155 !important;
        /*font-weight: 700;*/
        /*padding: 18px !important;*/
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .sd-matrix tbody tr {
        transition: .25s;
    }

        .sd-matrix tbody tr:nth-child(even) {
            background: #fafafa;
        }

        .sd-matrix tbody tr:hover {
            background: #f8fafc;
        }

    .sd-matrix tbody td {
        /*padding: 14px !important;*/
        border-color: #e5e7eb !important;
    }

        .sd-matrix tbody td:has(input:checked) {
            background: #f1f5f9;
        }

.sd-row__question:hover {
    background: #fafafa;
}

.sd-matrix input[type="radio"],
.sd-matrix input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
    accent-color: #475569;
}

/* ==========================================
Floating Field
========================================== */

.floating-field {
    position: relative;
    margin-top: 8px;
    /*overflow:hidden*/
}
/*
    .floating-field::before {
        content: "ًں“‌";
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        font-size: 14px;
        z-index: 3;
        pointer-events: none;
    }*/

.floating-label {
    position: absolute;
    right: 2px;
    top: 10px;
    font-size: 13px;
    color: #94a3b8;
    background: #fff;
    padding: 0 6px;
    pointer-events: none;
    transition: .2s ease;
    z-index: 5;
}

.floating-field.active .floating-label {
    top: -9px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

/* ==========================================
Global Fixes For Dropdowns
========================================== */

.floating-field input,
.floating-field textarea,
.floating-field select,
.floating-field .sd-input,
.floating-field .sd-dropdown,
.floating-field .sd-dropdown input,
.floating-field .sd-dropdown__value {
    padding-right: 10px !important;
    text-indent: 0 !important;
}

.sd-dropdown__expand-button {
    right: 52px !important;
}

.sd-dropdown__value,
.sd-dropdown input,
.sd-dropdown__filter-string {
    text-indent: 0 !important;
}

/* ==========================================
Layout Fixes
========================================== */

.sd-row {
    margin-top: 4px !important;
}

.sd-element__header::after {
    display: none !important;
}

/* Dropdown popup clipping fix */

.sd-text__content{
    overflow: hidden !important;
}

.sd-file__decorator {
    min-height: 60px !important
}

.sd-file {
    min-height: 100px !important
}

#surveyElement *{
    font-weight:normal
}

input.sd-input--readonly {
    background:#f0f0f0!important
}