/* Kuesioner EduCampus - Tema mirip Google Form */
:root {
    --primary: #1a73e8;
    --primary-hover: #1557b0;
    --bg: #f0ebf8;
    --card-bg: #fff;
    --text: #202124;
    --text-secondary: #5f6368;
    --border: #dadce0;
    --required: #d93025;
    --radius: 8px;
    --shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    padding: 24px 16px;
}

.form-container {
    max-width: 640px;
    margin: 0 auto;
}

.form-header {
    background: var(--card-bg);
    padding: 24px 24px 12px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

.form-header h1 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 400;
    color: var(--text);
}

.form-header .subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-section {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

.form-section h2 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.scale-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.field {
    margin-bottom: 24px;
}

.field:last-child {
    margin-bottom: 0;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text);
}

.required {
    color: var(--required);
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-family: inherit;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    border-radius: 0;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Skala 1-5 */
.scale-field .scale-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 4px;
}

.scale-option {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.scale-option input {
    margin: 0 4px 0 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.scale-num {
    font-size: 14px;
    padding: 4px 8px;
}

.scale-legend {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Radio & Checkbox */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

.radio-option input,
.checkbox-option input {
    margin: 0 12px 0 0;
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.fitur-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

/* Tombol */
.form-actions {
    margin-top: 12px;
    padding: 0 0 24px;
}

.btn-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

.btn-submit:hover {
    background: var(--primary-hover);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Thank you page */
.thank-you-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.thank-you-card {
    background: var(--card-bg);
    padding: 48px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.thank-you-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: #e8f0fe;
    color: var(--primary);
    font-size: 40px;
    font-weight: bold;
    line-height: 72px;
    border-radius: 50%;
}

.thank-you-card h1 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 400;
}

.thank-you-card p {
    margin: 0 0 8px;
    color: var(--text-secondary);
}

.thank-you-note {
    margin-bottom: 24px !important;
}

.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.btn-back:hover {
    background: var(--primary-hover);
}

/* Error message di index jika ada */
.form-container .error-msg {
    background: #fce8e6;
    color: var(--required);
    padding: 12px 24px;
    border-radius: 4px;
    margin-bottom: 12px;
}

@media (max-width: 600px) {
    body { padding: 12px 8px; }
    .form-header, .form-section { padding: 16px; }
    .scale-options { justify-content: flex-start; }
    .fitur-grid { grid-template-columns: 1fr; }
}
