:root {
    --primary-gradient: linear-gradient(135deg, #003065 0%, #004a8f 100%);
    --primary-color: #003065;
    --primary-light: #004a8f;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b6b6b;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --success-color: #10b981;
    --warning-color: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #003065 0%, #004a8f 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 58px;
}

/* Navigation Wrapper */
.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #003065;
    backdrop-filter: blur(10px);
    z-index: 1001;
    padding: 0 24px;
}

.nav-wrapper .main-nav {
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header */
.checklist-header {
    position: sticky;
    top: 58px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 12px 24px;
    margin: 24px auto 24px;
    max-width: 1400px;
    border-radius: 0;
    z-index: 998;
    border-radius: var(--radius-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

/* Progress Info */
.progress-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.progress-bar-container {
    flex: 1;
    max-width: 300px;
    height: 8px;
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 20px;
}

.progress-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-medium);
    white-space: nowrap;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn-send,
.btn-download {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

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

.btn-download {
    background: var(--bg-light);
    color: var(--text-dark);
}

.btn-download:hover {
    background: var(--border-color);
}

.btn-send:active,
.btn-download:active {
    transform: translateY(0);
}

/* Container */
.checklist-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    max-width: 1400px;
    margin: 0 auto 40px;
    gap: 24px;
}

/* Sidebar */
.checklist-sidebar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 144px;
    height: fit-content;
}

.sidebar-header {
    margin-bottom: 20px;
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-medium);
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.nav-item.active {
    background: var(--primary-gradient);
    color: white;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    stroke: currentColor;
}

.nav-text {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
}

.nav-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.nav-item.active .nav-badge {
    background: rgba(255, 255, 255, 0.2);
}

/* Sidebar Actions */
.sidebar-actions {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: var(--bg-light);
    color: var(--text-medium);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset:hover {
    background: var(--border-color);
    color: var(--text-dark);
}

/* Content */
.checklist-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.checklist-section {
    scroll-margin-top: 90px;
}

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

.section-title {
    margin-bottom: 32px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-title p {
    font-size: 15px;
    color: var(--text-light);
}

/* Dealer Info Form */
.dealer-info-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.label-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.label-icon svg {
    stroke: currentColor;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 48, 101, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
}

/* Checklist Group */
.checklist-group {
    margin-bottom: 32px;
}

.group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.group-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.group-icon svg {
    stroke: var(--primary-color);
}

/* Checklist Items */
.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    counter-reset: checklist-counter;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    counter-increment: checklist-counter;
    position: relative;
}

.checklist-item::before {
    content: counter(checklist-counter);
    position: absolute;
    left: 13px;
    top: 13px;
    width: 28px;
    height: 28px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-medium);
    transition: all 0.2s ease;
}

.checklist-item:hover::before {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.checklist-item.checked::before {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.checklist-item {
    padding-left: 56px;
}

.checklist-item:hover {
    background: #f0f0f0;
    transform: translateX(4px);
}

.checklist-item.checked {
    background: #ecfdf5;
    border-color: var(--success-color);
}

/* Checkbox */
.item-checkbox {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
    background: white;
}

.checklist-item:hover .checkbox-custom {
    border-color: var(--primary-color);
}

.item-checkbox:checked + .checkbox-custom {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
}

.item-checkbox:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Item Content */
.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.item-desc {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
}

.item-checkbox:checked ~ .item-content .item-title {
    color: var(--success-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .checklist-container {
        grid-template-columns: 240px 1fr;
    }

    .checklist-content {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 58px;
    }

    .nav-wrapper {
        padding: 0 16px;
    }

    .checklist-header {
        padding: 10px 16px;
        top: 58px;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .progress-info {
        gap: 12px;
    }

    .progress-bar-container {
        max-width: none;
    }

    .progress-text {
        font-size: 12px;
    }

    .header-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn-send,
    .btn-download {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
    }

    .checklist-container {
        grid-template-columns: 1fr;
        margin: 0 16px 40px;
        padding-top: 20px;
    }

    .checklist-sidebar {
        position: static;
    }

    .checklist-content {
        padding: 24px;
    }

    .dealer-info-form {
        gap: 16px;
    }

    .form-input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .group-title {
        font-size: 18px;
    }

    .checklist-item {
        padding: 14px 14px 14px 50px;
    }

    .checklist-item::before {
        left: 14px;
        top: 14px;
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .item-title {
        font-size: 15px;
    }

    .item-desc {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .checklist-header {
        padding: 8px 12px;
    }

    .btn-send svg,
    .btn-download svg {
        width: 16px;
        height: 16px;
    }

    .checklist-container {
        margin: 0 12px 40px;
        padding-top: 20px;
    }

    .checklist-content {
        padding: 20px;
    }

    .checklist-item {
        gap: 12px;
        padding: 12px 12px 12px 46px;
    }

    .checklist-item::before {
        left: 12px;
        top: 12px;
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
