/* ============ RESET & BASE ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #10b981;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 16px;
    color: var(--gray-800);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* ============ HEADER ============ */
.survey-header {
    text-align: center;
    color: white;
    padding: 24px 16px;
    margin-bottom: 20px;
}

.survey-header h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============ QUESTION CARD ============ */
.question-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.service-choice-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.service-choice-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.service-choice-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.service-choice-card label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-600);
}

.service-choice-card select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
}

.service-choice-btn {
    width: 100%;
    margin-top: 14px;
    padding: 12px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.service-choice-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.question-number {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.question-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ============ LIKERT SCALE ============ */
.likert-scale {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.likert-option {
    cursor: pointer;
    display: block;
}

.likert-option input[type="radio"] {
    display: none;
}

.likert-box {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    transition: all 0.2s;
    background: var(--gray-50);
}

.likert-option:hover .likert-box {
    border-color: var(--primary);
    background: #eff6ff;
}

.likert-option input:checked + .likert-box {
    border-color: var(--primary);
    background: #dbeafe;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-right: 12px;
    letter-spacing: 2px;
    min-width: 80px;
}

.option-label {
    font-size: 0.9rem;
    color: var(--gray-800);
    font-weight: 500;
}

.error-message {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 8px;
    display: none;
}

.error-message.show {
    display: block;
}

/* ============ REVIEW & IDENTITY CARD ============ */
.review-card, .identity-card, .anonymous-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.review-card h3, .identity-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--gray-800);
}

textarea, input[type="text"], input[type="email"], input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

textarea:focus, input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-600);
}

/* ============ CHECKBOX CUSTOM ============ */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
}

.checkbox-label input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ============ SUBMIT BUTTON ============ */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-lg);
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============ TABLET (>= 600px) ============ */
@media (min-width: 600px) {
    body { padding: 24px; }
    .survey-header h1 { font-size: 2rem; }
    .question-text { font-size: 1.1rem; }
    .likert-scale {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .likert-option { flex: 1; min-width: 120px; }
    .likert-box {
        flex-direction: column;
        text-align: center;
        padding: 16px 8px;
    }
    .stars { margin-right: 0; margin-bottom: 8px; font-size: 1.5rem; }
}

/* ============ DESKTOP (>= 900px) ============ */
@media (min-width: 900px) {
    body { padding: 40px 20px; }
    .container { max-width: 900px; }
    .survey-header { padding: 40px 20px; }
    .survey-header h1 { font-size: 2.5rem; }
    .question-card { padding: 28px; }
    .likert-option { min-width: 140px; }
}

/* ============ ANIMASI ============ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-card { animation: fadeIn 0.4s ease-out; }
.question-card:nth-child(2) { animation-delay: 0.05s; }
.question-card:nth-child(3) { animation-delay: 0.1s; }
.question-card:nth-child(4) { animation-delay: 0.15s; }
.question-card:nth-child(5) { animation-delay: 0.2s; }
.question-card:nth-child(6) { animation-delay: 0.25s; }