/* ============================================
   Customer Survey Styles
   Create this as static/css/survey_customer.css
   ============================================ */

/* Survey Container */
.survey-container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Question Sections */
.survey-question {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.survey-question:last-of-type {
    border-bottom: none;
}

/* Question Label */
.question-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.required-asterisk {
    color: #dc2626;
    margin-left: 4px;
}

/* Help Text */
.question-help {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* ===== RATING SCALE STYLES ===== */
.rating-container {
    padding: 1.5rem 0;
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.rating-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.rating-label-min {
    color: #dc2626;
}

.rating-label-max {
    color: #059669;
}

.rating-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rating-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: white;
    font-size: 1.125rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-button:hover {
    border-color: #E07724;
    background: #fff7ed;
    color: #E07724;
    transform: scale(1.1);
}

.rating-button.selected {
    background: #E07724;
    border-color: #E07724;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 6px rgba(224, 119, 36, 0.3);
}

.rating-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(224, 119, 36, 0.2);
}

/* ===== TEXT INPUT STYLES ===== */
.text-input,
.textarea-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    margin-top: 0.5rem;
}

.text-input:focus,
.textarea-input:focus {
    outline: none;
    border-color: #E07724;
    box-shadow: 0 0 0 3px rgba(224, 119, 36, 0.1);
}

.textarea-input {
    min-height: 120px;
    resize: vertical;
}

/* ===== MULTIPLE CHOICE STYLES ===== */
.choice-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.choice-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.choice-label:hover {
    border-color: #E07724;
    background: #fff7ed;
}

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

.choice-label input[type="radio"]:checked ~ .choice-text,
.choice-label input[type="checkbox"]:checked ~ .choice-text {
    font-weight: 600;
    color: #E07724;
}

.choice-label input[type="radio"]:checked,
.choice-label input[type="checkbox"]:checked {
    & ~ * {
        font-weight: 600;
    }
}

.choice-label:has(input:checked) {
    border-color: #E07724;
    background: #fff7ed;
}

.choice-text {
    flex: 1;
    font-size: 1rem;
    color: #374151;
}

/* ===== YES/NO STYLES ===== */
.yes-no-container {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.yes-no-button {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.yes-no-button:hover {
    border-color: #E07724;
    background: #fff7ed;
}

.yes-no-button input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #E07724;
}

.yes-no-button:has(input:checked) {
    border-color: #E07724;
    background: #E07724;
    color: white;
}

.yes-no-button:has(input:checked) input[type="radio"] {
    accent-color: white;
}

/* ===== SUBMIT BUTTON ===== */
.submit-button {
    width: 100%;
    background: #E07724;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 2rem;
}

.submit-button:hover:not(:disabled) {
    background: #d2691e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 119, 36, 0.3);
}

.submit-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .survey-container {
        margin: 20px;
        padding: 24px;
    }
    
    .survey-question {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .rating-buttons {
        gap: 0.5rem;
    }
    
    .rating-button {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
    
    .yes-no-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .rating-buttons {
        gap: 0.375rem;
    }
    
    .rating-button {
        width: 42px;
        height: 42px;
        font-size: 0.875rem;
    }
}