/* ================================
   Kalpurush Font for Bangla
   ================================ */
   @font-face {
    font-family: 'Kalpurush';
    src: url('../assets/fonts/kalpurush.woff2') format('woff2'),
         url('../assets/fonts/kalpurush.woff') format('woff'),
         url('../assets/fonts/kalpurush.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Apply Kalpurush to all Bangla text */
.lang-bn,
.asp-survey-container .lang-bn *,
#asp-questions-container .lang-bn,
.asp-question-label .lang-bn,
.asp-radio-label .lang-bn span,
.asp-checkbox-label .lang-bn span,
.asp-thank-you-message .lang-bn {
    font-family: 'Kalpurush', 'SolaimanLipi', 'Nikosh', Arial, sans-serif !important;
}

/* Optional: Apply to all text when Bangla is active */
body.bn-active,
body.bn-active * {
    font-family: 'Kalpurush', 'SolaimanLipi', 'Nikosh', Arial, sans-serif;
}

/* Specific Bangla elements styling */
.lang-bn {
    line-height: 1.8;
    letter-spacing: 0.3px;
    font-size: 17px;
}

/* Gender select Bangla options */
#user_gender option {
    font-family: 'Kalpurush', 'SolaimanLipi', Arial, sans-serif;
}



/* Language Switcher Toggle */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    width: 200px;
    justify-content: flex-end;
    float: right;
    margin-bottom: 20px;
}

.lang-label {
    font-size: 18px;
    font-weight: 700;
    color: #999;
    transition: color 0.3s ease;
    user-select: none;
    cursor: pointer;
    letter-spacing: 1px;
}

.lang-label.active {
    color: #44CC7B;
}

.toggle-switch {
    position: relative;
    width: 70px;
    height: 36px;
    background: #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.bn-active {
    background: #44CC7B;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-switch.bn-active .toggle-slider {
    transform: translateX(34px);
}

/* Language Switcher */

.asp-language-switcher {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: flex-end;
}

.asp-lang-label {
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
    user-select: none;
}

.asp-lang-label.active {
    color: #44CC7B;
}

.asp-lang-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.asp-lang-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.asp-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #44CC7B;
    transition: .4s;
    border-radius: 30px;
}

.asp-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.asp-lang-toggle input:checked + .asp-toggle-slider:before {
    transform: translateX(30px);
}

/* Thank You Message Styles */
.asp-thank-you-message {
    text-align: center;
    padding: 60px 40px;
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    margin: 40px auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.asp-thank-you-icon {
    width: 80px;
    height: 80px;
    background: #44CC7B;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 30px;
    font-weight: bold;
    animation: thankYouPop 0.6s ease-out;
}

@keyframes thankYouPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.asp-thank-you-message h2 {
    color: #44CC7B;
    font-size: 32px;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.asp-thank-you-message p {
    color: #333;
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.asp-thank-you-note {
    color: #666;
    font-size: 14px;
    font-style: italic;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    display: inline-block;
}



.asp-group-header h2, p {
    color:black;
}


/* Prevent scroll jump on button click */
#asp-question-navigation {
    position: relative;
}

.asp-nav-btn {
    -webkit-tap-highlight-color: transparent;
}

.asp-nav-btn:focus {
    outline: 2px solid #44CC7B;
    outline-offset: 2px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Language Switcher */
.asp-language-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: flex-end;
}

.asp-lang-btn {
    padding: 8px 20px;
    background: #f0f0f1;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.asp-lang-btn.active {
    background: #44CC7B;
    color: #fff;
    border-color: #44CC7B;
}

/* Group Modal */
.asp-group-modal-content {
    max-height: 70vh;
}

.asp-questions-scroll {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
}

.asp-question-block {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 4px solid #44CC7B;
}

.asp-question-block:last-child {
    margin-bottom: 0;
}



/* Loader Styles */
#asp-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.asp-loader-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 250px;
}

.asp-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #44CC7B;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: asp-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes asp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.asp-loader-content p {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* Survey Container */
.asp-survey-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: rgb(255 255 255 / 85%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.asp-survey-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #44CC7B;
}

.asp-survey-header h2 {
    margin: 0 0 10px 0;
    color: #44CC7B;
    font-size: 37px !important;
    font-weight: 600 !important;
}


.asp-survey-description {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Form Sections */
.asp-form-section {
    margin-bottom: 30px;
}


.asp-form-section h3 {
    color: #545555;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.asp-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.asp-form-group {
    flex: 1;
    margin-bottom: 20px;
}

.asp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.asp-form-group input[type="text"],
.asp-form-group input[type="email"],
.asp-form-group input[type="tel"],
.asp-form-group input[type="date"],
.asp-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
    background: #b1dbb7;
}

.asp-form-group input:focus,
.asp-form-group select:focus {
    outline: none;
    border-color: #44CC7B;
}

.asp-field-hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
    font-style: italic;
}

.asp-required {
    color: #d63638;
    font-weight: bold;
}

/* Question Block */
.asp-question-block {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 6px;
    margin-top: 20px;
}

.asp-question-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Radio and Checkbox Groups */
.asp-radio-group,
.asp-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.asp-radio-label,
.asp-checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.asp-radio-label:hover,
.asp-checkbox-label:hover {
    border-color: #44CC7B;
    background: #f0f6fc;
}

.asp-radio-label input[type="radio"],
.asp-checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.asp-radio-label span,
.asp-checkbox-label span {
    flex: 1;
    font-size: 16px;
    color: #333;
}

/* Other Text Input */
.asp-other-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    margin-top: 10px;
}

/* Text Input */
.asp-text-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
}

/* Navigation Buttons */
#asp-question-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 71px;
    flex-wrap: wrap;
}

.asp-nav-left,
.asp-nav-right {
    display: flex;
    gap: 10px;
}

.asp-nav-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.asp-submit-btn {
    background: #44CC7B;
    color: #fff;
}

.asp-submit-btn:hover:not(:disabled) {
    background: #227c4c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.asp-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.asp-nav-btn:not(.asp-submit-btn):not(.asp-secondary-btn) {
    background: #f0f0f1;
    color: #2c3338;
    border: 1px solid #ddd;
}

.asp-nav-btn:not(.asp-submit-btn):not(.asp-secondary-btn):hover {
    background: #e0e0e1;
}

.asp-secondary-btn {
    background: #f0f0f1;
    color: #d63638;
    border: 2px solid #d63638;
}

.asp-secondary-btn:hover {
    background: #fef0f0;
}

/* Form Submit */
.asp-form-submit {
    margin-top: 30px;
    text-align: right;
}

/* Messages */
.asp-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 6px;
    font-size: 15px;
}

.asp-message-success {
    background: #d7f0dd;
    border-left: 4px solid #00a32a;
    color: #00551a;
}

.asp-message-error {
    background: #f9dddc;
    border-left: 4px solid #d63638;
    color: #8a0000;
}

.asp-message strong {
    display: block;
    margin-bottom: 5px;
}

/* No Questions Message */
.asp-no-questions-message {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
}

.asp-no-questions-message h3 {
    color: #856404;
    font-size: 24px;
    margin: 0 0 15px 0;
}

.asp-no-questions-message p {
    color: #856404;
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .asp-survey-container {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .asp-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    #asp-question-navigation {
        flex-direction: column;
    }
    
    .asp-nav-btn {
        width: 100%;
    }
}

/* Add to frontend.css */
.asp-likert-scale {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.asp-likert-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.asp-likert-option:hover {
    border-color: #44CC7B;
    background: #f0f6fc;
}

.asp-likert-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
}

.asp-likert-option .likert-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #44CC7B;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 15px;
    font-size: 14px;
}

.asp-likert-option .likert-text {
    flex: 1;
    font-size: 16px;
    color: #333;
}

.asp-likert-option input[type="radio"]:checked ~ .likert-number {
    background: #44CC7B;
}