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

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-image: url('../img/kh/modal-header-bg.webp');
    background-repeat: no-repeat;
    background-size: cover;
    padding: 20px;
    text-align: left;
    position: relative;
}

.modal-logo {
    width: 55px;
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.modal-greeting {
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.modal-message {
    text-align: left;
    font-size: 16px;
    margin-bottom: 20px;
    color: #333333;
}

.modal-instruction {
    text-align: left;
    font-size: 14px;
    color: #333333;
    margin-bottom: 20px;
}

.account-details {
    text-align: left;
    margin-bottom: 20px;
    display: flex;
    width: 100%;
    background-color: #F7F9F9;
}

.account-row {
    display: flex;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    flex: 1;
    flex-direction: column;
    text-align: center;
}

.label {
    color: #1C1C1C;
    font-weight: bold;
}

.value {
    color: #666666;
    margin-top: 15px;
}

.mt5-instruction {
    font-size: 16px;
    color: #1C1C1C;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: left;
}

.download-options {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;
    gap: 45px;
}

.download-item {
    text-align: center;
    background-color: #F7F9F9;
    border-radius: 8px;
    padding: 20px;
    width: 230px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.icon-container {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.download-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

p {
    font-size: 14px;
    color: #333;
    margin-top: 20px;
}

.modal-footer {
    padding: 10px;
    text-align: center;
}

.btn-close {
    background-color: #f06c00;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn-close:hover {
    background-color: #d45a00;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
}

.close-button:hover {
    color: red;
}

@media (min-width: 1081px) and (max-width: 1560px) {
    .modal {
        top: 7.5%;
    }
    
    .modal-content {
        max-width: 750px;
        max-height: 600px;
    }

}