.pdf-container {
    background-color: #ddd;
    position: relative;
    width: 100%;
    height: 500px;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.pdf-pages {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    min-width: 100%;
}

#pdfCanvas {
    width: 100% !important;
    height: auto !important;
    display: block;
    max-width: 100%;
}

#downloadTerms {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #ffc107;
    color: #212529;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}

#downloadTerms svg {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .pdf-container {
        height: 400px;
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }

    .pdf-pages {
        padding: 5px;
    }

    .pdf-page {
        width: 100% !important;
        max-width: none !important;
    }
}

@media (max-width: 480px) {
    .pdf-container {
        height: 350px;
    }
}

.terms-actions {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-container.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    background-color: white;
    flex-shrink: 0;
}

.checkmark.disabled {
    border-color: #ccc;
    background-color: #f8f9fa;
}

.checkmark:after {
    content: "";
    color: #000;
    width: 10px;
    height: 10px;
    background: #007bff;
    border-radius: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s;
}

input:checked + .checkmark:after {
    transform: translate(-50%, -50%) scale(1);
}

.requirement-icon.completed {
    background-color: #28a745;
    color: #000000;
}

.scroll-indicator {
    background-color: #e9ecef;
    color: #495057;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.scroll-indicator.completed {
    background-color: #d4edda;
    color: #155724;
}

.download-indicator {
    background-color: #e9ecef;
    color: #495057;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.download-indicator.completed {
    background-color: #d4edda;
    color: #155724;
}

.requirements-status {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.requirement-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.requirement-icon.pending {
    background-color: #ffc107;
    color: #212529;
}

.download-btn:disabled {
    background-color: #6c757d;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.6;
}

.pdf-page {
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
}

@media (max-width: 576px) {
    .pdf-container {
        height: 400px;
    }

    .pdf-pages {
        padding: 10px 5px;
    }

    .pdf-page {
        width: 100% !important;
        max-width: calc(100vw - 60px);
    }
}

@media (max-width: 768px) {
    .pdf-container {
        height: 450px;
    }
}