/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom, #d4af37 0%, #f5f5f5 100%); /* Gold/yellow-brown to white */
    min-height: 100vh;
    padding: 20px 0;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    min-height: 100vh;
}

/* Mobile first approach */
@media (min-width: 768px) {
    .container {
        max-width: 1000px;
        padding: 20px;
    }
}

header {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, #1a3a6c 0%, #2c5282 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    position: relative;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: white;
    padding: 5px;
    margin-bottom: 10px;
}

.office-name {
    color: white;
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
    text-align: center;
    letter-spacing: 0.5px;
}

header h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.intro {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #2196F3;
}

/* Different background colors for each section */
#bagian-ii {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

#bagian-iii {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

#bagian-iv {
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

#bagian-v {
    background: linear-gradient(135deg, #ffffff 0%, #fdf4ff 100%);
}

#bagian-vi {
    background: linear-gradient(135deg, #ffffff 0%, #f3e8ff 100%);
}

.form-section {
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.form-section h2 {
    color: #1a3a6c;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef2f7;
    font-weight: 600;
    position: relative;
    text-align: center;
}

.form-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #4299e1;
}

.instructions {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #ff9800;
}

.instructions h3 {
    color: #e65100;
    margin-bottom: 12px;
    font-weight: 600;
}

.instructions ul {
    padding-left: 20px;
    margin-top: 10px;
}

.instructions li {
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f8fafc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    cursor: pointer;
}

.radio-group label:hover {
    background-color: #ebf8ff;
    transform: translateY(-2px);
}

.question-item {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.question-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.question-text {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #2d3748;
    font-weight: 500;
}

.rating-container {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 10px;
}

/* On larger screens */
@media (min-width: 768px) {
    .question-text {
        font-size: 1.1rem;
    }
    
    .question-item {
        padding: 25px;
    }
}

.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 32px;
    color: #cbd5e0;
    transition: color 0.2s;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f6ad55; /* Light orange for hover */
}

.star-rating input[type="radio"]:checked + label,
.star-rating input[type="radio"]:checked + label ~ label {
    color: #e53e3e; /* Red for selected */
}

.textarea-group {
    margin-top: 15px;
}

.textarea-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    min-height: 100px;
}

.submit-section {
    text-align: center;
    margin-top: 35px;
    padding: 25px;
}

.submit-section button {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 14px 40px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    font-family: 'Poppins', sans-serif;
}

.submit-section button:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

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

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 1.4rem;
    }

    .form-section {
        padding: 20px;
    }

    .question-text {
        font-size: 1rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .star-rating label {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .star-rating label {
        font-size: 28px;
    }
    
    header h1 {
        font-size: 1.2rem;
    }
    
    .form-section {
        padding: 18px;
    }
    
    .submit-section button {
        padding: 12px 30px;
        width: 100%;
        max-width: 280px;
    }
}