/* ISGL Survey Styles */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
    --error-color: #ef4444;
    --success-color: #10b981;
}

#isgl-survey-container {
    font-family: 'Inter', sans-serif;
    max-width: 800px;
    margin: 40px auto;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    color: var(--text-color);
}

.isgl-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.isgl-step.active {
    display: block;
}

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

h2, h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.isgl-year-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.isgl-year-selector label {
    cursor: pointer;
}

.isgl-year-selector input[type="radio"] {
    display: none;
}

.isgl-year-selector span {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.isgl-year-selector input[type="radio"]:checked + span {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.isgl-question-group {
    margin-bottom: 30px;
    padding: 20px;
    background: #fdfdfd;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
}

.isgl-question-group label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1em;
}

.isgl-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.isgl-options-grid label, .isgl-options-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.95em;
    transition: 0.2s;
}

.isgl-options-grid label:hover, .isgl-options-list label:hover {
    border-color: var(--primary-color);
    background: #eff6ff;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
}

.isgl-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1em;
    transition: 0.3s;
}

.isgl-btn-next, .isgl-btn-submit {
    background: var(--primary-color);
    color: white;
    width: 100%; /* Mobile friendly default */
}

@media (min-width: 600px) {
    .isgl-btn-next, .isgl-btn-submit {
        width: auto;
    }
}

.isgl-btn-next:hover, .isgl-btn-submit:hover {
    background: var(--primary-hover);
}

.isgl-btn-back {
    background: transparent;
    color: #64748b;
    border: 1px solid var(--border-color);
}

.isgl-btn-back:hover {
    background: #f1f5f9;
    color: var(--text-color);
}

#isgl-message {
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
}
