:root {
    --primary-color: #0d6efd;
    --secondary-color: #7c3aed;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f9fafb;
}

.navbar {
    padding: 15px;
    background: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1f2937;
    padding: 10rem 0 7rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(1px);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.display-4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #111827;
}

.lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #6b7280;
}

.btn-hero {
    background-color: var(--primary-color);
    border: none;
    padding: 8px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    color: white;
}

.btn-hero:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-add {
    background-color: var(--primary-color);
    border: none;
    padding: 7px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    color: white;
}

.btn-add:hover {
    background-color: var(--primary-color);
    color: white;
}

.features-section {
    padding: 5rem 0;
    background: white;
}

.feature-card {
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    background: white;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.section-title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    border-radius: 2px;
}

.footer {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #374151;
    padding: 3rem 0 2rem;
}

.footer-content {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    color: #374151 !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-outline-light {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.btn-outline-light:hover {
    background-color: var(--primary-color);
    color: white;
}

.required:after {
    content: "*";
    color: red;
}

.error-message {
    font-weight: 600;
    font-size: 12px;
    color: #f4516c;
    margin-top: 0.2rem;
}

.modal .modal-content .modal-header {
    padding: 15px 25px !important;
    margin: 0;
    background-color: #F2F9FF;
    border-radius: 5px 5px 0 0;
    display: flex;
    justify-content: space-between;
}

/* Forms start */

.form-main-container {
    max-width: 800px;
    margin: 0 auto;
}

.add-question-btn {
    width: 160px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    float: right;
}

.add-question-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transition: all 0.7s;
}

.questions-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
        rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
    padding: 20px;
    position: relative;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-header h2 {
    margin: 0;
    font-size: 18px;
    color: var(--primary-color);
}

.question-header .close-btn {
    cursor: pointer;
    font-size: 24px;
    color: #ffffff;
}

.question-header .close-btn:hover {
    color: #ffffff;
}

.question-middle {
    margin-top: 20px;
    display: flex;
}

.textbox-section {
    width: 55%;
    border-radius: 5px;
    position: relative;
}

.textbox-section h3 {
    font-size: 20px;
}

.textbox-section p {
    font-size: 13px;
    color: #818181;
}

.textbox-section input {
    width: 100%;
    padding: 10px;
    /* border: none; */
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    outline: none;
    border: 1px solid lightgray;
}

.textbox-section button {
    font-size: 14px;
    background-color: #ffd700;
    padding: 10px 50px;
    border-radius: 4px;
    margin-top: 20px;
    border: none;
}

.textbox-section input::placeholder {
    font-size: 13px;
    font-weight: 400;
}

.textbox-section .image-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.textbox-section .image-thumbnails .thumbnail {
    width: 23%;
    height: 80px;
    border: 1px solid lightgray;
    border-radius: 5px;
}

/* Toolbox start */
.toolbox {
    display: flex;
    gap: 10px;
    justify-content: start;
    align-items: center;
}

.toolbox button {
    background-color: #e7e9eb;
    color: #000000;
    border: none;
    padding: 5px 10px !important;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px !important;
}

.toolbox button:hover {
    background-color: #0056b3;
}

.toolbox button:hover,
.toolbox input[type="color"]:hover,
.toolbox .file-upload-btn:hover {
    background-color: #e9e9e9;
}

.toolbox .file-upload-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    margin-top: 10px;
    margin-right: 10px;
    border-radius: 4px;
    color: #757575;
    padding: 4px 10px;
    cursor: pointer;
}

.toolbox .file-upload-btn:hover {
    background-color: lightgray;
    color: #757575;
}

.toolbox .file-upload-btn input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
/* Toolbox end */

.option-list-section {
    flex: 30%;
}

.option-list-section select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #f9f9f9;
    float: right;
}

.dynamic-options {
    width: 100%;
    margin-top: 0px;
}

.dynamic-options .option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    width: 50%;
}

.option-item input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.option-item .close-icon {
    cursor: pointer;
    color: #888;
}

.option-item .close-icon:hover {
    color: #333;
}

.add-more-button {
    background-color: transparent;
    color: #808080;
    border: none;
    padding: 10px 3px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    border: none;
    outline: none;
}

.add-more-button:hover {
    background-color: transparent;
    outline: none;
}

.add-more-button i {
    margin-right: 16px;
    color: #808080;
}

.question-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border-top: 1px solid lightgray;
    padding-top: 15px;
}

.question-footer i.bi.bi-trash3-fill {
    font-size: 18px;
    color: #cccccc;
}

.question-footer i.bi.bi-camera-fill {
    font-size: 22px;
    color: #cccccc;
}

.delete-action .delete-icon {
    cursor: pointer;
    font-size: 24px;
    color: #888;
}

.delete-action .delete-icon:hover {
    color: #333;
}

.footer-options {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.camera-option,
.required-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-options div:after {
    content: "";
    display: block;
    border-right: 2px solid lightgray;
    width: 2px;
    height: 22px;
    position: relative;
    left: 13px;
    top: 0;
}

.footer-options div:last-child:after {
    display: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 35px;
    height: 16px;
    margin-bottom: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 11px;
    width: 11px;
    left: 2px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #007bff;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.add_form_data_inner {
    background-color: #F2F2F2;
    padding: 20px;
    margin-bottom: 3%;
    border-radius: 8px;
}

.add_form_data_inner label {
    color: #000000;
    font-weight: 400;
}

.add_form_data_inner input.form-control,
.add_form_data_inner textarea.form-control {
    border-color: #a6a6a6 !important;
    background-color: transparent !important;
    color: #000000 !important;
    font-weight: 500;
}

.add_form_data_inner input.form-control::placeholder,
.add_form_data_inner textarea.form-control::placeholder {
    color: #959595 !important;
}

.add_form_data_inner input.form-control::placeholder,
.add_form_data_inner textarea.form-control::placeholder {
    color: #a463a4;
    font-size: 13px;
    font-weight: 500;
}

.add_form_data_inner input.form-control::placeholder {
    font-size: 13px;
    font-weight: 500;
    color: #a463a4;
}
/* Forms end */

/* Search form start */
.searchForm {
    background-color: #F2F9FF;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 8px;
    margin-bottom: 0;
    margin-top: 0px;
    border-bottom: none;
    border: 1px solid lightgray;
}

.__searchForm_innerSec {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 0.2rem;
    margin: 0.5rem;
}

.searchForm .form-group {
    position: relative;
    margin: 5px 0;
    max-width: auto;
}

.searchForm .search-frm-topspc {
    padding: 0 5px;
    border: none;
}

.searchForm .form-control {
    width: 100%;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #ffffff;
    color: #000000;
    border: 1px solid #ccc;
    letter-spacing: 0.02rem;
}

.searchForm .form-control:focus {
    border-color: #002f6c;
    outline: none;
}

.searchForm .form-group label {
    position: absolute;
    top: 8px;
    left: 10px;
    background: white;
    padding: 0 4px;
    font-size: 13px;
    color: #000000;
    font-weight: 600;
    letter-spacing: 0.0rem;
    pointer-events: none;
    transition: 0.2s ease all;
}

.searchForm .form-group.filled label,
.searchForm .form-group:has(.form-control:focus) label,
.searchForm .form-group:has(.select2-container--open) label {
    top: -10px;
    font-size: 12px;
    color: #002f6c;
}

.searchForm .select2-container {
    width: 100% !important;
}

.searchForm .select2-selection--single {
    height: 48px !important;
    padding: 10px;
    border: 1px solid rgb(204 204 204)!important;
    border-radius: 4px !important;
    box-sizing: border-box;
}

.searchForm .select2-selection__rendered {
    line-height: 28px !important;
}

.searchForm .select2-selection__arrow {
    height: 100% !important;
}

.searchForm .select2-container .select2-selection--single {
    height: 35px !important;
}

.searchForm .select2-container--default .select2-selection--single .select2-selection__clear {
    cursor: pointer;
    float: right;
    font-weight: normal;
    font-size: 21px;
    height: 26px;
    margin-right: 20px;
    padding-right: 0px;
    position: absolute;
    right: 13px;
    top: 0px;
    color: red;
}

.searchForm .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 20px !important;
    padding: 0!important;
    border: 0px!important;
}

.searchForm .select2-container .select2-selection--single {
    height: 20px;
}

.searchForm .searchFormButtonSec {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    height: 50px;
}

.searchForm .search-button {
    border: none;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 3px;
    width: 48%;
    font-size: 13px;
}

.searchForm .reset-button {
    border: 1px solid #ddd;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 3px;
    width: 48%;
    font-size: 13px;
}

.searchForm .form-group.filled label,
.searchForm .form-group:has(.form-control:focus) label,
.searchForm .form-group:has(.select2-container--open) label {
    top: -10px;
    font-size: 13px;
    color: var(--primary-color);
    background: #F4F5F8;
    background: linear-gradient(180deg, rgba(244, 245, 248, 1) 0%, rgba(255, 255, 255, 1) 63%);
}

.searchForm .searchForm .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 17px !important;
}

.searchForm span.select2-dropdown.select2-dropdown--above {
    position: relative;
    width: 100%!important;
}

.searchForm div {
    border: none;
}

.select2-container--default .select2-dropdown {
    width: 254px !important;
}

.select2-container--default .select2-results__option {
    font-weight: 700;
}

/* Search form end */