  .terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow: auto;
}

.terms-modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 20px 30px;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #777;
}

.close-modal:hover {
    color: #333;
}

.terms-text {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    height: 300px;
    overflow-y: scroll;
    font-size: 14px;
    line-height: 1.6;
}

.agree-checkbox {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.agree-checkbox input {
    margin-right: 10px;
}

.download-btn {
    display: block;
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 20px auto;
    width: 200px;
    transition: background-color 0.3s;
}

.download-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.download-btn:not(:disabled):hover {
    background-color: #3e8e41;
}

.format-btn {
    display: inline-block;
    padding: 8px 15px;
    margin-right: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.format-btn:hover {
    background-color: #e0e0e0;
    border-color: #999;
}

.format-btn img {
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}