:root {
    --primary-color: #761c3f;
    --primary-light: #842544;
    --accent-color: #a68b5a;
    --bg-color: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-color: #333;
    --border-radius: 12px;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 10% 20%, rgba(118, 28, 63, 0.05) 0%, transparent 40%);
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.survey-wrapper {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 20px;
}

.survey-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.survey-header {
    background: var(--primary-color);
    padding: 30px;
    text-align: center;
    color: white;
}

.survey-header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.survey-header p {
    margin: 10px 0 0;
    opacity: 0.8;
}

.survey-body {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(118, 28, 63, 0.1);
}

.question-block {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}

.question-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.option-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.option-item:hover {
    background: rgba(118, 28, 63, 0.03);
}

.option-item input {
    margin-right: 15px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    font-size: 1.1rem;
}

.btn-submit:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 28, 63, 0.3);
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    color: white;
    flex-direction: column;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
