:root {
    --primary-color: #004F9F; /* KPC Official Blue */
    --primary-hover: #003670;
    --bg-color: #f1f5f9; /* Clean Light Gray Background */
    --card-bg: #ffffff; /* Pure White */
    --text-main: #1e293b; /* Dark Slate for readable text */
    --text-muted: #64748b; /* Medium Slate */
    --border-color: #e2e8f0; /* Light Gray for borders */
    --accent: #E3000F; /* KPC Red Accent */
    --input-bg: #f8fafc;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-image: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.dashboard-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 92vh; /* Increased from 85vh to provide more vertical space */
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* Sidebar */
.sidebar {
    width: 260px; /* Reduced from 280px */
    background: #fafafa;
    border-right: 1px solid var(--border-color);
    padding: 20px 15px; /* Reduced padding from 30px 20px */
    display: flex; flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.step-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-list li {
    padding: 14px 18px;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: default;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.step-list li.active {
    background: rgba(0, 79, 159, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(0, 79, 159, 0.15);
}

.step-list li.completed {
    color: var(--primary-color);
    opacity: 0.7;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px 40px; /* Reduced padding from 40px 50px */
    overflow-y: auto;
    background-color: var(--card-bg);
}

.main-content::-webkit-scrollbar {
    width: 8px;
}
.main-content::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

header {
    margin-bottom: 20px; /* Reduced from 30px */
    padding-bottom: 10px; /* Reduced from 20px */
    border-bottom: 2px solid var(--border-color);
}

header h1 {
    font-size: 1.8rem; /* Reduced from 2.2rem */
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 5px;
}

/* Form Styles */
.form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.form-step.active {
    display: block;
}

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

.form-step h2 {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    margin-bottom: 12px; /* Reduced from 20px */
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-step h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 20px; /* Reduced from 24px */
    background-color: var(--accent);
    border-radius: 4px;
}

.form-step p.subtitle {
    color: var(--text-muted);
    margin-top: -10px;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.section-divider {
    font-size: 1rem; /* Reduced from 1.1rem */
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 15px; /* Reduced from 30px */
    margin-bottom: 10px; /* Reduced from 15px */
    padding-bottom: 5px;
    border-bottom: 1px dashed var(--border-color);
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px; /* Reduced vertical gap from 24px */
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Reduced from 8px */
}

.input-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 14px; /* Reduced padding from 14px 16px */
    border-radius: 8px;
    font-size: 0.95rem; /* Reduced from 1rem */
    transition: all 0.2s ease;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

input:focus,
textarea:focus {
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 79, 159, 0.15);
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    color: var(--text-main);
}

.radio-card:hover {
    border-color: var(--primary-color);
    background-color: #f8fafc;
}

.radio-card input[type="radio"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

/* Buttons */
.form-actions {
    margin-top: 20px; /* Added explicit top margin */
    display: flex;
    justify-content: space-between;
    padding-top: 20px; /* Reduced from 30px */
    border-top: 2px solid var(--border-color);
}

.btn {
    padding: 10px 25px; /* Reduced from 14px 30px */
    border-radius: 8px;
    font-size: 0.95rem; /* Reduced from 1rem */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 420px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.modal-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--text-main);
}

.modal p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #334155;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast i {
    color: #f87171;
    font-size: 1.1rem;
}

/* Input Error State */
.input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.input-error::placeholder {
    color: #fca5a5 !important;
}
