/* Interactive Checklist Page Styles */

.checklist-page {
    background: var(--light-bg);
}

/* Header Section */
.checklist-header {
    background: linear-gradient(135deg, var(--dark-bg), #2c2c2c);
    color: var(--text-light);
    padding: 3rem 0 2rem;
    margin-top: 60px;
}

.checklist-header h1 {
    text-align: center;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.checklist-header .subtitle {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Progress Container */
.progress-container {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), #f4d03f);
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    font-weight: bold;
}

.progress-text {
    text-align: center;
    font-size: 1.1rem;
    color: var(--primary-gold);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-reset,
.btn-print {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset {
    background: var(--accent-red);
    color: white;
}

.btn-reset:hover {
    background: #a01829;
}

.btn-print {
    background: white;
    color: var(--dark-bg);
}

.btn-print:hover {
    background: var(--primary-gold);
}

/* Checklist Content */
.checklist-content {
    padding: 3rem 0;
}

.checklist-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.checklist-section.highlight {
    border: 3px solid var(--primary-gold);
    background: linear-gradient(135deg, #fff9e6, white);
}

.section-header {
    color: var(--dark-bg);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-icon {
    font-size: 2rem;
}

.subsection-header {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid var(--primary-gold);
}

/* Checklist Items */
.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.checklist-item:hover {
    background: var(--light-bg);
}

.checklist-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    min-width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.checklist-item input[type="checkbox"]:checked~.checkbox-custom {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
}

.checklist-item input[type="checkbox"]:checked~.checkbox-custom::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--dark-bg);
    font-weight: bold;
    font-size: 18px;
}

.checklist-item input[type="checkbox"]:checked~.item-text {
    text-decoration: line-through;
    opacity: 0.6;
    color: #666;
}

.item-text {
    flex: 1;
    line-height: 1.5;
    transition: all 0.3s ease;
}

/* Info Button */
.info-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    padding: 0;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.info-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Info Modal */
.info-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.info-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.info-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.info-modal-close:hover {
    color: #333;
}

.info-modal-content h3 {
    color: var(--dark-bg);
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.info-modal-content p {
    margin: 1rem 0;
    line-height: 1.6;
}

.info-modal-content ul,
.info-modal-content ol {
    margin: 0.5rem 0 1rem 1.5rem;
}

.info-modal-content li {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.info-modal-content a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
}

.info-modal-content a:hover {
    text-decoration: underline;
}

.info-modal-content .pdf-link {
    display: inline-block;
    background: var(--primary-gold);
    color: var(--dark-bg);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
}

.info-modal-content .pdf-link:hover {
    background: #f4d03f;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Print Styles */
@media print {

    .navbar,
    .action-buttons,
    footer {
        display: none;
    }

    .checklist-header {
        margin-top: 0;
        padding: 1rem 0;
    }

    .checklist-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .checkbox-custom {
        border: 2px solid #000 !important;
        background: white !important;
    }

    .checklist-item input[type="checkbox"]:checked~.checkbox-custom {
        background: transparent !important;
    }

    .checklist-item input[type="checkbox"]:checked~.checkbox-custom::after {
        color: #000 !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .checklist-header {
        padding: 2rem 0 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-reset,
    .btn-print {
        width: 100%;
    }

    .checklist-section {
        padding: 1.5rem;
    }

    .section-header {
        font-size: 1.3rem;
    }

    .checklist-item {
        padding: 0.75rem;
    }
}