/**
 * KMUTNB WiFi Survey Styles
 * Office of Computer and Information Technology, KMUTNB
 * Color Scheme: Blue, Green, Orange
 */

:root {
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --light-blue: #dbeafe;
    --primary-green: #059669;
    --secondary-green: #10b981;
    --light-green: #d1fae5;
    --primary-orange: #ea580c;
    --secondary-orange: #f97316;
    --light-orange: #fed7aa;
    --dark-gray: #374151;
    --light-gray: #f9fafb;
    --white: #ffffff;
}

body {
    font-family: 'Sarabun', 'Prompt', sans-serif;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-green) 50%, var(--light-orange) 100%);
    min-height: 100vh;
    color: var(--dark-gray);
}

.survey-container {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 1000px;
    overflow: hidden;
}

.survey-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.survey-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.survey-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.survey-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.survey-body {
    padding: 3rem 2rem;
}

.question-group {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border-radius: 15px;
    background: var(--light-gray);
    border-left: 5px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.question-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.question-group:nth-child(3n+1) {
    border-left-color: var(--primary-blue);
}

.question-group:nth-child(3n+2) {
    border-left-color: var(--primary-green);
}

.question-group:nth-child(3n+3) {
    border-left-color: var(--primary-orange);
}

.question-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    display: block;
}

.required {
    color: var(--primary-orange);
}

.form-check {
    margin-bottom: 0.75rem;
    padding-left: 2rem;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.25rem;
    border: 2px solid var(--secondary-blue);
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-input:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.form-check-label {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-left: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.form-check-label:hover {
    color: var(--primary-blue);
}

.form-control, .form-select {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(30, 64, 175, 0.25);
}

.nps-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    border: 2px solid #e5e7eb;
}

.nps-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nps-option:hover {
    background: var(--light-blue);
}

.nps-option input[type="radio"] {
    width: 1.5rem;
    height: 1.5rem;
    margin-bottom: 0.25rem;
}

.nps-option label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    border: none;
    color: var(--white);
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, var(--secondary-green) 0%, var(--secondary-blue) 100%);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.progress-bar {
    height: 8px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-green) 50%, var(--primary-orange) 100%);
    border-radius: 4px;
    margin-bottom: 2rem;
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: var(--light-green);
    color: var(--primary-green);
    border-left: 4px solid var(--primary-green);
}

.alert-danger {
    background: var(--light-orange);
    color: var(--primary-orange);
    border-left: 4px solid var(--primary-orange);
}

.footer {
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .survey-container {
        margin: 1rem;
        border-radius: 15px;
    }
    
    .survey-header {
        padding: 2rem 1rem;
    }
    
    .survey-header h1 {
        font-size: 2rem;
    }
    
    .survey-body {
        padding: 2rem 1rem;
    }
    
    .question-group {
        padding: 1rem;
    }
    
    .nps-scale {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nps-option {
        flex: 1;
        min-width: calc(20% - 0.5rem);
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-group {
    animation: fadeInUp 0.6s ease forwards;
}

.question-group:nth-child(n) {
    animation-delay: calc(0.1s * var(--animation-order, 0));
}

