/* Base Layout Styles */
.survey-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Question Group Styles */
.question-group {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    direction: rtl;
    transition: all 0.3s ease;
}

.question-title {
    color: #006C4F;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: right;
}

/* Star Rating Styles */
.star-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 10px;
    margin: 10px 0;
}

.star-group {
    position: relative;
}

.star-input {
    display: none;
}

.star-label {
    cursor: pointer;
    font-size: 24px;
    color: #ddd;
}

.star-label i {
    transition: color 0.2s ease;
}

.star-label i.active,
.star-input:checked ~ .star-label i {
    color: #ffd700;
}

/* Hover effect */
.star-label:hover i,
.star-label:hover ~ .star-label i {
    color: #ffd700;
}

/* Modern Radio button styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
    align-items: flex-start;
}

.custom-radio {
    position: relative;
    width: 80px;
}

.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-radio input:checked + .radio-text {
    background-color: #006B3E;
    color: white;
}

.radio-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background-color: #f5f5f5;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.custom-radio:hover .radio-text {
    background-color: #e0e0e0;
}

.custom-radio input:checked:hover + .radio-text {
    background-color: #005a34;
}

/* Hide the radio mark since we're using the full button as the control */
.radio-mark {
    display: none;
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

/* Error Messages */
.error-message {
    color: #DC3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* Submit Button */
.submit-button {
    background-color: #006C4F;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #005540;
    transform: translateY(-2px);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 15px;
    max-width: max-content;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #f5f5f5;
    color: #006C4F;
    text-decoration: none;
}

.lang-btn.active {
    background: #006C4F;
    color: white;
}

.divider {
    width: 1px;
    height: 24px;
    background: #e0e0e0;
    margin: 0 5px;
}