/* Urdu Text Styling */
.urdu-text {
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Arial', sans-serif;
    direction: rtl;
    unicode-bidi: embed;
    display: block; 
    font-size: 1.2em; 
    line-height: 1.8;
    color: #1b5e20; /* Green Text generally */
    margin-bottom: 4px;
    text-align: right; 
}

/* Button overrides for Urdu text color */
.hts-btn .urdu-text {
    color: inherit !important; /* Force it to take button's text color */
    text-align: center; /* Center align in buttons */
}

/* Wizard Steps */
.hts-step {
    display: none !important; 
    animation: fadeIn 0.5s ease;
}

.hts-step.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Progress Bar */
.hts-progress-container {
    margin-bottom: 30px;
    background-color: #e0e0e0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.hts-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #2e7d32;
    transition: width 0.4s ease;
}

/* Headers */
.hts-header {
    text-align: center;
    margin-bottom: 25px;
}

.hts-header h2 {
    color: #2e7d32;
    margin: 0 0 10px 0;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    color: #333;
    font-weight: 500;
}

.hts-input-lg {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.hts-input-lg:focus {
    border-color: #4caf50;
    outline: none;
}

/* Radio & Checkbox Cards */
.radio-group, .checkbox-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.radio-group label, .checkbox-group label {
    background: #fff;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    flex-direction: row-reverse; 
}

.radio-group label:hover, .checkbox-group label:hover {
    border-color: #a5d6a7;
    background: #f1f8e9;
}

.radio-group input, .checkbox-group input {
    margin-left: 15px;
    transform: scale(1.4); /* Larger touch target */
    accent-color: #2e7d32;
}

/* Navigation Buttons */
.hts-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.hts-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    line-height: 1.2;
}

.hts-btn-next {
    background: #2e7d32;
    color: #ffffff !important; /* Absolute Force White */
    margin-left: auto;
}

.hts-btn-next .urdu-text, 
.hts-btn-next span, 
.hts-btn-next small {
    color: #ffffff !important; /* Force children white */
}

.hts-btn-prev {
    background: #e0e0e0;
    color: #333 !important; /* Force Dark Grey */
}

.hts-btn-prev:hover {
    background: #bdbdbd;
}

/* Override overrides */
.hts-btn span, .hts-btn small, .hts-btn .urdu-text {
    color: inherit !important;
}

/* Result Area */
.hts-result-container {
    margin-top: 30px;
    padding: 30px;
    background: #e8f5e9;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #c8e6c9;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .hts-form-container {
        padding: 20px;
        margin: 10px;
    }
    .hts-nav-buttons {
        flex-direction: row; 
    }
}
