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

:root {
    --primary-color: #2563eb; /* สีน้ำเงินทันสมัย */
    --primary-hover: #1d4ed8;
    --background-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 16px;
}

body {
    font-family: 'Prompt', sans-serif;
    background: var(--background-gradient);
    color: var(--text-main);
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    box-sizing: border-box;
}

/* Card Style */
.card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Header & Logo */
.app-header {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.logo-icon {
    font-size: 32px;
    color: var(--primary-color);
}

.logo-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
}

.logo-text span {
    color: var(--primary-color);
}

/* Typography */
h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 0;
}

p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Form Elements */
.form-group {
    text-align: left;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Prompt', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s;
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-family: 'Prompt', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: var(--text-main);
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

/* Quiz Options */
.quiz-content {
    text-align: left;
}

.progress-bar {
    height: 6px;
    background-color: #f1f5f9;
    border-radius: 3px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.quiz-option {
    display: block;
    padding: 15px;
    border: 2px solid #f1f5f9;
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-option:hover {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.quiz-option input {
    margin-right: 10px;
}

/* Result Badge */
.score-badge {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--primary-color);
    font-size: 36px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
}

footer {
    margin-top: 30px;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}