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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #29b2d1;
    color: #333;
    line-height: 1.6;
}

.survey-header {
    text-align: center;
    padding: 30px 20px 10px;
}

.survey-header img {
    max-width: 400px;
    width: 90%;
    height: auto;
}

.survey-container {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 40px;
}

.survey-title {
    color: #29b2d1;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
}

.survey-subtitle {
    color: #29b2d1;
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
    font-style: italic;
}

.section-title {
    background: #29b2d1;
    color: #fff;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 600;
    margin: 30px -40px 20px;
    text-align: center;
}

.question-group {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.question-group:last-child {
    border-bottom: none;
}

.question-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.question-label .required {
    color: #e74c3c;
    margin-left: 2px;
}

.question-sublabel {
    font-size: 13px;
    color: #888;
    font-style: italic;
    display: block;
    margin-bottom: 8px;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.radio-group label, .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 15px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    transition: all 0.2s;
}

.radio-group label:hover, .checkbox-group label:hover {
    background: #e8f8fc;
    border-color: #29b2d1;
}

.radio-group input:checked + span,
.checkbox-group input:checked + span {
    color: #29b2d1;
    font-weight: 600;
}

.radio-group label:has(input:checked),
.checkbox-group label:has(input:checked) {
    background: #e8f8fc;
    border-color: #29b2d1;
}

.rating-scale-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.rating-scale-header span:first-child { color: #27ae60; }
.rating-scale-header span:nth-child(2) { color: #f39c12; }
.rating-scale-header span:last-child { color: #e74c3c; }

.rating-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.rating-row:last-child {
    border-bottom: none;
}

.rating-label {
    flex: 1;
    font-weight: 500;
    min-width: 200px;
}

.rating-label .sublabel {
    display: block;
    font-size: 12px;
    color: #999;
    font-weight: 400;
    font-style: italic;
}

.rating-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    min-width: 200px;
}

.rating-options label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.rating-options input[type="radio"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #29b2d1;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s;
}

textarea:focus {
    outline: none;
    border-color: #29b2d1;
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
    outline: none;
    border-color: #29b2d1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-field {
    margin-bottom: 15px;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.privacy-box {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.privacy-box h3 {
    color: #29b2d1;
    margin-bottom: 10px;
}

.privacy-box p {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.7;
}

.privacy-box label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
}

.privacy-box input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #29b2d1;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #29b2d1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #1e8fa8;
}

.success-message {
    text-align: center;
    padding: 60px 20px;
}

.success-message h2 {
    color: #27ae60;
    font-size: 28px;
    margin-bottom: 15px;
}

.success-message p {
    color: #666;
    font-size: 16px;
}

.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-danger {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .survey-container {
        margin: 10px;
        padding: 20px;
    }

    .section-title {
        margin: 20px -20px 15px;
        font-size: 16px;
    }

    .survey-title {
        font-size: 22px;
    }

    .rating-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .rating-options {
        width: 100%;
        justify-content: flex-start;
        gap: 15px;
    }

    .rating-scale-header {
        font-size: 12px;
        padding: 8px 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .radio-group, .checkbox-group {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .survey-container {
        margin: 5px;
        padding: 15px;
    }

    .survey-title {
        font-size: 18px;
    }

    .section-title {
        margin: 15px -15px 10px;
        font-size: 14px;
        padding: 10px 15px;
    }
}

/* ---- CAPTCHA ---- */
.captcha-box {
    background: #f0f8ff;
    border: 2px solid #29b2d1;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 22px 0 10px;
}
.captcha-label {
    font-weight: 700;
    color: #29b2d1;
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.captcha-question {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.captcha-math {
    font-size: 22px;
    font-weight: 700;
    color: #1a3a4a;
    background: #fff;
    border: 2px solid #c0dce8;
    border-radius: 8px;
    padding: 8px 18px;
    letter-spacing: 1px;
    white-space: nowrap;
}
.captcha-question input[type="number"] {
    font-size: 18px;
    font-weight: 600;
    padding: 8px 12px;
    border: 2px solid #c0dce8;
    border-radius: 8px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}
.captcha-question input[type="number"]:focus {
    border-color: #29b2d1;
    box-shadow: 0 0 0 3px rgba(41,178,209,0.12);
}
.captcha-hint {
    margin-top: 10px;
    font-size: 13px;
    color: #5a8a9a;
}