/* styles.css (pindahkan semua CSS dari head ke sini) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: hsl(180, 20%, 98%);
    --foreground: hsl(200, 25%, 20%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(200, 25%, 20%);
    --primary: hsl(175, 45%, 45%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(40, 30%, 95%);
    --secondary-foreground: hsl(200, 25%, 25%);
    --muted: hsl(180, 15%, 92%);
    --muted-foreground: hsl(200, 15%, 45%);
    --accent: hsl(150, 35%, 50%);
    --border: hsl(180, 15%, 88%);
    --success: hsl(150, 50%, 45%);
    --warning: hsl(40, 85%, 55%);
    --destructive: hsl(10, 60%, 55%);
    --radius: 1rem;
    --shadow-soft: 0 4px 20px -4px hsla(175, 45%, 45%, 0.15);
    --shadow-card: 0 8px 30px -8px hsla(200, 25%, 20%, 0.08);
    --shadow-glow: 0 0 40px hsla(175, 45%, 45%, 0.2);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
}

.gradient-hero {
    background: linear-gradient(180deg, hsl(180, 20%, 98%) 0%, hsl(175, 25%, 92%) 100%);
}

.gradient-calm {
    background: linear-gradient(135deg, hsl(175, 45%, 45%) 0%, hsl(150, 35%, 50%) 100%);
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

.animate-breathe {
    animation: breathe 4s ease-in-out infinite;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

/* Header */
.header {
    width: 100%;
    padding: 1rem 1.5rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 2.5rem;
    width: auto;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--foreground);
}

/* Hero */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.hero-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary);
    display: block;
}

.hero p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3.75rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-calm {
    background: linear-gradient(135deg, hsl(175, 45%, 45%) 0%, hsl(150, 35%, 50%) 100%);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-soft);
    padding: 1rem 3rem;
    font-size: 1.125rem;
    border-radius: 1.5rem;
}

.btn-calm:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
}

.btn-calm:active {
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 2rem;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-ghost {
    background: transparent;
    color: var(--foreground);
    padding: 0.75rem 1rem;
}

.btn-ghost:hover {
    background: hsla(150, 35%, 50%, 0.1);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cards */
.card {
    background: var(--card);
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.card-glass {
    background: hsla(0, 0%, 100%, 0.8);
    backdrop-filter: blur(12px);
    border-color: hsla(180, 15%, 88%, 0.5);
}

.card-elevated:hover {
    box-shadow: var(--shadow-soft);
}

.card-content {
    padding: 1.25rem;
}

.card-header {
    padding: 1.5rem 1.5rem 1rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-foreground);
}

.feature-title {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Footer */
.footer {
    padding: 1.5rem;
    text-align: center;
}

.footer p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Question Section */
.question-header {
    border-bottom: 1px solid hsla(180, 15%, 88%, 0.5);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: var(--muted);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.question-card {
    max-width: 42rem;
    margin: 0 auto;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: hsla(175, 45%, 45%, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
}

.question-text {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .question-text {
        font-size: 1.5rem;
    }
}

/* Answer Options */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
}

.answer-option {
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: left;
    border: 2px solid var(--border);
    background: var(--card);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.answer-option:hover {
    border-color: hsla(175, 45%, 45%, 0.5);
    background: hsla(180, 15%, 92%, 0.5);
}

.answer-option.selected {
    border-color: var(--primary);
    background: hsla(175, 45%, 45%, 0.05);
    box-shadow: var(--shadow-soft);
}

.radio-circle {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    border: 2px solid var(--muted-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.answer-option.selected .radio-circle {
    border-color: var(--primary);
    background: var(--primary);
}

.radio-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: var(--primary-foreground);
    display: none;
}

.answer-option.selected .radio-dot {
    display: block;
}

.answer-label {
    font-weight: 500;
    color: var(--foreground);
}

.answer-option.selected .answer-label {
    color: var(--primary);
}

/* Navigation */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* Result Section */
.result-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.result-icon svg {
    width: 3rem;
    height: 3rem;
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

@media (min-width: 768px) {
    .result-title {
        font-size: 2.5rem;
    }
}

.result-bar {
    margin: 1.5rem 0;
}

/* Circle Progress */
.circle-progress {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.circle-progress svg {
    width: 8rem;
    height: 8rem;
    transform: rotate(-90deg);
}

.circle-bg {
    stroke: var(--muted);
}

.circle-fill {
    transition: stroke-dashoffset 1s ease-out;
}

.circle-text {
    position: absolute;
    font-size: 2rem;
    font-weight: 700;
}

/* Recommendations */
.recommendations {
    list-style: none;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.recommendation-number {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-foreground);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Resources */
.resource-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.resource-info h4 {
    font-weight: 600;
    color: var(--foreground);
}

.resource-info p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.resource-phone {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.resource-phone:hover {
    text-decoration: underline;
}

/* Utility */
.hidden {
    display: none !important;
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-destructive { color: var(--destructive); }
.bg-success { background-color: var(--success); color: var(--primary-foreground); }
.bg-warning { background-color: var(--warning); color: var(--primary-foreground); }
.bg-destructive { background-color: var(--destructive); color: var(--primary-foreground); }

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.alert-card {
    border-color: hsla(10, 60%, 55%, 0.3);
    background: hsla(10, 60%, 55%, 0.05);
}

.bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.progress-lg {
    height: 1rem;
}