/* Modern Survey Application Styling */
/* Survey Kepuasan Anggota RAT - KOPKAR ISS */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --light-bg: #f8fafc;
    --dark-text: #1e293b;
    --gray-text: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--dark-text);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Header Styling */
.header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header-logo {
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.header-logo-image {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.header p {
    font-size: 1rem;
    opacity: 0.95;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--secondary-color);
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert::before {
    content: "ℹ";
    font-size: 1.5rem;
    font-weight: bold;
}

.alert-success::before {
    content: "✓";
}

.alert-error::before {
    content: "✕";
}

/* Form Content */
.form-content {
    padding: 30px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group label .required {
    color: var(--danger-color);
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--gray-text);
}

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

/* Section Headers */
.section-header {
    background: var(--light-bg);
    padding: 20px 25px;
    margin: 30px -30px 25px;
    border-left: 5px solid var(--primary-color);
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.section-header p {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* Question Card */
.question-card {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.question-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.question-number {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 10px;
}

.question-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 15px;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.radio-option {
    position: relative;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-option label {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    gap: 8px;
}

.radio-option input[type="radio"]:checked + label {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.radio-option label:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Text Area for Alasan */
.alasan-input {
    margin-top: 12px;
}

.alasan-input label {
    font-size: 0.85rem;
    color: var(--gray-text);
    font-weight: 500;
    margin-bottom: 6px;
}

/* Submit Button */
.submit-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.btn-submit {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
    color: white;
    padding: 16px 60px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: var(--light-bg);
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 12px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .form-content {
        padding: 20px;
    }
    
    .section-header {
        margin: 20px -20px 20px;
        padding: 15px 20px;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .question-card {
        padding: 15px;
    }
    
    .btn-submit {
        width: 100%;
        padding: 14px 30px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Page Styling */
.success-container {
    text-align: center;
    padding: 60px 30px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-container h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.success-container p {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-home {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-home:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
