:root {
    --primary: #009857;
    --primary-dark: #00814a;
    --background-light: #f0f9f4;
    --text-dark: #1a4d36;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: radial-gradient(circle at top right, #ffffff 0%, #e6f4ed 100%);
    color: #1e293b;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-container img {
    height: 50px;
    width: auto;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    min-height: calc(100vh - 80px);
}

.survey-container {
    width: 100%;
    max-width: 640px;
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(0, 152, 87, 0.08);
    overflow: hidden;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(226, 232, 240, 0.5);
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.survey-content {
    padding: 2rem;
}

@media (min-width: 768px) {
    .survey-content {
        padding: 3rem;
    }
}

.survey-title {
    font-size: 2rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.survey-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.question-group {
    margin-bottom: 1.5rem;
}

.question-label {
    display: block;
    font-weight: 600;
    color: #334155;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.question-label.required::after {
    content: " *";
    color: var(--primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    color: #1e293b;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 152, 87, 0.1);
}

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

.rating-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
}

.rating-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.4);
    color: #475569;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 152, 87, 0.05);
}

.rating-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 152, 87, 0.2);
    transform: scale(1.1);
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: rgba(0, 152, 87, 0.4);
    background: rgba(255, 255, 255, 0.8);
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 152, 87, 0.3);
    margin-top: 1rem;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 152, 87, 0.4);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: none;
}

.message.success {
    background: rgba(0, 152, 87, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 152, 87, 0.2);
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.privacy-notice {
    margin-top: 2.5rem;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.5);
    border: 1px solid rgba(241, 245, 249, 1);
    border-radius: 0.5rem;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.privacy-notice svg {
    color: var(--primary);
    flex-shrink: 0;
}

.privacy-notice p {
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.5;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

