/* Container and Form Styles */
.rcalc-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rcalc-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Category Styles */
.rcalc-category {
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    border-radius: 6px;
    background: #f9fafb;
}

.rcalc-category h3 {
    color: #1f2937;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

/* Question Styles */
.rcalc-question {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.rcalc-question:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rcalc-question p {
    font-weight: 500;
    color: #374151;
    margin: 0 0 1rem 0;
}

/* Options Styles */
.rcalc-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.rcalc-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rcalc-option:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.rcalc-option input[type="radio"] {
    margin-right: 0.5rem;
}

/* Results Styles */
.rcalc-results-container {
    margin-top: 2rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rcalc-overall-score {
    text-align: center;
    margin-bottom: 2rem;
}

.rcalc-score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
}

.rcalc-score-circle span {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
}

/* Category Scores */
.rcalc-category-scores {
    margin-top: 2rem;
}

.rcalc-category-score {
    display: grid;
    grid-template-columns: 2fr 4fr 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.rcalc-progress-bar {
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.rcalc-progress {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    transition: width 0.5s ease;
}

/* Recommendations */
.rcalc-recommendations {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f3f4f6;
    border-radius: 6px;
}

.rcalc-recommendations h3 {
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.rcalc-recommendations ul {
    margin: 0;
    padding-left: 1.5rem;
}

.rcalc-recommendations li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

/* Submit Button */
.rcalc-submit {
    background: #4f46e5;
    color: #ffffff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.rcalc-submit:hover {
    background: #4338ca;
}

/* Loading State */
.rcalc-loading {
    text-align: center;
    padding: 2rem;
    color: #4b5563;
    font-style: italic;
}

/* Messages */
.rcalc-message {
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 1rem 0;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 6px;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .rcalc-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .rcalc-options {
        grid-template-columns: 1fr;
    }
    
    .rcalc-category-score {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}